diff options
Diffstat (limited to 'models')
-rw-r--r-- | models/users/user.schema.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/models/users/user.schema.ts b/models/users/user.schema.ts index 07979d1..fd7d1e1 100644 --- a/models/users/user.schema.ts +++ b/models/users/user.schema.ts @@ -6,10 +6,13 @@ export interface User { age?: number; } -export interface UserSchema extends Document, User {} +export interface UserSchema extends Document, User { + password: string; +} export const userSchema = new Schema({ name: String, + password: String, avatarUrl: { type: String, required: false |