提交
This commit is contained in:
1 parent
86401c7753
commit
8783150883
13 files changed
+10336
-2
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,31 @@
|
||||
-- xg_student_status_change.sql
|
||||
-- 学生学籍异动表 DDL(退学/休学/复学/毕业)
|
||||
-- 生成说明:根据用户提供的表模型,已修正小幅语法问题(尾逗号)。如需保持原样请告知。
|
||||
|
||||
CREATE TABLE `xg_student_status_change` (
|
||||
`id` bigint(20) NOT NULL COMMENT '主键,雪花ID(建议使用雪花算法生成)',
|
||||
`student_id` bigint(20) NOT NULL COMMENT '学生ID,关联学生主表',
|
||||
`student_no` varchar(100) DEFAULT NULL COMMENT '学号',
|
||||
`change_type` varchar(20) NOT NULL COMMENT '异动类型: TUI_XUE(退学), XIU_XUE(休学), FU_XUE(复学), BI_YE(毕业)',
|
||||
`apply_date` datetime NOT NULL COMMENT '申请/登记日期',
|
||||
`effective_date` datetime DEFAULT NULL COMMENT '生效日期(业务生效时间)',
|
||||
`reason` varchar(1000) DEFAULT NULL COMMENT '异动原因',
|
||||
`operator_id` bigint(20) DEFAULT NULL COMMENT '经办人ID(登记人)',
|
||||
`operator_name` varchar(64) DEFAULT NULL COMMENT '经办人姓名',
|
||||
`source` varchar(50) DEFAULT 'manual' COMMENT '来源: manual/import/workflow',
|
||||
`process_status` tinyint(2) NOT NULL DEFAULT 0 COMMENT '处理状态:0=未处理,1=已处理',
|
||||
`create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
`tenant_id` varchar(20) DEFAULT '000000' COMMENT '租户ID(多租户)',
|
||||
`deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除:0=正常,1=已删除',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_student_id` (`student_id`),
|
||||
KEY `idx_change_type` (`change_type`),
|
||||
KEY `idx_process_status` (`process_status`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
|
||||
COMMENT='学生学籍异动表';
|
||||
|
||||
|
||||
Reference in new issue
Block a user