使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
注册
登录
stefan.stamenovic
/
diligent-node-api
关注
2
点赞
0
派生
0
代码
工单
0
合并请求
0
版本发布
0
百科
动态
浏览代码
User model minor changes
pull/16/head
Djordje Djoric
3 年前
父节点
4ce06e06f8
当前提交
1e2890a7c5
共有
1 个文件被更改
,包括
4 次插入
和
3 次删除
分列视图
显示文件统计
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
}
}]
})
撰写
预览
正在加载...
取消
保存