221222.sql 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. -- 任务提交百分比限制规则表
  2. create table wm_task_sub_percent_rule
  3. (
  4. rule_id int(20) auto_increment comment '规则ID'
  5. primary key,
  6. dept_id int(20) not null comment '企业id',
  7. sub_cate varchar(32) not null comment '次级分类',
  8. sub_rule json null comment '规则',
  9. opt_flag varchar(32) not null comment '操作标记',
  10. create_time datetime default CURRENT_TIMESTAMP not null comment '创建时间',
  11. update_time datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '修改时间'
  12. )
  13. comment '任务提交百分比限制规则表' charset = utf8mb4;
  14. create index idx_dept_id
  15. on wm_task_sub_percent_rule (dept_id);
  16. create index idx_sub_cate
  17. on wm_task_sub_percent_rule (sub_cate);
  18. create table wm_task_type_sub_cate2
  19. (
  20. dtt_id int(20) auto_increment comment '主键ID'
  21. primary key,
  22. type_id int(20) not null comment '企业id',
  23. type_name varchar(32) not null comment '任务名称',
  24. sub_cate varchar(32) not null comment '次级分类',
  25. create_time datetime default CURRENT_TIMESTAMP not null comment '创建时间',
  26. update_time datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '修改时间'
  27. )
  28. comment '任务类型二级分类表' charset = utf8mb4;
  29. create index idx_dept_id
  30. on wm_task_type_sub_cate2 (type_id);
  31. create index idx_sub_cate
  32. on wm_task_type_sub_cate2 (sub_cate);