20240613_sql.sql 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. -- ----------------------------
  2. -- 专业方向招生计划详情
  3. -- ----------------------------
  4. DROP TABLE IF EXISTS enrollment_plan_major_set;
  5. create table if not exists enrollment_plan_major_set
  6. (
  7. id bigint not null comment '主键编号',
  8. create_user_id bigint null comment '创建人',
  9. create_date datetime null comment '创建时间',
  10. modify_user_id bigint null comment '修改人',
  11. modify_date datetime null comment '修改时间',
  12. delete_mark int not null comment '删除标记',
  13. enabled_mark int not null comment '有效标志',
  14. sort_code int null comment '序号',
  15. enrollment_plan_id bigint not null comment '招生计划维护id(enrollment_plan)',
  16. base_major_set_id bigint not null comment '专业方向id(base_major_set)',
  17. base_major_set_enrollment_num int default 0 comment '专业方向计划招生人数',
  18. base_major_set_enrollment_num_max int default 0 comment '专业方向最大计划招生人数',
  19. PRIMARY KEY (`id`)
  20. ) ENGINE = INNODB
  21. DEFAULT CHARSET = utf8mb4
  22. COLLATE = utf8mb4_0900_ai_ci COMMENT '专业方向招生计划详情';
  23. -- ----------------------------
  24. -- 毕业学校招生计划详情
  25. -- ----------------------------
  26. DROP TABLE IF EXISTS enrollment_plan_graduate_school;
  27. create table if not exists enrollment_plan_graduate_school
  28. (
  29. id bigint not null comment '主键编号',
  30. create_user_id bigint null comment '创建人',
  31. create_date datetime null comment '创建时间',
  32. modify_user_id bigint null comment '修改人',
  33. modify_date datetime null comment '修改时间',
  34. delete_mark int not null comment '删除标记',
  35. enabled_mark int not null comment '有效标志',
  36. sort_code int null comment '序号',
  37. enrollment_plan_major_set_id bigint not null comment '专业方向招生计划详情id(enrollment_plan_major_set)',
  38. base_graduate_school_id bigint not null comment '毕业学校id(base_graduate_school)',
  39. enrollment_num int default 0 comment '毕业学校计划招生人数',
  40. PRIMARY KEY (`id`)
  41. ) ENGINE = INNODB
  42. DEFAULT CHARSET = utf8mb4
  43. COLLATE = utf8mb4_0900_ai_ci COMMENT '毕业学校招生计划详情';
  44. alter table enrollment_plan
  45. modify name varchar(128) null comment '计划名称';
  46. alter table enrollment_plan
  47. modify start_date date null comment '开始时间';
  48. alter table enrollment_plan
  49. modify end_date date null comment '结束时间';