| 30 | }); |
| 31 | |
| 32 | export interface UserDocument extends Document { |
| 33 | /** 用户名 */ |
| 34 | username: string; |
| 35 | /** 密码加密盐 */ |
| 36 | salt: string; |
| 37 | /** 加密的密码 */ |
| 38 | password: string; |
| 39 | /** 头像 */ |
| 40 | avatar: string; |
| 41 | /** 用户标签 */ |
| 42 | tag: string; |
| 43 | /** 表情收藏 */ |
| 44 | expressions: string[]; |
| 45 | /** 创建时间 */ |
| 46 | createTime: Date; |
| 47 | /** 最后登录时间 */ |
| 48 | lastLoginTime: Date; |
| 49 | /** 最后登录IP */ |
| 50 | lastLoginIp: string; |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * User Model |
nothing calls this directly
no outgoing calls
no test coverage detected