mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
extend user schema
This commit is contained in:
parent
30ec102304
commit
011f596033
@ -2,11 +2,14 @@ export default {
|
|||||||
refreshToken: { type: String, select: false },
|
refreshToken: { type: String, select: false },
|
||||||
username: { type: String, required: true },
|
username: { type: String, required: true },
|
||||||
password: { type: String, required: true, select: false },
|
password: { type: String, required: true, select: false },
|
||||||
|
cover: { type: String },
|
||||||
|
description: { type: String, },
|
||||||
fullName: String,
|
fullName: String,
|
||||||
avatar: { type: String },
|
avatar: { type: String },
|
||||||
email: String,
|
email: String,
|
||||||
roles: { type: Array, default: [] },
|
roles: { type: Array, default: [] },
|
||||||
verified: { type: Boolean, default: false },
|
verified: { type: Boolean, default: false },
|
||||||
createdAt: { type: Date },
|
birthday: { type: Date },
|
||||||
|
createdAt: { type: String },
|
||||||
badges: { type: Array, default: [] },
|
badges: { type: Array, default: [] },
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user