20240109_sql.sql 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ALTER TABLE xjr_oa_news ADD COLUMN `wf_status` int not null default 0 COMMENT '状态(1:结束 0:未结束)' AFTER send_range;
  2. DROP TABLE IF EXISTS `wf_head_teacher_leave`;
  3. CREATE TABLE `wf_head_teacher_leave` (
  4. `id` bigint NOT NULL COMMENT '主键编号',
  5. `create_user_id` bigint DEFAULT NULL COMMENT '创建人',
  6. `create_date` datetime DEFAULT NULL COMMENT '创建时间',
  7. `modify_user_id` bigint DEFAULT NULL COMMENT '修改人',
  8. `modify_date` datetime DEFAULT NULL COMMENT '修改时间',
  9. `delete_mark` int NOT NULL COMMENT '删除标记',
  10. `enabled_mark` int NOT NULL COMMENT '有效标志',
  11. `sort_code` int DEFAULT NULL COMMENT '序号',
  12. `wf_teacherleave_id` bigint DEFAULT NULL COMMENT '教职工请假编号',
  13. `applicant_user_id` bigint DEFAULT NULL COMMENT '申请人',
  14. `leave_reason` varchar(20) DEFAULT NULL COMMENT '请假原因(xjr_dictionary_item[leave_reason])',
  15. `start_time` date DEFAULT NULL COMMENT '请假日期',
  16. `time_period` int DEFAULT NULL COMMENT '请假时间段 1=上午 2=下午',
  17. `is_substitute` int NOT NULL DEFAULT '0' COMMENT '是否有替班教师(1:是 0:否)',
  18. `substitute_user_id` bigint DEFAULT NULL COMMENT '替换教师',
  19. `remark` varchar(1000) DEFAULT NULL COMMENT '备注',
  20. `status` int NOT NULL DEFAULT '0' COMMENT '状态(1:结束 0:未结束)',
  21. PRIMARY KEY (`id`)
  22. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='班主任事项请假';
  23. DROP TABLE IF EXISTS `xjr_oa_news_relation`;
  24. CREATE TABLE `xjr_oa_news_relation` (
  25. `id` varchar(64) NOT NULL,
  26. `news_id` bigint DEFAULT NULL,
  27. `user_id` bigint DEFAULT NULL,
  28. `create_date` datetime DEFAULT NULL,
  29. `read_mark` int DEFAULT NULL COMMENT '阅读标记 0=未读 2=已读',
  30. `read_date` datetime DEFAULT NULL COMMENT '阅读时间',
  31. `reply_content` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '回复内容',
  32. PRIMARY KEY (`id`) USING BTREE
  33. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;