gaoluyang
3 天以前 d39e4f7d839167c16425086dfa2f8747bccfdff9
sql/mysql/hrm_user_handover_init.sql
@@ -1,7 +1,9 @@
-- HRM用户数据交接映射表
CREATE TABLE IF NOT EXISTS `hrm_user_handover` (
    `id` bigint NOT NULL AUTO_INCREMENT COMMENT '映射ID',
    `from_employee_id` bigint DEFAULT NULL COMMENT '离职员工ID',
    `from_user_id` bigint NOT NULL COMMENT '离职用户ID',
    `to_employee_id` bigint DEFAULT NULL COMMENT '交接目标员工ID',
    `to_user_id` bigint NOT NULL COMMENT '交接目标用户ID',
    `resignation_id` bigint NOT NULL COMMENT '关联的离职申请ID',
    `handover_status` tinyint NOT NULL DEFAULT 0 COMMENT '交接状态:0-进行中,20-已完成',