20240718_sql.sql 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. -- 党员干部学习
  2. DROP TABLE IF EXISTS `party_cadre_study`;
  3. CREATE TABLE `party_cadre_study`
  4. (
  5. id bigint not null comment '主键编号'
  6. primary key,
  7. create_user_id bigint null comment '创建人',
  8. create_date datetime null comment '创建时间',
  9. modify_user_id bigint null comment '修改人',
  10. modify_date datetime null comment '修改时间',
  11. delete_mark int not null comment '删除标记',
  12. enabled_mark int not null comment '有效标志',
  13. sort_code int null comment '序号',
  14. party_tissue_id bigint not null comment '党组织主键id(party_tissue_manager)',
  15. party_tissue_name varchar(256) not null comment '党组织名称',
  16. party_tissue_code varchar(256) not null comment '党组织编号',
  17. party_train_way_carrier varchar(500) not null comment '党员干部学习培训主要途径和载体',
  18. party_train_way_content varchar(500) not null comment '党员干部学习培训内容',
  19. start_time date not null comment '活动开始日期',
  20. end_time date not null comment '活动结束日期',
  21. participate_teacher_count int null comment '参与教师数',
  22. participate_student_count int null comment '参与学生数'
  23. ) ENGINE = InnoDB
  24. DEFAULT CHARSET = utf8mb4
  25. comment '党员干部学习';
  26. -- 党员干部学习活动参与人
  27. DROP TABLE IF EXISTS `party_cadre_study_participant`;
  28. CREATE TABLE `party_cadre_study_participant`
  29. (
  30. id bigint not null comment '主键编号'
  31. primary key,
  32. create_user_id bigint null comment '创建人',
  33. create_date datetime null comment '创建时间',
  34. modify_user_id bigint null comment '修改人',
  35. modify_date datetime null comment '修改时间',
  36. delete_mark int not null comment '删除标记',
  37. enabled_mark int not null comment '有效标志',
  38. sort_code int null comment '序号',
  39. party_cadre_study_id bigint null comment '党员干部学习主键id(party_cadre_study)',
  40. participant_id bigint null comment '活动参与人id',
  41. participant_remark varchar(256) null comment '活动参与人类型',
  42. participant_username varchar(256) null comment '活动参与人oa',
  43. participant_user_id varchar(256) null comment '活动参与人学号,工号',
  44. participant_name varchar(256) null comment '活动参与人姓名'
  45. ) ENGINE = InnoDB
  46. DEFAULT CHARSET = utf8mb4
  47. comment '党员干部学习活动参与人';
  48. # 数据字典
  49. # par_part 党员干部学习培训内容
  50. # 值 名称 编号
  51. # 1 党的理论 par_part1
  52. # 2 相关政策文件 par_part2
  53. # 3 党规党纪及国家法律法规 par_part3
  54. # 4 教育教学业务 par_part4
  55. # 5 学校管理 par_part5
  56. # 6 文化建设 par_part6
  57. # 7 经济方面 par_part7
  58. # 8 互联网与新媒体方面 par_part8
  59. # 9 心理健康 par_part9
  60. # 10 师德师风 par_part10
  61. # 99 其他 par_part99
  62. #
  63. # party_way 党员干部学习培训主要途径和载体
  64. # 值 名称 编号
  65. # 1 实践活动 party_way1
  66. # 2 会议 party_way2
  67. # 3 讲座报告 party_way3
  68. # 4 学校定期集中学习 party_way4
  69. # 5 支部定期集中学习 party_way5
  70. # 6 微信 QQ party_way6
  71. # 7 移动端培训平台 party_way7
  72. # 8 分发图书资料 party_way8
  73. # 9 个人学习 party_way9
  74. # 10 在线教育网站 party_way10
  75. # 11 参观学习 party_way11
  76. # 99 其他 party_way99
  77. -- 党课管理数据表
  78. DROP TABLE IF EXISTS party_class_manage;
  79. CREATE TABLE party_class_manage
  80. (
  81. id bigint not null comment '主键编号' primary key,
  82. create_user_id bigint null comment '创建人',
  83. create_date datetime null comment '创建时间',
  84. modify_user_id bigint null comment '修改人',
  85. modify_date datetime null comment '修改时间',
  86. delete_mark int not null comment '删除标记',
  87. enabled_mark int not null comment '有效标志',
  88. sort_code int null comment '序号',
  89. party_tissue_name varchar(256) not null comment '党组织名称',
  90. party_tissue_code varchar(256) not null comment '党组织编号',
  91. party_tissue_id bigint not null comment '党组织主键id(party_tissue_manager)',
  92. activity_type varchar(256) null comment '活动形式',
  93. speaker_name varchar(256) null comment '党课主讲人',
  94. start_time date not null comment '活动开始时间',
  95. end_time date not null comment '活动结束时间',
  96. activities_content text NULL COMMENT '活动内容',
  97. participate_teacher_count int null comment '参与教师数',
  98. participate_student_count int null comment '参与学生数'
  99. ) ENGINE = InnoDB
  100. DEFAULT CHARSET = utf8mb4
  101. COMMENT ='党课管理数据表';
  102. -- 党课活动参与人表
  103. DROP TABLE IF EXISTS party_class_manage_participant;
  104. CREATE TABLE party_class_manage_participant
  105. (
  106. id bigint not null comment '主键编号' primary key,
  107. create_user_id bigint null comment '创建人',
  108. create_date datetime null comment '创建时间',
  109. modify_user_id bigint null comment '修改人',
  110. modify_date datetime null comment '修改时间',
  111. delete_mark int not null comment '删除标记',
  112. enabled_mark int not null comment '有效标志',
  113. sort_code int null comment '序号',
  114. party_class_manage_id bigint not null comment '党课管理id',
  115. participant_id bigint null comment '活动参与人id',
  116. participant_remark varchar(256) null comment '活动参与人类型',
  117. participant_username varchar(256) null comment '活动参与人oa',
  118. participant_user_id varchar(256) null comment '活动参与人学号,工号',
  119. participant_name varchar(256) null comment '活动参与人姓名'
  120. ) ENGINE = InnoDB
  121. DEFAULT CHARSET = utf8mb4
  122. COMMENT ='党课活动参与人表';
  123. -- 党建活动
  124. DROP TABLE IF EXISTS `party_build_event`;
  125. CREATE TABLE party_build_event
  126. (
  127. id bigint not null comment '主键编号'
  128. primary key,
  129. create_user_id bigint null comment '创建人',
  130. create_date datetime null comment '创建时间',
  131. modify_user_id bigint null comment '修改人',
  132. modify_date datetime null comment '修改时间',
  133. delete_mark int not null comment '删除标记',
  134. enabled_mark int not null comment '有效标志',
  135. sort_code int null comment '序号',
  136. event_type varchar(255) not null comment '活动类型',
  137. party_tissue_id bigint not null comment '党组织主键id(party_tissue_manager)',
  138. party_tissue_name varchar(256) not null comment '党组织名称',
  139. party_tissue_code varchar(256) not null comment '党组织编号',
  140. event_address varchar(255) null comment '活动地点',
  141. event_content text null comment '活动内容',
  142. event_start_time date not null comment '活动开始时间',
  143. event_end_time date not null comment '活动结束时间',
  144. attend_teacher_num int null comment '参于教师数',
  145. attend_student_num int null comment '参于学生数'
  146. ) ENGINE = InnoDB
  147. DEFAULT CHARSET = utf8mb4
  148. COMMENT ='党建活动';
  149. -- 党建活动参与人员
  150. DROP TABLE IF EXISTS `party_build_event_participant`;
  151. CREATE TABLE `party_build_event_participant`
  152. (
  153. id bigint not null comment '主键编号'
  154. primary key,
  155. create_user_id bigint null comment '创建人',
  156. create_date datetime null comment '创建时间',
  157. modify_user_id bigint null comment '修改人',
  158. modify_date datetime null comment '修改时间',
  159. delete_mark int not null comment '删除标记',
  160. enabled_mark int not null comment '有效标志',
  161. sort_code int null comment '序号',
  162. party_build_event_id bigint null comment '党建活动主键id(party_build_event)',
  163. participant_id bigint null comment '参与活动人id',
  164. participant_remark varchar(256) null comment '活动参与人类型',
  165. participant_username varchar(256) null comment '活动参与人oa',
  166. participant_user_id varchar(256) null comment '活动参与人学号,工号',
  167. participant_name varchar(256) null comment '活动参与人姓名'
  168. ) ENGINE = InnoDB
  169. DEFAULT CHARSET = utf8mb4
  170. comment '党建活动参与人员';