mirror of
https://github.com/wassname/talk.git
synced 2026-08-14 12:50:17 +08:00
Merged branch master into password-reset
This commit is contained in:
+3
-1
@@ -24,7 +24,9 @@ const UserSchema = new mongoose.Schema({
|
||||
required: true
|
||||
}
|
||||
}],
|
||||
roles: [String]
|
||||
roles: {
|
||||
type: [{type: String, enum: ['admin', 'moderator']}]
|
||||
}
|
||||
}, {
|
||||
timestamps: {
|
||||
createdAt: 'created_at',
|
||||
|
||||
Reference in New Issue
Block a user