aboutsummaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-14 17:04:04 +0300
committereug-vs <eug-vs@keemail.me>2020-06-14 17:04:04 +0300
commit758fe624cb7ab31490262cc01b09547d45824e70 (patch)
tree6906f34bd9e5b08e0fbec583b610e78bf23a4f1d /models
parent1860396a1286936374ab88937da3e0b6b9b1a36d (diff)
downloadwhich-api-758fe624cb7ab31490262cc01b09547d45824e70.tar.gz
feat: add password field to userSchema
Diffstat (limited to 'models')
-rw-r--r--models/users/user.schema.ts5
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