设计思想
设计实例
权限表permission
英文描述 | 类型 | 长度 | 是否主键 | 备注 |
id | int | 11 | Y | 主键 |
name | string | 255 | N | 权限名 |
column_id | int | 11 | N | 与权限分栏字段关联 |
permission | string | 255 | N | 与权限映射表相关联,权限操作信息 |
create_date | string | 255 | N | 创建时间 |
create_by | string | 25 | N | 创建人 |
update_date | string | 255 | N | 修改时间 |
update_by | string | 25 | N | 修改人 |
角色表role
英文描述 | 类型 | 长度 | 是否主键 | 备注 |
id | int | 11 | Y | 主键 |
name | string | 255 | N | 角色名 |
info | string | 255 | N | 角色信息 |
create_date | string | 255 | N | 创建时间 |
create_by | string | 25 | N | 创建人 |
update_date | string | 255 | N | 修改时间 |
update_by | string | 25 | N | 修改人 |
用户表person_user
英文描述 | 类型 | 长度 | 是否主键 | 备注 |
id | string | 20 | Y | 人员编号 |
employee_name | string | 10 | N | 人员姓名 |
birthday | date |
| N | 出生日期 |
address | string | 255 | N | 居住地 |
sex | string | 2 | N | 性别 |
work_experience | string | 3 | N | 工作年限 |
id_number | string | 18 | N | 身份证号码 |
account_location | string | 255 | N | 户口所在地 |
marred | string | 10 | N | 婚姻状况 |
political_status | string | 20 | N | 政治面貌 |
zip_code_1 | string | 6 | N | 居住地邮编 |
zip_code_2 | string | 6 | N | 户口所在地邮编 |
mobile_number | string | 11 | N | 联系电话 |
emergency_call | string | 11 | N | 晋级联系电话 |
| string | 50 | N | 邮箱 |
file_location | string | 255 | N | 档案所在地 |
file_location_type | string | 255 | N | 档案管理形式 |
social_insurance | string | 10 | N | 是否缴纳社会保险 |
social_insurance_type | string | 20 | N | 保险形式 |
provident_fund | string | 10 | N | 是否缴纳公积金 |
provident_fund_type | string | 255 | N | 公积金形式 |
social_security_number | string | 30 | N | 社保卡号码 |
provident_fund_number | string | 30 | N | 公积金号码 |
social_security_kind | string | 10 | N | 社会保险险种 |
depart_id | string | 20 | N | 所属部门 |
position_id | string | 20 | N | 职位 |
entry_time | string | 20 | N | 入职时间 |
employee_state | string | 10 | N | 在职状态1:在职0:离职 |
create_date | date |
| N | 录入时间 |
create_by | string | 10 | N | 录入人 |
update_date | date |
| N | 更新时间 |
update_by | string | 20 | N | 更新人 |
权限映射表role_permission
英文描述 | 类型 | 长度 | 是否主键 | 备注 |
id | int | 11 | Y |
|
permission | string | 255 | N | 关联权限 |
role_id | int | 11 | N | 关联角色 |
create_date | string | 255 | N | 创建时间 |
create_by | string | 25 | N | 创建人 |
update_date | string | 255 | N | 修改时间 |
update_by | string | 25 | N | 修改人 |
用户映射表user_role
英文描述 | 类型 | 长度 | 是否主键 | 备注 |
id | int | 11 | Y |
|
role_id | int | 11 | N | 角色id |
user_id | string | 20 | N | 用户id |
create_date | string | 255 | N | 创建时间 |
create_by | string | 25 | N | 创建人 |
update_date | string | 255 | N | 修改时间 |
update_by | string | 25 | N | 修改人 |