20231211_sql.sql 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. -- ----------------------------
  2. -- 班主任事项请假
  3. -- ----------------------------
  4. DROP TABLE IF EXISTS wf_head_teacher_leave;
  5. CREATE TABLE wf_head_teacher_leave
  6. (
  7. id BIGINT NOT NULL COMMENT '主键编号',
  8. `create_user_id` BIGINT NULL DEFAULT NULL COMMENT '创建人',
  9. `create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
  10. `modify_user_id` BIGINT NULL DEFAULT NULL COMMENT '修改人',
  11. `modify_date` datetime NULL DEFAULT NULL COMMENT '修改时间',
  12. `delete_mark` INT NOT NULL COMMENT '删除标记',
  13. `enabled_mark` INT NOT NULL COMMENT '有效标志',
  14. `sort_code` INT NULL DEFAULT NULL COMMENT '序号',
  15. `applicant_user_id` bigint NULL DEFAULT NULL COMMENT '申请人',
  16. `leave_reason`varchar(20) NULL DEFAULT NULL COMMENT '请假原因(xjr_dictionary_item[leave_reason])',
  17. `start_time` date NULL DEFAULT NULL COMMENT '开始时间',
  18. `end_time` date NULL DEFAULT NULL COMMENT '结束时间',
  19. `is_substitute` INT NOT NULL default 0 COMMENT '是否有替班教师(1:是 0:否)',
  20. `substitute_user_id` bigint NULL DEFAULT NULL COMMENT '替换教师',
  21. `remark` varchar(1000) COMMENT '备注',
  22. `status` int not null default 0 COMMENT '状态(1:结束 0:未结束)',
  23. PRIMARY KEY (`id`)
  24. ) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT '班主任事项请假';
  25. DROP TABLE IF EXISTS `wf_mealrequest`;
  26. CREATE TABLE `wf_mealrequest` (
  27. `id` bigint NOT NULL,
  28. `user_id` longtext COMMENT '申请人',
  29. `declaration_department` varchar(500) DEFAULT NULL COMMENT '申报部门',
  30. `reception_date` datetime DEFAULT NULL COMMENT '接待日期',
  31. `meal_category` varchar(500) DEFAULT NULL COMMENT '用餐类别',
  32. `number_of_visitors` double DEFAULT NULL COMMENT '来访人数',
  33. `dining_location` varchar(500) DEFAULT NULL COMMENT '用餐地点',
  34. `official_letter` varchar(500) DEFAULT NULL COMMENT '公函',
  35. `meal_reasons` varchar(500) DEFAULT NULL COMMENT '用餐事由',
  36. `file` longtext COMMENT '附件',
  37. PRIMARY KEY (`id`)
  38. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='公务接待审批';