Modelo de mangosta enum
enum Role {
ADMIN = 'ADMIN',
USER = 'USER'
}
{
type: String,
enum: Role,
default: Role.USER,
}
Bored Bird
enum Role {
ADMIN = 'ADMIN',
USER = 'USER'
}
{
type: String,
enum: Role,
default: Role.USER,
}