考勤管理数据表设计
1、刷卡记录表
字段 | 类型 | 约束 | 说明 |
work_id | varchar(64) | not null | 工号 |
username | varchar(64) | not null | 姓名 |
department | varchar(64) | not null | 部门 |
start_time_am | datetime | not null | 上午上班时间 |
end_time_am | datetime | not null | 上午下班时间 |
start_time_pm | datetime | not null | 下午上班时间 |
end_time_pm | datetime | not null | 下午下班时间 |
month | date | not null | 月份 |
2、汇总表
字段 | 类型 | 约束 | 说明 |
work_id | varchar(64) | not null | 工号 |
username | varchar(64) | not null | 姓名 |
department | varchar(64) | not null | 部门 |
standard_duration | Int | not null | 标准工时 |
reality_duration | int | not null | 实际工时 |
late_duration | int | not null | 迟到时长(分钟) |
late_time | Int | not null | 迟到次数 |
leave_early_duration | Int | not null | 早退时长 |
overtime_standard | Int |
| 正常加班(时长) |
overtime_holiday | Int |
| 假日加班(时长) |
standard_day | Int |
| 标准工作天数 |
reality_day | Int |
| 实际工作天数 |
evection_day | Int |
| 出差天数 |
absenteeism_day | Int |
| 旷工天数 |
leave_day | Int |
| 请假天数 |
mark_wage | float |
| 标注工资 (加项工资) |
overtime_wage | float |
| 加班工资(加项工资) |
allowance_wage | float |
| 津贴(加项工资) |
latesss_wage | Float |
| 迟到/早退扣款 |
leave_wage | float |
| 请假 |
deductions | float |
| 扣款 |
reality_wage | float |
| 实际工资 |
mark | text |
| 备注 |
3、短信发送记录表:
message_work
字段 | 类型 | 约束 | 说明 |
meaage_id | varchar(64) | not null | 短信ID |
send_id | varchar(64) | not null | 创建人ID |
send_name | varchar(64) | not null | 创建人名称 |
receive_id | varchar(64) | not null | 接收人ID |
receive_name | varchar(64) | not null | 接收人名称 |
receive_phones | int | not null | 接收人手机号码 |
message_content | text | not null | 接收人内容 |
create_time | datetime | not null | 创建时间 |
status | varchar(32) | not null | 发送状态(未发送/已发送) |