浏览代码

User model minor changes

pull/16/head
Djordje Djoric 3 年前
父节点
当前提交
1e2890a7c5
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4
    3
      src/models/user.js

+ 4
- 3
src/models/user.js 查看文件

@@ -9,15 +9,16 @@ const userSchema = new mongoose.Schema({
type: String
},
email: {
type: String
type: String,
required: true
},
password: {
type: String
type: String,
required: true
},
tokens: [{
token: {
type: String,
required: true
}
}]
})

正在加载...
取消
保存