mirror of
https://github.com/wassname/talk.git
synced 2026-09-11 12:51:33 +08:00
Merge branch 'master' into like-button
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