extend user schema

This commit is contained in:
srgooglo 2022-03-15 03:09:56 +01:00
parent 30ec102304
commit 011f596033

View File

@ -2,11 +2,14 @@ export default {
refreshToken: { type: String, select: false },
username: { type: String, required: true },
password: { type: String, required: true, select: false },
cover: { type: String },
description: { type: String, },
fullName: String,
avatar: { type: String },
email: String,
roles: { type: Array, default: [] },
verified: { type: Boolean, default: false },
createdAt: { type: Date },
birthday: { type: Date },
createdAt: { type: String },
badges: { type: Array, default: [] },
}