|
@@ -284,10 +284,10 @@ CREATE TABLE `exam_plan` (
|
|
|
|
|
|
|
|
|
|
-- --------------------------------------------------------------------------------------------
|
|
-- --------------------------------------------------------------------------------------------
|
|
--- 赛事活动
|
|
|
|
|
|
+-- 活动信息
|
|
-- --------------------------------------------------------------------------------------------
|
|
-- --------------------------------------------------------------------------------------------
|
|
-DROP TABLE IF EXISTS match_activity;
|
|
|
|
-CREATE TABLE `match_activity` (
|
|
|
|
|
|
+DROP TABLE IF EXISTS activity_info;
|
|
|
|
+CREATE TABLE `activity_info` (
|
|
`id` BIGINT NOT NULL,
|
|
`id` BIGINT NOT NULL,
|
|
`create_user_id` BIGINT DEFAULT NULL COMMENT '创建人',
|
|
`create_user_id` BIGINT DEFAULT NULL COMMENT '创建人',
|
|
`create_date` DATETIME DEFAULT NULL COMMENT '创建时间',
|
|
`create_date` DATETIME DEFAULT NULL COMMENT '创建时间',
|
|
@@ -297,17 +297,46 @@ CREATE TABLE `match_activity` (
|
|
`enabled_mark` INT DEFAULT NULL COMMENT '有效标记',
|
|
`enabled_mark` INT DEFAULT NULL COMMENT '有效标记',
|
|
`name` VARCHAR(50) DEFAULT NULL COMMENT '赛事名称',
|
|
`name` VARCHAR(50) DEFAULT NULL COMMENT '赛事名称',
|
|
place VARCHAR(50) DEFAULT NULL COMMENT '活动地点',
|
|
place VARCHAR(50) DEFAULT NULL COMMENT '活动地点',
|
|
- start_date DATETIME DEFAULT NULL COMMENT '开始时间',
|
|
|
|
- end_date DATETIME DEFAULT NULL COMMENT '结束时间',
|
|
|
|
- TYPE VARCHAR(50) DEFAULT NULL COMMENT '活动类型',
|
|
|
|
|
|
+ start_date DATETIME DEFAULT NULL COMMENT '活动开始时间',
|
|
|
|
+ end_date DATETIME DEFAULT NULL COMMENT '活动结束时间',
|
|
|
|
+ `type` VARCHAR(50) DEFAULT NULL COMMENT '活动类型(xjr_dictionary_detail[match_activity_type])',
|
|
org_id BIGINT DEFAULT NULL COMMENT '组织部门(xjr_department)',
|
|
org_id BIGINT DEFAULT NULL COMMENT '组织部门(xjr_department)',
|
|
- STATUS INT DEFAULT 0 COMMENT '状态(0:未发布 1:已发布)',
|
|
|
|
|
|
+ `enroll_end_time` DATETIME DEFAULT NULL COMMENT '报名结束时间',
|
|
|
|
+ `duty_person` VARCHAR(50) DEFAULT NULL COMMENT '活动负责人',
|
|
|
|
+ `duty_person_mobile` VARCHAR(50) DEFAULT NULL COMMENT '活动负责人电话',
|
|
|
|
+ `cover_file_id` VARCHAR(50) DEFAULT NULL COMMENT '封面图片',
|
|
|
|
+ `enroll_range` LONGTEXT DEFAULT NULL COMMENT '报名范围',
|
|
|
|
+ STATUS INT DEFAULT 0 COMMENT '状态(0:未发布 1:报名中 2:报名结束 3:活动结束)',
|
|
|
|
+ `content` LONGTEXT DEFAULT NULL COMMENT '活动内容',
|
|
|
|
+ enterprise_id BIGINT DEFAULT NULL COMMENT '合作企业',
|
|
|
|
+ category INT DEFAULT NULL COMMENT '1:校企合作活动 2:赛事活动',
|
|
PRIMARY KEY (`id`)
|
|
PRIMARY KEY (`id`)
|
|
-) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='赛事活动';
|
|
|
|
|
|
+) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='活动信息';
|
|
|
|
|
|
|
|
+-- --------------------------------------------------------------------------------------------
|
|
|
|
+-- 活动报名范围
|
|
|
|
+-- --------------------------------------------------------------------------------------------
|
|
|
|
+DROP TABLE IF EXISTS activity_enroll_range;
|
|
|
|
+CREATE TABLE `activity_enroll_range` (
|
|
|
|
+ `id` BIGINT NOT NULL,
|
|
|
|
+ `create_user_id` BIGINT DEFAULT NULL,
|
|
|
|
+ `create_date` DATETIME(3) DEFAULT NULL,
|
|
|
|
+ `modify_user_id` BIGINT DEFAULT NULL,
|
|
|
|
+ `modify_date` DATETIME(3) DEFAULT NULL,
|
|
|
|
+ `delete_mark` INT DEFAULT NULL,
|
|
|
|
+ `enabled_mark` INT DEFAULT NULL,
|
|
|
|
+ `class_id` BIGINT DEFAULT NULL COMMENT '所属班级id',
|
|
|
|
+ `dept_id` BIGINT DEFAULT NULL COMMENT '所属部门id',
|
|
|
|
+ `user_id` BIGINT DEFAULT NULL COMMENT '用id',
|
|
|
|
+ activity_info_id BIGINT DEFAULT NULL COMMENT '活动(activity)',
|
|
|
|
+ PRIMARY KEY (`id`) USING BTREE
|
|
|
|
+) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='活动报名范围';
|
|
|
|
|
|
-DROP TABLE IF EXISTS match_activity_enroll;
|
|
|
|
-CREATE TABLE `match_activity` (
|
|
|
|
|
|
+-- --------------------------------------------------------------------------------------------
|
|
|
|
+-- 活动登记表
|
|
|
|
+-- --------------------------------------------------------------------------------------------
|
|
|
|
+DROP TABLE IF EXISTS activity_enroll;
|
|
|
|
+CREATE TABLE `activity_enroll` (
|
|
`id` BIGINT NOT NULL,
|
|
`id` BIGINT NOT NULL,
|
|
`create_user_id` BIGINT DEFAULT NULL COMMENT '创建人',
|
|
`create_user_id` BIGINT DEFAULT NULL COMMENT '创建人',
|
|
`create_date` DATETIME DEFAULT NULL COMMENT '创建时间',
|
|
`create_date` DATETIME DEFAULT NULL COMMENT '创建时间',
|
|
@@ -315,12 +344,8 @@ CREATE TABLE `match_activity` (
|
|
`modify_date` DATETIME DEFAULT NULL COMMENT '修改日期',
|
|
`modify_date` DATETIME DEFAULT NULL COMMENT '修改日期',
|
|
`delete_mark` INT DEFAULT NULL COMMENT '删除标记',
|
|
`delete_mark` INT DEFAULT NULL COMMENT '删除标记',
|
|
`enabled_mark` INT DEFAULT NULL COMMENT '有效标记',
|
|
`enabled_mark` INT DEFAULT NULL COMMENT '有效标记',
|
|
- `name` VARCHAR(50) DEFAULT NULL COMMENT '赛事名称',
|
|
|
|
- place VARCHAR(50) DEFAULT NULL COMMENT '活动地点',
|
|
|
|
- start_date DATETIME DEFAULT NULL COMMENT '开始时间',
|
|
|
|
- end_date DATETIME DEFAULT NULL COMMENT '结束时间',
|
|
|
|
- TYPE VARCHAR(50) DEFAULT NULL COMMENT '活动类型',
|
|
|
|
- org_id BIGINT DEFAULT NULL COMMENT '组织部门(xjr_department)',
|
|
|
|
- STATUS INT DEFAULT 0 COMMENT '状态(0:未发布 1:已发布)',
|
|
|
|
|
|
+ activity_info_id BIGINT DEFAULT NULL COMMENT '活动(activity_info)',
|
|
|
|
+ user_id DATETIME DEFAULT NULL COMMENT '参与人(xjr_user)',
|
|
|
|
+ STATUS INT DEFAULT 0 COMMENT '状态(0:待确认 1:未参与 2:已参与)',
|
|
PRIMARY KEY (`id`)
|
|
PRIMARY KEY (`id`)
|
|
-) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='赛事活动';
|
|
|
|
|
|
+) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='活动登记表';
|