user.js 525 B

12345678910111213141516171819
  1. // 用户个人信息表
  2. module.exports = {
  3. userId: { type: Number, unique: true }, // 用户Id, 唯一
  4. userName: { type: String, unique: true }, // 用户名称, 唯一,账号
  5. nickName: String, // 昵称
  6. fullName: String, // 全名
  7. password: String, // 密码
  8. email: String, // 邮箱
  9. avatar: String, // 头像链接
  10. repos: [
  11. {
  12. repoId: { type: Number }, // 拥有的图标库Id
  13. repoName: String,
  14. },
  15. ],
  16. createTime: Date, // 创建时间
  17. updateTime: Date, // 最后更新时间
  18. };