Schema
- schema name
- schema fields
- schema field type
- schema field enum/number/date/datetime description
SCHEMAS
User model
用户表
Table name
users
Fields
| Field | Type | Desc |
|---|---|---|
| _id | BigInt | 用户 ID |
| no | String | 工号/编号 (唯一性) |
| name | String | 名称(后台录入) |
| wxname | String | 微信昵称(用户微信登陆时自动更新) |
| phone | String | 手机号码(登录账号) |
| jointime | Date | 入职日期 ((new Date()).toISOString()) |
| avatar | Url | 头像地址 |
| gender | String | 性别查看详情 |
| birthday | Date | 出生日期((new Date()).toISOString()) |
| role | String | 角色查看详情 |
| roles | String | 角色 ID(角色 ID 英文逗号隔开) |
| department | BigInt | 部门(字典 ID) |
| remark | String | 备注 |
| salt | String | 加密密码所使用的 salt |
| password | String | 只读属性, 加密后的密码 |
| status | String | 状态, 查看详情 |
状态: gender
| 值 | 说明 |
|---|---|
| m | 男 |
| f | 女 |
状态: status
| 值 | 说明 |
|---|---|
| normal | 正常/在职 |
| absent | 离职 |
| block | 被禁用/无效 |
状态: role
| 值 | 说明 |
|---|---|
| employee | 员工 |
| admin | 管理员 |
Page Source