/*
 Navicat Premium Data Transfer

 Source Server         : 绿谷
 Source Server Type    : MariaDB
 Source Server Version : 100324
 Source Host           : 49.232.6.143:3306
 Source Schema         : sm_enterprise

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

 Date: 13/05/2021 15:28:05
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for t_activity
-- ----------------------------
DROP TABLE IF EXISTS `t_activity`;
CREATE TABLE `t_activity`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '标题',
  `theme` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '会议主题',
  `trainees` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '培训对象',
  `organization` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '组织单位',
  `content` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '详细内容',
  `end_content` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '活动结束内容',
  `name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '主讲人',
  `release_time` datetime NULL DEFAULT NULL COMMENT '开始时间',
  `close_time` datetime NULL DEFAULT NULL COMMENT '截至日期',
  `address` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '地点',
  `activity_type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '活动类型(0-培训,1-讲座,2-交流,3-路演,4-论坛)\r\n绿谷  0路演 1讲座 2沙龙',
  `publish_user_id` bigint(20) NULL DEFAULT 0 COMMENT '发布人',
  `publish_platform` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '发布平台 0绿谷 1创时代',
  `way` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '报名方式',
  `other` varchar(1000) 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删除',
  `intro` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '简介',
  `inform_report` tinyint(1) NULL DEFAULT 0 COMMENT '通知或报道(0-通知,1-报道)',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `activity_publish_user_index`(`publish_user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 84 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '活动公告表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_apply_activity
-- ----------------------------
DROP TABLE IF EXISTS `t_apply_activity`;
CREATE TABLE `t_apply_activity`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `activity_id` int(11) NULL DEFAULT 0 COMMENT '活动id',
  `company_name` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '企业名',
  `contact_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '申请人姓名',
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT '申请人id',
  `contact_phone` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '联系方式',
  `apply_time` datetime NULL DEFAULT NULL COMMENT '申请时间',
  `apply_platform` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '通过那个平台申请 0绿谷 1创时代',
  `audit_user_id` bigint(20) NULL DEFAULT 0 COMMENT '审核人',
  `audit_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '审核状态 0审核中 1未通过 2已通过',
  `audit_time` datetime NULL DEFAULT NULL COMMENT '审核时间',
  `remark` 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,
  INDEX `apply_activity_index`(`activity_id`) USING BTREE,
  INDEX `apply_user_index`(`user_id`) USING BTREE,
  INDEX `apply_audit_user_index`(`audit_user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '活动申请人员信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_apply_activity_people
-- ----------------------------
DROP TABLE IF EXISTS `t_apply_activity_people`;
CREATE TABLE `t_apply_activity_people`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `activity_id` int(11) NULL DEFAULT 0 COMMENT '活动id',
  `apply_activity_id` int(11) NULL DEFAULT 0 COMMENT '申请id',
  `name` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '人员姓名',
  `duties` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '人员职务',
  `positional` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '人员职称',
  `status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' 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 `active_id_index`(`activity_id`) USING BTREE,
  INDEX `apply_activity_id_index`(`apply_activity_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '报名人员表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_area
-- ----------------------------
DROP TABLE IF EXISTS `t_area`;
CREATE TABLE `t_area`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '区域主键',
  `area_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '区域名称',
  `area_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '区域代码',
  `area_short` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '区域简称',
  `area_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '显示状态 0: 不显示 1: 显示',
  `area_parent_id` int(11) NULL DEFAULT NULL COMMENT '上级主键',
  `init_date` datetime NULL DEFAULT NULL COMMENT '初始时间',
  `init_addr` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '初始地址',
  `area_type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '类型 0:地区 1:行政 2：部门',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `area_parent_index`(`area_parent_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1000027 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_carousel
-- ----------------------------
DROP TABLE IF EXISTS `t_carousel`;
CREATE TABLE `t_carousel`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `url` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '图片路径',
  `jump_url` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '图片跳转路径',
  `param` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '图片参数',
  `jump_type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '跳转类型 0：不跳转 1：H5 2：发榜详情 3:培训通知',
  `sort` int(11) NULL DEFAULT 0 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,
  INDEX `carousel_status_index`(`rec_status`, `sort`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 29 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '轮播图表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_category
-- ----------------------------
DROP TABLE IF EXISTS `t_category`;
CREATE TABLE `t_category`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `name` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '类别名',
  `type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '类型 0:项目类别 1：产业类别',
  `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 AUTO_INCREMENT = 166 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '类别表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_collect
-- ----------------------------
DROP TABLE IF EXISTS `t_collect`;
CREATE TABLE `t_collect`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '用户ID',
  `collect_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '收藏ID',
  `type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '0:政策',
  `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 NOT NULL DEFAULT 0 COMMENT '状态 0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `collect_user_index`(`user_id`, `collect_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 121 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '政策收藏表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_demand_candidate
-- ----------------------------
DROP TABLE IF EXISTS `t_demand_candidate`;
CREATE TABLE `t_demand_candidate`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '发布用户ID',
  `publish_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '发榜ID',
  `enterprise_name` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '企业名字',
  `contacts` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '联系人',
  `contact_phone` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '联系电话',
  `remark` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NOT 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,
  INDEX `demand_candidate_enter_index`(`publish_id`, `user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 45 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '揭榜表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_demand_publish
-- ----------------------------
DROP TABLE IF EXISTS `t_demand_publish`;
CREATE TABLE `t_demand_publish`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '发布用户ID',
  `demand_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '企业需求ID',
  `type` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '需求类型 0：技术转移转化，1：工业设计咨询，2科技金融建设，3：政策项目咨询，4：知识产权咨询5：创新体系建设，6：创新创业咨询 7：信息技术服务 8：协同创新服务',
  `content` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL 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,
  INDEX `demand_publish_damand_index`(`demand_id`, `user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 84 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '发榜表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_enterprise
-- ----------------------------
DROP TABLE IF EXISTS `t_enterprise`;
CREATE TABLE `t_enterprise`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `name` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '企业名称',
  `contacts` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '联系人',
  `contact_phone` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '联系电话',
  `the_tax_no` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '税务号',
  `incubator_type` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '孵化器类型 0:虚拟孵化器 1：实体孵化器',
  `incubator_id` int(11) UNSIGNED NOT NULL COMMENT '孵化器id',
  `registration_place` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '注册地',
  `registration_date` date NOT NULL 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删除',
  `province` int(11) UNSIGNED NOT NULL COMMENT '注册省份',
  `city` int(11) UNSIGNED NOT NULL COMMENT '注册城市',
  `county` int(11) UNSIGNED NOT NULL COMMENT '注册县区',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `enterprise_name_index`(`name`) USING BTREE,
  INDEX `enterprise_tax_index`(`the_tax_no`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 175 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '企业基本信息' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_enterprise_additional
-- ----------------------------
DROP TABLE IF EXISTS `t_enterprise_additional`;
CREATE TABLE `t_enterprise_additional`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '用户ID',
  `enterprise_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '企业ID',
  `intellectual_property_right_I` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '一类知识产权数量',
  `intellectual_property_right_II` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '二类知识产权数量',
  `main_product_technology` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '主要产品（服务）技术 0:其他，1、电子信息技术2、生物与医药技术3、航空航天技术4、新材料技术5、高新技术服务技术6、新能源及节能技术7、资源与环境技术8、高新技术改造传统产业 ',
  `workforce` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '职工总数',
  `technicians` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '科技人员总数',
  `total_assets` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '资产总额，单位：万',
  `gross_sales_one` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '今年销售收入总额，单位：万',
  `gross_sales_two` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '去年销售收入总额，单位：万',
  `gross_sales_three` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '前年销售收入总额，单位：万',
  `r_d_expenses_one` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '今年研发费用总额，单位：万',
  `r_d_expenses_two` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '去年研发费用总额，单位：万',
  `r_d_expenses_three` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '前年研发费用总额，单位：万',
  `total_cost_expenses_one` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '今年成本费用支出总额，单位：万',
  `total_cost_expenses_two` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '去年成本费用支出总额，单位：万',
  `total_cost_expenses_three` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '前年成本费用支出总额，单位：万',
  `high_new_technology_fee` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '高新技术产品（服务）费用，单位：万',
  `illegal_act` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '前一年及当年内有无发生重大安全、重大质量事故和严重环境违法、科研严重失信行为 0:无 1:有',
  `dishonest_enterprise` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '企业是否被列入经营异常名录和严重违法失信企业名单 0:无 1:有',
  `forbid_product` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '产品和服务是否属于国家规定的禁止、限制和淘汰类 0:否 1：是',
  `high_new_technology_enterprise` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否拥有有效期内高新技术企业资格证书0:否 1:是',
  `technology_awards` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否拥有国家级科技奖励数目0:否1:是',
  `organization` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否拥有经认定的省部级以上研发机构0:否 1:是',
  `standard` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '企业近五年内主导制定过国际标准、国家标准或行业标准0:否 1:是',
  `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,
  INDEX `additional_user_index`(`user_id`) USING BTREE,
  INDEX `additional_enterprise_index`(`enterprise_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 151 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '企业信息补充表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_enterprise_category
-- ----------------------------
DROP TABLE IF EXISTS `t_enterprise_category`;
CREATE TABLE `t_enterprise_category`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `enterprise_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '企业ID',
  `category` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT 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,
  INDEX `category_enterpriseid_index`(`enterprise_id`) USING BTREE,
  INDEX `category_categroy_index`(`category`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 891 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '企业类型表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_enterprise_demand
-- ----------------------------
DROP TABLE IF EXISTS `t_enterprise_demand`;
CREATE TABLE `t_enterprise_demand`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '用户ID',
  `enterprise_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '企业ID',
  `contacts` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '联系人',
  `contact_phone` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '联系电话',
  `type` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '需求类型 0：技术转移转化，1：工业设计咨询，2科技金融建设，3：政策项目咨询，4：知识产权咨询5：创新体系建设，6：创新创业咨询 7：信息技术服务 8：协同创新服务',
  `content` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL 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删除',
  `deal_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '处理状态 0待处理 1:已完成 2:已发榜',
  `deal_user_id` bigint(20) NULL DEFAULT 0 COMMENT '修改状态用户ID',
  `is_file` tinyint(1) NULL DEFAULT NULL COMMENT '是否有附件0：没有，1：有',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `enter_demand_enter_index`(`enterprise_id`, `user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 165 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '企业需求表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_enterprise_demand_file
-- ----------------------------
DROP TABLE IF EXISTS `t_enterprise_demand_file`;
CREATE TABLE `t_enterprise_demand_file`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `demand_id` int(11) UNSIGNED NOT NULL COMMENT '需求ID',
  `file_id` int(11) UNSIGNED NOT NULL COMMENT '文件ID',
  `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,
  INDEX `demand_file_index`(`demand_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 65 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '企业需求文件表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_enterprise_score
-- ----------------------------
DROP TABLE IF EXISTS `t_enterprise_score`;
CREATE TABLE `t_enterprise_score`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `additional_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '企业补充ID',
  `type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '评测类型 0：高企 1：科小',
  `result` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '评测结果 0：未通过 1：通过',
  `reason` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT 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,
  INDEX `score_additional_index`(`additional_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 191 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '企业分数表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_enterprise_user
-- ----------------------------
DROP TABLE IF EXISTS `t_enterprise_user`;
CREATE TABLE `t_enterprise_user`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '用户ID',
  `enterprise_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '企业ID',
  `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,
  INDEX `enter_user_user_id_index`(`user_id`, `enterprise_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 162 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户绑定企业表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_entrepreneurship_course
-- ----------------------------
DROP TABLE IF EXISTS `t_entrepreneurship_course`;
CREATE TABLE `t_entrepreneurship_course`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `img` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '课程图片',
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '课程名',
  `short_desc` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '课程简介',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp COMMENT '修改时间',
  `rec_status` tinyint(1) NULL DEFAULT 0 COMMENT '状态 0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '课程' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_entrepreneurship_course_video
-- ----------------------------
DROP TABLE IF EXISTS `t_entrepreneurship_course_video`;
CREATE TABLE `t_entrepreneurship_course_video`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `course_id` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '课程ID',
  `video_id` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '视频ID',
  `img` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '封面',
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '视频名',
  `emcee` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '主讲人',
  `sort` int(1) NULL DEFAULT 1 COMMENT '第几集',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp COMMENT '修改时间',
  `rec_status` tinyint(1) NULL DEFAULT 0 COMMENT '状态 0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `course_video_course_index`(`course_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '课程视频' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_entrepreneurship_mentor
-- ----------------------------
DROP TABLE IF EXISTS `t_entrepreneurship_mentor`;
CREATE TABLE `t_entrepreneurship_mentor`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `img` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '导师照片',
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '导师名字',
  `short_desc` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '导师简介',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp COMMENT '修改时间',
  `rec_status` tinyint(1) NULL DEFAULT 0 COMMENT '状态 0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '创业导师' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_file
-- ----------------------------
DROP TABLE IF EXISTS `t_file`;
CREATE TABLE `t_file`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `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 AUTO_INCREMENT = 306 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '文件表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_incubator
-- ----------------------------
DROP TABLE IF EXISTS `t_incubator`;
CREATE TABLE `t_incubator`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `type` tinyint(1) NULL DEFAULT 0 COMMENT '孵化器类型 0:虚拟孵化器 1：实体孵化器',
  `name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT 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,
  INDEX `incubator_type_index`(`type`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '孵化器' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_industry_news
-- ----------------------------
DROP TABLE IF EXISTS `t_industry_news`;
CREATE TABLE `t_industry_news`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `title` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标题',
  `content` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '内容',
  `publish_department` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '发布部门',
  `publish_time` datetime NOT NULL COMMENT '发布时间',
  `user_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '录入人ID',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp COMMENT '修改时间',
  `rec_status` tinyint(1) NULL DEFAULT 0 COMMENT '状态 0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '行业资讯' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_label
-- ----------------------------
DROP TABLE IF EXISTS `t_label`;
CREATE TABLE `t_label`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `parent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '上级标签id',
  `label_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '标签名',
  `type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '标签类型 0:政策 1：企业',
  `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,
  INDEX `label_parent_index`(`parent_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '政策标签表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_message
-- ----------------------------
DROP TABLE IF EXISTS `t_message`;
CREATE TABLE `t_message`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `publish_user_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '发布用户ID',
  `receive_user_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '接收用户ID',
  `content` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '消息内容',
  `read_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '阅读状态：0 未读 1 已读',
  `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,
  INDEX `message_publish_index`(`publish_user_id`) USING BTREE,
  INDEX `message_receive_index`(`receive_user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 61 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '系统消息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_policy
-- ----------------------------
DROP TABLE IF EXISTS `t_policy`;
CREATE TABLE `t_policy`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `title` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '标题',
  `title_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文章的链接',
  `img_url` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '图片路径',
  `publish_depart_id` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '发布部门ID',
  `publish_time` date NULL DEFAULT NULL COMMENT '发布时间',
  `type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '0:申报通知 1：公告公示 2：政策动态 3：申报指南',
  `content` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '内容',
  `intro` varchar(2000) 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删除',
  `audit_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '审核状态 0刚入库 1审核通过 2审核不通过',
  `deadline_time` date NULL DEFAULT NULL COMMENT '截止时间',
  `publish_type` tinyint(2) UNSIGNED NULL DEFAULT 4 COMMENT '4未选择 0部委政策 1省政策 2市政策 3区政策',
  `rec_status_wiki` tinyint(1) UNSIGNED NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `policy_title_index`(`title`) USING BTREE,
  INDEX `policy_publish_depart_index`(`publish_depart_id`) USING BTREE,
  INDEX `policy_publish_time_index`(`publish_time`) USING BTREE,
  INDEX `policy_title_url`(`title_url`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 61381 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '政策表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_policy_file_crawl
-- ----------------------------
DROP TABLE IF EXISTS `t_policy_file_crawl`;
CREATE TABLE `t_policy_file_crawl`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `policy_id` int(11) NULL DEFAULT NULL COMMENT '政策ID',
  `file_name` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '文件名',
  `file_url` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '文件路径',
  `file_location` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '文件存储路径',
  `crawl_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '爬取状态 0未爬取 1：已爬取  2：链接已经失效了',
  `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,
  INDEX `file_crawl_status_index`(`crawl_status`) USING BTREE,
  INDEX `file_file_url_index`(`file_url`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 80669 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '政策文件抓取' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_policy_label
-- ----------------------------
DROP TABLE IF EXISTS `t_policy_label`;
CREATE TABLE `t_policy_label`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `policy_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '政策ID',
  `label_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '标签名',
  `type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '标签类型 0:项目类别 1：产业类别',
  `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,
  INDEX `policy_policy_id_index`(`policy_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 63078 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '政策标签表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_policy_read
-- ----------------------------
DROP TABLE IF EXISTS `t_policy_read`;
CREATE TABLE `t_policy_read`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '用户ID',
  `policy_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '政策ID',
  `sart_time` datetime NOT NULL COMMENT '开始阅读时间',
  `end_time` datetime NULL DEFAULT NULL 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,
  INDEX `policy_read_userpolicy_index`(`user_id`, `policy_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2112 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '政策阅读记录表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_send_message_record
-- ----------------------------
DROP TABLE IF EXISTS `t_send_message_record`;
CREATE TABLE `t_send_message_record`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `publish_user_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '发布用户id',
  `phone` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '电话号码',
  `content` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '消息内容',
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '是否发送成功 0：失败 1：成功',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp COMMENT '修改时间',
  `rec_status` tinyint(1) NULL DEFAULT 0 COMMENT '状态 0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 933 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '发送短信记录表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_train_apply
-- ----------------------------
DROP TABLE IF EXISTS `t_train_apply`;
CREATE TABLE `t_train_apply`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `train_inform_id` int(11) NOT NULL COMMENT '培训通知id',
  `enterprise_id` int(11) NOT NULL COMMENT '企业id',
  `contacts` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '联系人',
  `contact_phone` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '联系人电话',
  `apply_num` int(11) NOT NULL COMMENT '报名人数',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp COMMENT '修改时间',
  `rec_status` tinyint(1) NULL DEFAULT 0 COMMENT '状态 0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 63 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '培训报名表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_train_inform
-- ----------------------------
DROP TABLE IF EXISTS `t_train_inform`;
CREATE TABLE `t_train_inform`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `publish_user_id` bigint(20) NOT NULL COMMENT '发布用户id',
  `publish_incubator_id` int(11) NOT NULL COMMENT '发布孵化器id',
  `train_content` varchar(2500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '培训内容',
  `train_title` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '培训标题',
  `train_place` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '培训地点',
  `train_teacher` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '培训教师',
  `train_time` date NOT NULL COMMENT '培训时间',
  `type` tinyint(1) NOT NULL DEFAULT 0 COMMENT '类型 0线上 线下1',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp COMMENT '修改时间',
  `rec_status` tinyint(1) NULL DEFAULT 0 COMMENT '状态 0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 57 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '培训通知表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_video
-- ----------------------------
DROP TABLE IF EXISTS `t_video`;
CREATE TABLE `t_video`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `description` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '视频简介',
  `video_url` varchar(520) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '视频链接',
  `pic_url` varchar(520) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '封面图片链接',
  `platform` tinyint(1) NULL DEFAULT 0 COMMENT '上传平台',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `update_at` timestamp NOT NULL DEFAULT current_timestamp,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态 0正常 1禁用 2删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '视频表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_video_mid
-- ----------------------------
DROP TABLE IF EXISTS `t_video_mid`;
CREATE TABLE `t_video_mid`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type_id` bigint(20) NULL DEFAULT 0 COMMENT '类型表id',
  `video_id` bigint(20) NULL DEFAULT 0 COMMENT '视频表id',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `update_at` timestamp NOT NULL DEFAULT current_timestamp,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态 0正常 1禁用 2删除',
  `TYPE` tinyint(1) NULL DEFAULT NULL COMMENT '视频类型',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `video_id_index`(`video_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 96 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '视频和分类中间表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_video_type
-- ----------------------------
DROP TABLE IF EXISTS `t_video_type`;
CREATE TABLE `t_video_type`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` tinyint(1) NULL DEFAULT NULL COMMENT '视频类型',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `update_at` timestamp NOT NULL DEFAULT current_timestamp,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态 0正常 1禁用 2删除',
  `NAME` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分类名',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 89 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '视频类型表' ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;
