/*
 Navicat Premium Data Transfer

 Source Server         : 测试
 Source Server Type    : MariaDB
 Source Server Version : 100318
 Source Host           : test.tall.wiki:3306
 Source Schema         : mt

 Target Server Type    : MariaDB
 Target Server Version : 100318
 File Encoding         : 65001

 Date: 13/05/2021 15:12:11
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for t_common_file
-- ----------------------------
DROP TABLE IF EXISTS `t_common_file`;
CREATE TABLE `t_common_file`  (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '上传用户ID',
  `file_name` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '文件名',
  `location` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '存储位置',
  `visit_location` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '访问位置',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态 0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '文件表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_compete_coach
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_coach`;
CREATE TABLE `t_compete_coach`  (
  `id` bigint(20) NOT NULL,
  `identity` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '身份 0领队 1教练',
  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '姓名',
  `gender` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '性别 0女 1男',
  `phone` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '联系方式',
  `id_card` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '身份证号',
  `id_photo` bigint(20) NULL DEFAULT 0 COMMENT '证件照文件的id',
  `coach_certificate` bigint(20) NULL DEFAULT 0 COMMENT '教练证文件的id 只有教练有 非必填',
  `company_id` bigint(20) NULL DEFAULT 0 COMMENT '参赛单位id',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `id_photo_index`(`id_photo`) USING BTREE,
  INDEX `coach_certificate_index`(`coach_certificate`) USING BTREE,
  INDEX `company_index`(`company_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '领队教练表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_compete_company
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_company`;
CREATE TABLE `t_compete_company`  (
  `id` bigint(20) NOT NULL,
  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '单位名称',
  `type` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '参加的比赛的类型，默认为跳绳比赛：0跳绳 。。。',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  `compete_time_id` bigint(20) NULL DEFAULT 0 COMMENT '大赛id',
  `contacts_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '联系人姓名',
  `contacts_phone` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '联系方式（手机号）',
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT 'userId',
  `join_num` int(11) NULL DEFAULT 0 COMMENT '参赛人数',
  `leader_num` int(11) NULL DEFAULT 0 COMMENT '领队人数',
  `coach_num` int(11) NULL DEFAULT 0 COMMENT '教练人数',
  `authorization` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否同意安全责任书 0否 1是',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '参赛项目信息' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_compete_company_copy
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_company_copy`;
CREATE TABLE `t_compete_company_copy`  (
  `id` bigint(20) NOT NULL,
  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '单位名称',
  `type` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '参加的比赛的类型，默认为跳绳比赛：0跳绳 。。。',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  `compete_time_id` bigint(20) NULL DEFAULT 0 COMMENT '大赛id',
  `contacts_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '联系人姓名',
  `contacts_phone` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '联系方式（手机号）',
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT 'userId',
  `join_num` int(11) NULL DEFAULT 0 COMMENT '参赛人数',
  `leader_num` int(11) NULL DEFAULT 0 COMMENT '领队人数',
  `coach_num` int(11) NULL DEFAULT 0 COMMENT '教练人数',
  `authorization` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否同意安全责任书 0否 1是',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '参赛项目信息' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_compete_company_role
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_company_role`;
CREATE TABLE `t_compete_company_role`  (
  `id` bigint(20) NOT NULL,
  `player_id` bigint(20) NULL DEFAULT 0 COMMENT '选手id',
  `compete_company_id` bigint(20) NULL DEFAULT 0 COMMENT '单位（院校）id',
  `type` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '院系内的身份 0领队 1裁判 2填表人',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `player_index`(`player_id`) USING BTREE,
  INDEX `compete_company_index`(`compete_company_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '人员在院系内的身份' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_compete_count_score
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_count_score`;
CREATE TABLE `t_compete_count_score`  (
  `id` bigint(20) NOT NULL,
  `compete_time_id` bigint(20) NULL DEFAULT 0 COMMENT '参加的大赛的id（第几届的xx比赛）',
  `project_id` bigint(20) NULL DEFAULT 0 COMMENT '项目id',
  `site_order_id` bigint(20) NULL DEFAULT 0 COMMENT '场次表id（出场顺序表）',
  `chief_judgment_score` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '主裁判打分',
  `judgment_a_score` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '裁判一打分',
  `judgment_b_score2` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '裁判二打分',
  `should_times` int(11) NULL DEFAULT 0 COMMENT '应得数',
  `deduct_times` int(11) NULL DEFAULT 0 COMMENT '扣除次数',
  `deduct_cause` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '扣除原因',
  `final_score` decimal(10, 2) NULL DEFAULT -1. COMMENT '最终得分',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `score_compete_time_index`(`compete_time_id`) USING BTREE,
  INDEX `score_project_index`(`project_id`) USING BTREE,
  INDEX `score_site_order_index`(`site_order_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '计数赛评分表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_compete_group
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_group`;
CREATE TABLE `t_compete_group`  (
  `id` bigint(20) NOT NULL,
  `group_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '分组名称',
  `description` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '描述',
  `start_age` int(11) NULL DEFAULT 0 COMMENT '开始年龄',
  `end_age` int(11) NULL DEFAULT 0 COMMENT '结束年龄',
  `sequence` int(11) NULL DEFAULT 0 COMMENT '排序',
  `type` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '参加的比赛的类型，默认为跳绳比赛：0跳绳 。。。',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  `sex` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '性别 0女 1男',
  `max_age` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '最大年龄',
  `min_age` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '最小年龄',
  `group_remark` tinyint(2) NULL DEFAULT 0 COMMENT '组别描述 1小学，2中学，3高职院校，4本科院校，5俱乐部',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '年龄组信息' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_compete_judgment
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_judgment`;
CREATE TABLE `t_compete_judgment`  (
  `id` bigint(20) NOT NULL,
  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '名字',
  `phone` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '手机号',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '备注',
  `compete_time_id` bigint(20) NULL DEFAULT 0 COMMENT '参加的大赛的id（第几届的xx比赛）',
  `site` int(11) NULL DEFAULT 0 COMMENT '场地（某个项目下的第几个场次）',
  `project_id` bigint(20) NULL DEFAULT 0 COMMENT '比赛项目id',
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT 'tall用户id',
  `member_id` bigint(20) NULL DEFAULT 0 COMMENT '该用户在tall系统内的成员id',
  `role_id` bigint(20) NULL DEFAULT 0 COMMENT '该用户在tall系统内的角色id',
  `chief_judgment` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '0:主裁判 1:裁判1 2:裁判2 3:裁判3 4:裁判4 5:裁判5 6:裁判6 7:裁判7',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `judgment_compete_time_index`(`compete_time_id`) USING BTREE,
  INDEX `judgment_project_index`(`project_id`) USING BTREE,
  INDEX `judgment_user_index`(`user_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '裁判信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_compete_order_remark
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_order_remark`;
CREATE TABLE `t_compete_order_remark`  (
  `id` bigint(20) NOT NULL,
  `start_order_id` bigint(20) NULL DEFAULT 0 COMMENT '场次id',
  `judgment_id` bigint(20) NULL DEFAULT 0 COMMENT '裁判id',
  `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注详情',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `remark_start_order_index`(`start_order_id`) USING BTREE,
  INDEX `remark_judgment_index`(`judgment_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '裁判场次备注表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_compete_player
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_player`;
CREATE TABLE `t_compete_player`  (
  `id` bigint(20) NOT NULL,
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT 'userId',
  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '姓名',
  `id_card` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '身份证',
  `phone` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '手机号',
  `gender` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '性别 0女 1男',
  `id_card_front` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '身份证图片正面',
  `id_card_back` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '身份证图片背面',
  `prove_img` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '证明文件',
  `compete_group_id` bigint(20) NULL DEFAULT 0 COMMENT '参赛组别',
  `company_id` bigint(20) NULL DEFAULT 0 COMMENT '参赛单位id',
  `authorization` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否同意“山西省学生体育竞赛诚信承诺书”',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  `compete_time_id` bigint(20) NULL DEFAULT 0 COMMENT '大赛id',
  `id_card_front_file` bigint(20) NULL DEFAULT 0 COMMENT '身份证正面照片的文件id 或户口本照片',
  `id_card_back_file` bigint(20) NULL DEFAULT 0 COMMENT '身份证反面照片的文件id',
  `id_photo_file` bigint(20) NULL DEFAULT 0 COMMENT '一寸证件照文件的id',
  `student_record_file` bigint(20) NULL DEFAULT 0 COMMENT '学籍证明/俱乐部证明',
  `health_record_file` bigint(20) NULL DEFAULT 0 COMMENT '体检证明',
  `insurance_record_file` bigint(20) NULL DEFAULT 0 COMMENT '保险证明',
  `group_remark` tinyint(2) NULL DEFAULT 0 COMMENT '组别描述 1小学，2中学，3高职院校，4本科院校，5俱乐部',
  `responsibility_risk_file` bigint(20) NULL DEFAULT 0 COMMENT '自愿参赛责任及风险告知书',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `user_index`(`user_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '参赛选手基本信息' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_compete_player_copy
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_player_copy`;
CREATE TABLE `t_compete_player_copy`  (
  `id` bigint(20) NOT NULL,
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT 'userId',
  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '姓名',
  `id_card` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '身份证',
  `phone` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '手机号',
  `gender` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '性别 0女 1男',
  `id_card_front` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '身份证图片正面',
  `id_card_back` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '身份证图片背面',
  `prove_img` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '证明文件',
  `compete_group_id` bigint(20) NULL DEFAULT 0 COMMENT '参赛组别',
  `company_id` bigint(20) NULL DEFAULT 0 COMMENT '参赛单位id',
  `authorization` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否同意“山西省学生体育竞赛诚信承诺书”',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  `compete_time_id` bigint(20) NULL DEFAULT 0 COMMENT '大赛id',
  `id_card_front_file` bigint(20) NULL DEFAULT 0 COMMENT '身份证正面照片的文件id 或户口本照片',
  `id_card_back_file` bigint(20) NULL DEFAULT 0 COMMENT '身份证反面照片的文件id',
  `id_photo_file` bigint(20) NULL DEFAULT 0 COMMENT '一寸证件照文件的id',
  `student_record_file` bigint(20) NULL DEFAULT 0 COMMENT '学籍证明/俱乐部证明',
  `health_record_file` bigint(20) NULL DEFAULT 0 COMMENT '体检证明',
  `insurance_record_file` bigint(20) NULL DEFAULT 0 COMMENT '保险证明',
  `group_remark` tinyint(2) NULL DEFAULT 0 COMMENT '组别描述 1小学，2中学，3高职院校，4本科院校，5俱乐部',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `user_index`(`user_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '参赛选手基本信息' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_compete_player_family
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_player_family`;
CREATE TABLE `t_compete_player_family`  (
  `id` bigint(20) NOT NULL,
  `player_id` bigint(20) NULL DEFAULT 0 COMMENT '报名的选手id',
  `children_id` bigint(20) NULL DEFAULT 0 COMMENT '关联的家人的playerid',
  `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `player_index`(`player_id`) USING BTREE,
  INDEX `children_index`(`children_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '亲子信息关联表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_compete_player_look
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_player_look`;
CREATE TABLE `t_compete_player_look`  (
  `id` bigint(20) NOT NULL,
  `company_id` bigint(20) NULL DEFAULT 0 COMMENT '单位id',
  `look_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '观看状态 0未观看，1已观看',
  `look_time` bigint(20) NULL DEFAULT 0 COMMENT '观看的时间',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `video_company_index`(`company_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '单位观看开幕式视频记录（签到用）' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_compete_project
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_project`;
CREATE TABLE `t_compete_project`  (
  `id` bigint(20) NOT NULL,
  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '项目名称',
  `parent_id` bigint(20) NULL DEFAULT 0 COMMENT '父级id',
  `level` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '分组等级',
  `team` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否为团队项目，0不是 1是',
  `join_rule` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '参加限制，0同单位同组别，1同单位不限组别',
  `certificate` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否支持通级（考证） 0否 1是',
  `member_min` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '最少人数',
  `member_max` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '最多人数',
  `type` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '参加的比赛的类型，默认为跳绳比赛：0跳绳 。。。',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  `compete_time_id` bigint(20) NULL DEFAULT 0 COMMENT '大赛id',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `parent_index`(`parent_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '参赛项目信息' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_compete_project_config
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_project_config`;
CREATE TABLE `t_compete_project_config`  (
  `id` bigint(20) NOT NULL,
  `project_id` bigint(20) NULL DEFAULT 0 COMMENT '项目id',
  `project_duration` bigint(20) NULL DEFAULT 0 COMMENT '项目时长',
  `site_num` int(11) UNSIGNED NULL DEFAULT 1 COMMENT '场地数量',
  `start_time` bigint(20) NULL DEFAULT 0 COMMENT '该项目开始时间',
  `end_time` bigint(20) NULL DEFAULT 0 COMMENT '该项目结束时间',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  `video_start_time` bigint(20) NULL DEFAULT 0 COMMENT '上传视频的开始时间',
  `video_end_time` bigint(20) NULL DEFAULT 0 COMMENT '上传视频的结束时间',
  `video_restrict` tinyint(2) NULL DEFAULT 0 COMMENT '是否限制可以上传视频的时间 0不限制 1限制',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `config_project_index`(`project_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '比赛项目配置场次信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_compete_project_group
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_project_group`;
CREATE TABLE `t_compete_project_group`  (
  `id` bigint(20) NOT NULL,
  `project_id` bigint(20) NULL DEFAULT 0 COMMENT '比赛项目id',
  `group_id` bigint(20) NULL DEFAULT 0 COMMENT '不可见的组别的id',
  `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `project_index`(`project_id`) USING BTREE,
  INDEX `group_index`(`group_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '比赛项目对组别不可见' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_compete_project_player
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_project_player`;
CREATE TABLE `t_compete_project_player`  (
  `id` bigint(20) NOT NULL,
  `player_id` bigint(20) NULL DEFAULT 0 COMMENT '参赛选手id',
  `project_id` bigint(20) NULL DEFAULT 0 COMMENT '参赛项目id',
  `compete_time_id` bigint(20) NULL DEFAULT 0 COMMENT '第几届id',
  `gender_group` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '性别组，0女 1男 2混合 单人项目与参赛选手相同，团队项目若有一个异性则变为混合组',
  `certificate` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否选择通级（只有项目支持通级才可以选择） 0否 1是',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  `compete_group_id` bigint(20) NULL DEFAULT 0 COMMENT '组别id',
  `success` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '报名是否成功 0否 1是 默认成功',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `player_index`(`player_id`) USING BTREE,
  INDEX `project_index`(`project_id`) USING BTREE,
  INDEX `compete_time_index`(`compete_time_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '参赛项目信息' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_compete_speed_video
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_speed_video`;
CREATE TABLE `t_compete_speed_video`  (
  `id` bigint(20) NOT NULL,
  `company_id` bigint(20) NULL DEFAULT 0 COMMENT '单位id',
  `company_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '单位名',
  `player_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '选手名',
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT 'userId',
  `video_url_one` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '视频路径1',
  `video_url_two` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '视频路径2',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `speed_video_company_index`(`company_id`) USING BTREE,
  INDEX `rspeed_video_user_index`(`user_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '通级赛视频' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_compete_start_order
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_start_order`;
CREATE TABLE `t_compete_start_order`  (
  `id` bigint(20) NOT NULL,
  `project_id` bigint(20) NULL DEFAULT 0 COMMENT '比赛项目id',
  `player_id` bigint(20) NULL DEFAULT 0 COMMENT '选手参赛记录id/团队id  project_player_id/team_id',
  `team` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否是团体 0否 1是',
  `compete_order` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '场次',
  `site` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '场地信息（123456）',
  `task_id` bigint(20) NULL DEFAULT 0 COMMENT '关联tall的任务id',
  `start_time` bigint(20) NULL DEFAULT 0 COMMENT '该场次开始时间',
  `end_time` bigint(20) NULL DEFAULT 0 COMMENT '该场次结束时间',
  `waiver` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否弃权，0正常，1弃权，2取消比赛资格',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `start_order_project_index`(`project_id`) USING BTREE,
  INDEX `start_order_player_index`(`player_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '出场顺序表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_compete_team
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_team`;
CREATE TABLE `t_compete_team`  (
  `id` bigint(20) NOT NULL,
  `creator` bigint(20) NULL DEFAULT 0 COMMENT '创建者id（playerId）',
  `project_id` bigint(20) NULL DEFAULT 0 COMMENT '参赛项目id',
  `compete_time_id` bigint(20) NULL DEFAULT 0 COMMENT '第几届id',
  `gender_group` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '性别组，0女 1男 2混合 单人项目与参赛选手相同，团队项目若有一个异性则变为混合组',
  `certificate` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否选择通级（只有项目支持通级才可以选择） 0否 1是',
  `qr_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '邀请链接或二维码',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  `compete_group_id` bigint(20) NULL DEFAULT 0 COMMENT '组别id',
  `success` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '报名是否成功 0否 1是 默认成功',
  `company_id` bigint(20) NULL DEFAULT 0 COMMENT '单位id',
  `group_remark` tinyint(2) NULL DEFAULT 0 COMMENT '组别描述 1小学，2中学，3高职院校，4本科院校，5俱乐部',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `creator_index`(`creator`) USING BTREE,
  INDEX `project_index`(`project_id`) USING BTREE,
  INDEX `compete_time_index`(`compete_time_id`) USING BTREE,
  INDEX `team_company_index`(`company_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '团队表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_compete_team_member
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_team_member`;
CREATE TABLE `t_compete_team_member`  (
  `id` bigint(20) NOT NULL,
  `player_id` bigint(20) NULL DEFAULT 0 COMMENT '参赛选手id',
  `compete_team_id` bigint(20) NULL DEFAULT 0 COMMENT '团队id',
  `captain` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否为队长 0否 1是',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `player_index`(`player_id`) USING BTREE,
  INDEX `compete_team_insex`(`compete_team_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '团队成员表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_compete_time
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_time`;
CREATE TABLE `t_compete_time`  (
  `id` bigint(20) NOT NULL,
  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '名称',
  `type` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '参加的比赛的类型，默认为跳绳比赛：0跳绳 。。。',
  `start_time` bigint(20) NULL DEFAULT 0 COMMENT '开始时间',
  `end_time` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '结束时间',
  `sign_up_start_time` bigint(20) NULL DEFAULT 0 COMMENT '报名开始时间',
  `sign_up_end_time` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '报名结束时间',
  `compete_status` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '进行的阶段，0报名阶段 1比赛进行阶段，2评审阶段，3结束',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '参赛项目信息' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_compete_time_copy
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_time_copy`;
CREATE TABLE `t_compete_time_copy`  (
  `id` bigint(20) NOT NULL,
  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '名称',
  `type` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '参加的比赛的类型，默认为跳绳比赛：0跳绳 。。。',
  `start_time` bigint(20) NULL DEFAULT 0 COMMENT '开始时间',
  `end_time` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '结束时间',
  `sign_up_start_time` bigint(20) NULL DEFAULT 0 COMMENT '报名开始时间',
  `sign_up_end_time` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '报名结束时间',
  `compete_status` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '进行的阶段，0报名阶段 1比赛进行阶段，2评审阶段，3结束',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '参赛项目信息' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_compete_variety_score
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_variety_score`;
CREATE TABLE `t_compete_variety_score`  (
  `id` bigint(20) NOT NULL,
  `compete_time_id` bigint(20) NULL DEFAULT 0 COMMENT '参加的大赛的id（第几届的xx比赛）',
  `project_id` bigint(20) NULL DEFAULT 0 COMMENT '项目id',
  `site_order_id` bigint(20) NULL DEFAULT 0 COMMENT '场次表id（出场顺序表）',
  `code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '计分code',
  `score` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '分数',
  `judgment_id` bigint(20) NULL DEFAULT 0 COMMENT '裁判id',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `variety_compete_time_index`(`compete_time_id`) USING BTREE,
  INDEX `variety_project_index`(`project_id`) USING BTREE,
  INDEX `variety_judgment_index`(`judgment_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '花样赛计分表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_compete_video
-- ----------------------------
DROP TABLE IF EXISTS `t_compete_video`;
CREATE TABLE `t_compete_video`  (
  `id` bigint(20) NOT NULL,
  `compete_time_id` bigint(20) NULL DEFAULT 0 COMMENT '参加的大赛的id（第几届的xx比赛）',
  `project_id` bigint(20) NULL DEFAULT 0 COMMENT '项目id',
  `player_id` bigint(20) NULL DEFAULT 0 COMMENT '选手项目关联记录表id或团队id',
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT '上传者用户id',
  `video_url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '视频路径（云点播返回）',
  `upload_time` bigint(20) NULL DEFAULT 0 COMMENT '上传时间',
  `upload_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '上传状态，0准备上传 1上传成功 2上传失败',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  `task_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '视频处理任务 ID',
  `video_url_origin` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '视频路径（云点播返回）',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `compete_time_index`(`compete_time_id`) USING BTREE,
  INDEX `video_project_index`(`project_id`) USING BTREE,
  INDEX `video_player_index`(`player_id`) USING BTREE,
  INDEX `video_user_index`(`user_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '选手上传视频记录表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_constant
-- ----------------------------
DROP TABLE IF EXISTS `t_constant`;
CREATE TABLE `t_constant`  (
  `id` bigint(20) NOT NULL,
  `project_id` bigint(20) NULL DEFAULT 0,
  `business_id` bigint(20) NULL DEFAULT 0 COMMENT '业务id',
  `business_type` tinyint(2) NOT NULL DEFAULT 0 COMMENT '业务id的类型 0跳绳比赛 ',
  `t_key` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '',
  `t_value` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '',
  `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '描述',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '常量表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_file
-- ----------------------------
DROP TABLE IF EXISTS `t_file`;
CREATE TABLE `t_file`  (
  `id` bigint(20) NOT NULL,
  `file_id` bigint(20) NULL DEFAULT 0 COMMENT '本公司上传资料集合的id',
  `files_id` bigint(20) NULL DEFAULT 0 COMMENT '上传的某文件的id',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `t_file_INDEX`(`file_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '服务申请加入表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_level_rule
-- ----------------------------
DROP TABLE IF EXISTS `t_level_rule`;
CREATE TABLE `t_level_rule`  (
  `id` bigint(20) NOT NULL,
  `compete_time_id` bigint(20) NULL DEFAULT 0 COMMENT '参加的大赛的id（第几届的xx比赛）',
  `compete_code_now` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '当前比赛的code',
  `compete_code_level_up` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '晋级比赛code',
  `rule` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '晋级规则（0：不晋级 1：名次（不重复） 2：名次（重复） 3：分数 4：指定晋级人员 5：团体赛按名次）',
  `level_condition` int(11) NULL DEFAULT 0 COMMENT '晋级条件（前几名 大于多少分）',
  `auto_level` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '是否自动晋级 0否 1是',
  `compete_order` tinyint(1) UNSIGNED NULL DEFAULT 2 COMMENT '比赛次序（0：第一场 1：最后一场，2：中间）',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `compete_time_index`(`compete_time_id`) USING BTREE,
  INDEX `code_now_index`(`compete_code_now`) USING BTREE,
  INDEX `code_level_up_index`(`compete_code_level_up`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '规则表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_level_up
-- ----------------------------
DROP TABLE IF EXISTS `t_level_up`;
CREATE TABLE `t_level_up`  (
  `id` bigint(20) NOT NULL,
  `compete_time_id` bigint(20) NULL DEFAULT 0 COMMENT '参加的大赛的id（第几届的xx比赛）',
  `compete_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '当前比赛的code',
  `level_user_id` bigint(20) NULL DEFAULT 0 COMMENT '参赛人员ID',
  `score` int(11) NULL DEFAULT 0 COMMENT '比赛分数',
  `addition_score` int(11) NULL DEFAULT 0 COMMENT '附加分数',
  `ranking` int(11) NULL DEFAULT 0 COMMENT '名次',
  `level_up_type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '晋级方式，0自动 1指定晋级',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `compete_time_index`(`compete_time_id`) USING BTREE,
  INDEX `compete_code_index`(`compete_code`) USING BTREE,
  INDEX `level_user_index`(`level_user_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '晋级表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_level_user
-- ----------------------------
DROP TABLE IF EXISTS `t_level_user`;
CREATE TABLE `t_level_user`  (
  `id` bigint(20) NOT NULL,
  `player_id` bigint(20) NULL DEFAULT 0 COMMENT '选手id',
  `avatar_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '头像',
  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '名称',
  `team_id` bigint(20) NULL DEFAULT 0 COMMENT '团队id',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `player_index`(`player_id`) USING BTREE,
  INDEX `team_index`(`team_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '选手表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_mt_group
-- ----------------------------
DROP TABLE IF EXISTS `t_mt_group`;
CREATE TABLE `t_mt_group`  (
  `id` bigint(20) NOT NULL,
  `project_id` bigint(20) NULL DEFAULT 0 COMMENT '项目id',
  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '名字',
  `advance_status` tinyint(2) UNSIGNED NULL DEFAULT 1 COMMENT '进阶状态 默认是1 进阶后改为下一阶状态',
  `score` int(11) NULL DEFAULT 0 COMMENT '分数/票数',
  `type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '0答题组 1被投票组',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `project_index`(`project_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '分组表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_mt_group_topic
-- ----------------------------
DROP TABLE IF EXISTS `t_mt_group_topic`;
CREATE TABLE `t_mt_group_topic`  (
  `id` bigint(20) NOT NULL,
  `topic_id` bigint(20) NULL DEFAULT 0 COMMENT '题目id',
  `group_id` bigint(20) NULL DEFAULT 0 COMMENT '分组id',
  `answers` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '答题者的答案',
  `score` int(11) NULL DEFAULT 0 COMMENT '本题得分',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `topic_index`(`topic_id`) USING BTREE,
  INDEX `group_index`(`group_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '答题记录表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_mt_judge
-- ----------------------------
DROP TABLE IF EXISTS `t_mt_judge`;
CREATE TABLE `t_mt_judge`  (
  `id` bigint(20) NOT NULL,
  `project_id` bigint(20) NULL DEFAULT 0 COMMENT '项目id',
  `user_id` bigint(20) NULL DEFAULT 0,
  `nickname` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '昵称',
  `avatar_url` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '头像',
  `phone` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '手机号',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `member_project_index`(`project_id`) USING BTREE,
  INDEX `member_user_index`(`user_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '评委表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_mt_responder
-- ----------------------------
DROP TABLE IF EXISTS `t_mt_responder`;
CREATE TABLE `t_mt_responder`  (
  `id` bigint(20) NOT NULL,
  `topic_id` bigint(20) NULL DEFAULT 0 COMMENT '题目id',
  `group_id` bigint(20) NULL DEFAULT 0 COMMENT '分组id',
  `responder_time` bigint(20) NULL DEFAULT 0 COMMENT '抢答的时间',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `topic_index`(`topic_id`) USING BTREE,
  INDEX `group_index`(`group_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '抢答信息表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_mt_score
-- ----------------------------
DROP TABLE IF EXISTS `t_mt_score`;
CREATE TABLE `t_mt_score`  (
  `id` bigint(32) NOT NULL,
  `judge_user_id` bigint(32) NULL DEFAULT 0 COMMENT '评委的userId',
  `score_log_id` bigint(32) NULL DEFAULT 0 COMMENT '评分项id',
  `project_id` bigint(32) NULL DEFAULT 0 COMMENT '项目id',
  `task_id` bigint(32) NULL DEFAULT 0 COMMENT '被评分的任务id',
  `task_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '任务名',
  `score` decimal(32, 2) NULL DEFAULT 0.00 COMMENT '分数',
  `is_score` int(10) NULL DEFAULT 1 COMMENT '是否被评分 0否 1是',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `judge_user_index`(`judge_user_id`) USING BTREE,
  INDEX `score_log_index`(`score_log_id`) USING BTREE,
  INDEX `task_index`(`task_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_mt_score_log
-- ----------------------------
DROP TABLE IF EXISTS `t_mt_score_log`;
CREATE TABLE `t_mt_score_log`  (
  `id` bigint(20) NOT NULL,
  `name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '姓名',
  `max_score` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '分数最大值',
  `min_score` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '分数最小值',
  `project_id` bigint(20) NULL DEFAULT 0 COMMENT '项目id',
  `sequence` int(11) NULL DEFAULT 0 COMMENT '序号',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `project_index`(`project_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '评分项' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_mt_signin
-- ----------------------------
DROP TABLE IF EXISTS `t_mt_signin`;
CREATE TABLE `t_mt_signin`  (
  `id` bigint(20) NOT NULL,
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT '对应的用户id',
  `task_id` bigint(20) NULL DEFAULT 0 COMMENT '任务id',
  `name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '姓名',
  `phone` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '手机号',
  `company` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '公司',
  `signin_time` bigint(20) NULL DEFAULT 0 COMMENT '签到时间',
  `sequence` int(11) NULL DEFAULT 0 COMMENT '序号',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '签到表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_mt_signin_basic
-- ----------------------------
DROP TABLE IF EXISTS `t_mt_signin_basic`;
CREATE TABLE `t_mt_signin_basic`  (
  `id` bigint(20) NOT NULL,
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT '对应的用户id',
  `task_plugin_id` bigint(20) NULL DEFAULT 0 COMMENT '任务插件id',
  `task_id` bigint(20) NULL DEFAULT 0 COMMENT '任务id',
  `signin_time` bigint(20) NULL DEFAULT 0 COMMENT '签到时间',
  `sequence` int(11) NULL DEFAULT 0 COMMENT '序号',
  `is_sign` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否已签到 0未签到 1已签到',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `user_index`(`user_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '签到基本信息表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_mt_signin_other
-- ----------------------------
DROP TABLE IF EXISTS `t_mt_signin_other`;
CREATE TABLE `t_mt_signin_other`  (
  `id` bigint(20) NOT NULL,
  `signin_basic_id` bigint(20) NULL DEFAULT 0 COMMENT '签到基本信息的id',
  `s_key` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字段',
  `s_value` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '值',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `signin_basic_index`(`signin_basic_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '其他签到信息表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_mt_topic
-- ----------------------------
DROP TABLE IF EXISTS `t_mt_topic`;
CREATE TABLE `t_mt_topic`  (
  `id` bigint(20) NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '题目详情',
  `link_type` tinyint(2) UNSIGNED NULL DEFAULT 1 COMMENT '环节类型 1志在必得 2以快制胜 3绝地反击 4你说我猜',
  `topic_type` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '题目类型 0选择题单选 1多选题 2判断题 3填空题',
  `score_rule` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '计分规则 0正常加分 1答错减分',
  `score` int(11) NULL DEFAULT 0 COMMENT '分数',
  `sequence` int(11) NULL DEFAULT 0 COMMENT '顺序',
  `answers` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '答案',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '题目表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_mt_topic_option
-- ----------------------------
DROP TABLE IF EXISTS `t_mt_topic_option`;
CREATE TABLE `t_mt_topic_option`  (
  `id` bigint(20) NOT NULL,
  `topic_id` bigint(20) NULL DEFAULT 0 COMMENT '题目id',
  `contant` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '选项内容',
  `sequence` int(11) NULL DEFAULT 0 COMMENT '顺序',
  `option` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '选项',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `topic_index`(`topic_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '题目选项表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_mt_vote
-- ----------------------------
DROP TABLE IF EXISTS `t_mt_vote`;
CREATE TABLE `t_mt_vote`  (
  `id` bigint(20) NOT NULL,
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT '用户id',
  `group_id` bigint(20) NULL DEFAULT 0 COMMENT '分组id',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态，0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `user_index`(`user_id`) USING BTREE,
  INDEX `group_index`(`group_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '投票表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_platform_apply
-- ----------------------------
DROP TABLE IF EXISTS `t_platform_apply`;
CREATE TABLE `t_platform_apply`  (
  `id` bigint(20) NOT NULL,
  `company_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '公司名称',
  `contact_name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '联系人',
  `contact_phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '联系电话',
  `description` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '合作信息简述',
  `type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '平台类型：0-创新平台，1产业平台，2-实体空间 ，3-虚拟空间',
  `audit_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '处理状态：0-未处理，1-处理中，2-已处理',
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT '处理人',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '平台申请加入表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_service_apply
-- ----------------------------
DROP TABLE IF EXISTS `t_service_apply`;
CREATE TABLE `t_service_apply`  (
  `id` bigint(20) NOT NULL,
  `company_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '公司名称',
  `contact_name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '联系人',
  `contact_phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '联系电话',
  `description` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '合作信息简述',
  `file_id` bigint(20) NULL DEFAULT 0 COMMENT '本公司上传资料集合的id',
  `type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '平台类型：0-创新平台，1产业平台，2-实体空间 ，3-虚拟空间',
  `audit_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '处理状态：0-未处理，1-处理中，2-已处理',
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT '处理人',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `t_service_apply_INDEX`(`file_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '服务申请加入表' ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;
