export default class User extends Model {
static schema = {
name: String,
email: String,
password: String,
role: { $type: String, enum: ['ADMIN', 'USER'], default: 'USER' },
Also, perhaps there needs to be some consistency with the naming of options. $ before or not?