mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
extend user schema
This commit is contained in:
parent
d7cca6ce27
commit
76c9e905b9
@ -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