/*
 Navicat Premium Data Transfer

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

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

 Date: 13/05/2021 15:27:47
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for t_accept_billboard
-- ----------------------------
DROP TABLE IF EXISTS `t_accept_billboard`;
CREATE TABLE `t_accept_billboard`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `billboard_id` int(11) NULL DEFAULT 0 COMMENT '发榜id',
  `accepter_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '揭榜人',
  `phone` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '手机号',
  `unit` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单位',
  `plan_intro` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '方案简述',
  `times` datetime NULL DEFAULT NULL COMMENT '时间',
  `order_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删除',
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT '揭榜人ID',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `billboard_id_index`(`billboard_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 359 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '创新挑战揭榜表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_achievement
-- ----------------------------
DROP TABLE IF EXISTS `t_achievement`;
CREATE TABLE `t_achievement`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '成果名称',
  `keywordone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '关键词1',
  `keywordtwo` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '关键词2',
  `keywordthree` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '关键词3',
  `identifier` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '编号',
  `pic` int(20) NULL DEFAULT NULL COMMENT '图片id',
  `performance` tinyint(1) NULL DEFAULT 0 COMMENT '成果表现形式-只能有一个',
  `standard` tinyint(1) NULL DEFAULT 0 COMMENT '成果标准-只能有一个',
  `stage` tinyint(1) NULL DEFAULT 0 COMMENT '成果所处阶段',
  `level` tinyint(1) NULL DEFAULT 0 COMMENT '成果水平',
  `ranges` tinyint(1) NULL DEFAULT 0 COMMENT '成果范围',
  `shape` tinyint(1) NULL DEFAULT 0 COMMENT '研究形式',
  `classification` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '学科分类',
  `domainone` tinyint(1) NULL DEFAULT 0 COMMENT '所属领域1',
  `domaintwo` tinyint(1) NULL DEFAULT NULL COMMENT '所属领域2',
  `finance` tinyint(1) NULL DEFAULT 0 COMMENT '知识产权',
  `style` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '专利类型',
  `patent` tinyint(1) NULL DEFAULT 0 COMMENT '专利情况',
  `nums` int(11) NULL DEFAULT 0 COMMENT '专利数',
  `register_num` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '专利号',
  `register_name` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '专利名称',
  `situation` tinyint(1) NULL DEFAULT 0 COMMENT '应用状态',
  `assignment` int(11) NULL DEFAULT 0 COMMENT '已转让企业数',
  `income` decimal(11, 2) NULL DEFAULT 0.00 COMMENT '转让收入-单位万元',
  `layout` tinyint(1) NULL DEFAULT 0 COMMENT '转让形式',
  `reansonone` tinyint(1) NULL DEFAULT NULL COMMENT '未应用原因1',
  `reansontwo` tinyint(1) NULL DEFAULT NULL COMMENT '未应用原因2',
  `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '简介',
  `research` int(11) NULL DEFAULT NULL COMMENT '某院id',
  `applicant` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '申请人',
  `inventor` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '发明人',
  `user_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删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `name_index`(`name`) USING BTREE,
  INDEX `identifier_index`(`identifier`) USING BTREE,
  INDEX `keywordone_index`(`keywordone`) USING BTREE,
  INDEX `keywordtwo_index`(`keywordtwo`) USING BTREE,
  INDEX `keywordthree_index`(`keywordthree`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 58 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '成果转化' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_activity_audit
-- ----------------------------
DROP TABLE IF EXISTS `t_activity_audit`;
CREATE TABLE `t_activity_audit`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `activity_id` int(11) NULL DEFAULT 0 COMMENT '活动id',
  `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 `activity_audit_activity_index`(`activity_id`) USING BTREE,
  INDEX `activity_audit_user_index`(`audit_user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 34 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '活动公告审核表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_billboard
-- ----------------------------
DROP TABLE IF EXISTS `t_billboard`;
CREATE TABLE `t_billboard`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `company_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '发榜单位名',
  `address` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '地址',
  `title` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '标题(需求名称)',
  `content` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '内容',
  `servics` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '所属领域',
  `deadline` datetime NULL DEFAULT NULL COMMENT '截止时间',
  `collaboration_way` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '合作方式',
  `existing_basis` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '现有基础',
  `billboard_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '成功状态 0待审核 1审核通过 2完成 3发榜取消',
  `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删除',
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT '发榜人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 359 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '创新挑战发榜表' 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 utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '图片路径',
  `jump_url` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '图片跳转路径',
  `param` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '图片参数',
  `jump_type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '跳转类型 0：不跳转 1：外部链接',
  `show_position` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '显示位置 0：全部 1：仅PC 2：仅小程序 。。。。',
  `show_page` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '页面显示位置 0:首页 11:关于我们-公司介绍 12:关于我们-组织机构 32 创新平台-创新资源平台 33:创新平台-科技创新服务 41:孵化平台-众创空间 42:孵化平台-公共实验室 43 :孵化平台-中试基地 44:孵化平台-创业导师 46:孵化平台-创业服务 52:产业平台-产业服务 100:XX服务详情 ',
  `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 = 40 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '轮播图表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_comment
-- ----------------------------
DROP TABLE IF EXISTS `t_comment`;
CREATE TABLE `t_comment`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `exchange_community_id` int(11) NULL DEFAULT 0 COMMENT '发贴id',
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT '跟帖用户得id',
  `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '跟帖内容',
  `com_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '0正常，1禁用',
  `up_user_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,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `exchange_community_id_index`(`exchange_community_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '跟帖表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_company_description
-- ----------------------------
DROP TABLE IF EXISTS `t_company_description`;
CREATE TABLE `t_company_description`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT '用户id',
  `logo` int(11) NULL DEFAULT 0 COMMENT 'logo',
  `description` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '公司简介',
  `name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '公司名称',
  `type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '合作关系（1-合作伙伴，2-衍生企业 ）',
  `type_of_platform` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '展示位置（1-创新平台，2-关于我们  3-孵化平台）',
  `type_of_tech` 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,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `t_company_description_INDEX`(`logo`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 120 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '其他公司或者合作伙伴简介表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_contacts
-- ----------------------------
DROP TABLE IF EXISTS `t_contacts`;
CREATE TABLE `t_contacts`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '联系人姓名',
  `phone` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系电话',
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT '操作人id',
  `model` tinyint(1) NULL DEFAULT 0 COMMENT '所属类型分类 0成果 1仪器 2研究院 3产品',
  `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,
  INDEX `name_index`(`name`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '联系表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_creating_file
-- ----------------------------
DROP TABLE IF EXISTS `t_creating_file`;
CREATE TABLE `t_creating_file`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `service_id` int(11) NULL DEFAULT 0 COMMENT 't_createing_platform表的id',
  `file_id` int(11) 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 `service_file_file_INDEX`(`file_id`) USING BTREE,
  INDEX `service_file_service_INDEX`(`service_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 58 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '创新平台申请加入表附件相关表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_creating_platform
-- ----------------------------
DROP TABLE IF EXISTS `t_creating_platform`;
CREATE TABLE `t_creating_platform`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位名称',
  `company_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位性质',
  `code` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '社会信用代码或组织机构代码',
  `position` tinyint(1) NULL DEFAULT NULL COMMENT '1、功能食品协同创新中心；2、现代医药；3、生物医学工程；4、数字健康开发；5、其他',
  `ower` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位负责人',
  `email` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位邮箱',
  `contact` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位联系人',
  `phone` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系电话',
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT '操作人id',
  `deal_user_id` bigint(20) NULL DEFAULT 0 COMMENT '审核人ID',
  `deal_status` 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 = 283 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '创新平台申请加入表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_entrepreneurship_academy
-- ----------------------------
DROP TABLE IF EXISTS `t_entrepreneurship_academy`;
CREATE TABLE `t_entrepreneurship_academy`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `banner` tinyint(1) NULL DEFAULT 0 COMMENT '栏目',
  `type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '类型(1视频,2音频,3ppt)',
  `title` varchar(125) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '标题',
  `intro` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '简介',
  `cover_picture` int(11) NULL DEFAULT 0 COMMENT '封面图片',
  `content_url` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '内容链接',
  `times` timestamp NULL DEFAULT '0000-00-00 00:00:00' COMMENT '时间',
  `whether_show` 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 `cover_picture_index`(`cover_picture`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 378 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '创业学院内容表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_exchange_community
-- ----------------------------
DROP TABLE IF EXISTS `t_exchange_community`;
CREATE TABLE `t_exchange_community`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '发帖标题',
  `pic_id` int(11) NULL DEFAULT 0 COMMENT '发帖得标题图片',
  `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '发帖内容',
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT '发贴用户',
  `up_user_id` bigint(20) NULL DEFAULT 0 COMMENT '修改发贴内容状态的人员id',
  `category` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '0主题论坛，1创新社区，2孵化社区，3产业社区',
  `topping` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '0正常，1置顶',
  `com_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '0正常，1禁用',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `update_at` timestamp NOT NULL DEFAULT current_timestamp,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `title_index`(`title`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 28 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 = 629 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '文件表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_industry_info
-- ----------------------------
DROP TABLE IF EXISTS `t_industry_info`;
CREATE TABLE `t_industry_info`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `title` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标题',
  `description` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '简介',
  `content` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '详情',
  `site` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '地点',
  `spread_department` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '发布部门',
  `time` bigint(50) 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
) ENGINE = InnoDB AUTO_INCREMENT = 347 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '行业资讯表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_instrument
-- ----------------------------
DROP TABLE IF EXISTS `t_instrument`;
CREATE TABLE `t_instrument`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '中文名称',
  `englishname` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '英文名称',
  `model` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '型号',
  `pic` int(20) NULL DEFAULT NULL COMMENT '图片地址',
  `identifier` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '编号',
  `specifications` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '规格',
  `manufactor` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '制造商',
  `countries` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '国别',
  `money` decimal(11, 2) NULL DEFAULT 0.00 COMMENT '价值（万元）',
  `research` int(11) NULL DEFAULT NULL COMMENT '所属单位id',
  `belonging` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '设备所属',
  `performance` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '性能指标',
  `purpose` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '用途',
  `user_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删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `name_index`(`name`) USING BTREE,
  INDEX `identifier_index`(`identifier`) USING BTREE,
  INDEX `model_index`(`model`) USING BTREE,
  INDEX `englishname_index`(`englishname`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 64 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 = 95 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '系统消息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_mold
-- ----------------------------
DROP TABLE IF EXISTS `t_mold`;
CREATE TABLE `t_mold`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '名称',
  `model` tinyint(1) NULL DEFAULT 0 COMMENT '所属类型分类 0成果 1仪器  2研究院 3产品',
  `user_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删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `name_index`(`name`) USING BTREE,
  INDEX `model_index`(`model`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 87 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '类型表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_mold_equipment
-- ----------------------------
DROP TABLE IF EXISTS `t_mold_equipment`;
CREATE TABLE `t_mold_equipment`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mold_id` int(11) NULL DEFAULT 0 COMMENT '类型表id',
  `model` int(11) NULL DEFAULT 0 COMMENT '关联表的id',
  `types` tinyint(1) NULL DEFAULT NULL COMMENT '0成果，1仪器 ， 2研究院 3 产品',
  `user_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删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `mold_id_index`(`mold_id`) USING BTREE,
  INDEX `model_index`(`model`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 322 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '类型关联表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_person_apply
-- ----------------------------
DROP TABLE IF EXISTS `t_person_apply`;
CREATE TABLE `t_person_apply`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '姓名',
  `gender` tinyint(11) NULL DEFAULT NULL COMMENT '性别',
  `birthday` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '出生年月',
  `startjob` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '参加工作时间',
  `phone` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '电话',
  `email` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '电子邮箱',
  `job_willing` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '求职意向',
  `job_expirence` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作经历',
  `education_expirence` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '教育经历',
  `personal_description` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '自我评价',
  `deal_user_id` bigint(20) NULL DEFAULT 0 COMMENT '后台处理人id',
  `deal_status` 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,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
  `in_work` tinyint(1) NULL DEFAULT NULL COMMENT '1-在职  2-离职',
  `address` varchar(52) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '地址',
  `birthday_place` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '出生地',
  `language` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '语言能力',
  `skill` varchar(520) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '专业技能',
  `zheng_shu` varchar(520) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '证书',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '求职者申请表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_person_file
-- ----------------------------
DROP TABLE IF EXISTS `t_person_file`;
CREATE TABLE `t_person_file`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `person_id` int(11) NULL DEFAULT 0 COMMENT 't_person_apply表的id',
  `file_id` int(11) 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 `person_file_file_INDEX`(`file_id`) USING BTREE,
  INDEX `person_file_person_INDEX`(`person_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 64 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '附件相关表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_place_apply
-- ----------------------------
DROP TABLE IF EXISTS `t_place_apply`;
CREATE TABLE `t_place_apply`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `name` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '姓名',
  `gender` tinyint(1) NULL DEFAULT NULL COMMENT '性别',
  `position` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '职务',
  `phone` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '联系电话',
  `email` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '电子邮箱',
  `id_card` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '身份证号',
  `company` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '企业/团队',
  `build_time` bigint(64) NULL DEFAULT NULL COMMENT '成立时间',
  `legal_person` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '法人代码',
  `register_money` decimal(20, 2) NULL DEFAULT NULL COMMENT '注册资金',
  `staff_count` int(11) NULL DEFAULT NULL COMMENT '员工人数',
  `resarch_staff` int(11) NULL DEFAULT NULL COMMENT '研发人员',
  `junior_college` int(11) NULL DEFAULT NULL COMMENT '大专以上人员',
  `main_business` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '主营业务',
  `business_income` decimal(20, 2) NULL DEFAULT NULL COMMENT '营业收入',
  `register_site` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '现注册地址',
  `product_tech` tinyint(1) NULL DEFAULT NULL COMMENT '0-创意阶段  1-研发阶段  2-转化阶段  3-原型样品  4-产业化开发',
  `patent_apply` int(11) NULL DEFAULT NULL COMMENT '申请专利数',
  `patent_grented` int(11) NULL DEFAULT NULL COMMENT '专利授权数',
  `patent_invent` int(11) NULL DEFAULT NULL COMMENT '发明专利数',
  `software_register` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '软件著作权',
  `plant_kind` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '动植物新品种',
  `electric_design` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '集成电路布图设计',
  `friend_company` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '合作单位',
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT '用户id',
  `deal_user_id` bigint(20) NULL DEFAULT 0 COMMENT '后台处理人id',
  `deal_status` tinyint(1) NULL DEFAULT 1 COMMENT '后台处理状态0-未审核 1：审核通过 2：审核不通过',
  `place_type` tinyint(1) NULL DEFAULT NULL COMMENT '申请入驻场地类型0-虚拟，1-实体',
  `introduce` text CHARACTER SET utf8 COLLATE utf8_general_ci 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
) ENGINE = InnoDB AUTO_INCREMENT = 407 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '入驻企业申请表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_place_file
-- ----------------------------
DROP TABLE IF EXISTS `t_place_file`;
CREATE TABLE `t_place_file`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `place_id` int(11) NULL DEFAULT 0 COMMENT 't_place_apply表的id',
  `file_id` int(11) 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 `place_file_file_INDEX`(`file_id`) USING BTREE,
  INDEX `place_file_place_INDEX`(`place_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 87 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '入住场地附件相关表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_platform_apply
-- ----------------------------
DROP TABLE IF EXISTS `t_platform_apply`;
CREATE TABLE `t_platform_apply`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '公司名称',
  `contact_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '联系人',
  `contact_phone` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '联系电话',
  `description` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL 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 '用户id',
  `deal_user_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
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '平台申请表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_policy_examine
-- ----------------------------
DROP TABLE IF EXISTS `t_policy_examine`;
CREATE TABLE `t_policy_examine`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `policy_id` int(11) NULL DEFAULT 0 COMMENT '政策id',
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT '审批政策用户id',
  `status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '政策状态 0审批不过/1审批通过',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp,
  `update_at` timestamp NOT NULL DEFAULT current_timestamp,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `tree_id`(`id`) USING BTREE,
  INDEX `tree_policy_id`(`policy_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 229421 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_product
-- ----------------------------
DROP TABLE IF EXISTS `t_product`;
CREATE TABLE `t_product`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '产品名称',
  `companyname` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '公司名称',
  `companyid` int(11) NULL DEFAULT NULL COMMENT '公司id',
  `synopsis` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '产品简介',
  `identifier` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '编号',
  `details` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '产品详情',
  `pic` int(20) NULL DEFAULT NULL COMMENT '图片id',
  `user_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删除',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `name_index`(`name`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '产品展示' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_research_direction
-- ----------------------------
DROP TABLE IF EXISTS `t_research_direction`;
CREATE TABLE `t_research_direction`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `institute_id` int(11) NULL DEFAULT 0 COMMENT '研究院表的id',
  `direction` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL 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_resarch_direction`(`institute_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 94 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '研究方向表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_research_institute
-- ----------------------------
DROP TABLE IF EXISTS `t_research_institute`;
CREATE TABLE `t_research_institute`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(520) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `description` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '简介',
  `experiments` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '可做实验',
  `phone` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系方式',
  `vertify` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '校验',
  `project_kind` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL 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,
  `pic` int(20) NULL DEFAULT NULL COMMENT '图片地址',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 96 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '研究院表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_researchers
-- ----------------------------
DROP TABLE IF EXISTS `t_researchers`;
CREATE TABLE `t_researchers`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '姓名',
  `company` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '所在单位名称',
  `duties` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '职务',
  `orders` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '排序列数字越大，排名越靠前-最大是255',
  `up_user_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,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `name_index`(`name`) USING BTREE,
  INDEX `company_index`(`company`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_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` int(11) NOT NULL AUTO_INCREMENT,
  `service_id` int(11) NULL DEFAULT 0 COMMENT '服务id',
  `company_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '公司名称',
  `contact_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '联系人',
  `contact_phone` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '联系电话',
  `description` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL 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 '用户id',
  `deal_user_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
) ENGINE = InnoDB AUTO_INCREMENT = 25 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '服务申请表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_service_car
-- ----------------------------
DROP TABLE IF EXISTS `t_service_car`;
CREATE TABLE `t_service_car`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT '用户id',
  `service_id` int(11) NULL DEFAULT 0 COMMENT '服务id',
  `description` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '合作信息简述',
  `type` 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,
  `rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
  `car_id` bigint(20) NULL DEFAULT 0 COMMENT '购物车id',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `t_service_car_INDEX`(`service_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 30 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '购物车表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_service_file
-- ----------------------------
DROP TABLE IF EXISTS `t_service_file`;
CREATE TABLE `t_service_file`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `service_id` int(11) NULL DEFAULT 0 COMMENT 't_service_apply表的id',
  `file_id` int(11) 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 `service_file_file_INDEX`(`file_id`) USING BTREE,
  INDEX `service_file_service_INDEX`(`service_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 22 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '附件相关表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_service_project
-- ----------------------------
DROP TABLE IF EXISTS `t_service_project`;
CREATE TABLE `t_service_project`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '项目名称',
  `pic_id` int(11) NULL DEFAULT 0 COMMENT '服务图片id',
  `intro` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '简介',
  `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '服务内容',
  `service_type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '服务项目的平台 1创新平台 2孵化平台 3产业平台',
  `orders` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '排序列数字越大，排名越靠前-最大是255',
  `up_user_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删除',
  `in_use` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '实例应用',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `name_index`(`name`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 128 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '服务项目' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_sys_detail
-- ----------------------------
DROP TABLE IF EXISTS `t_sys_detail`;
CREATE TABLE `t_sys_detail`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `title_code` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '标题code',
  `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容',
  `style` tinyint(2) UNSIGNED NULL DEFAULT 0 COMMENT '展示类型（0：一级标题1.二级标题 2.正文 3.列表 4.图片 5.图片滚动 6.多列排列 7：富文本 ）',
  `width` double(5, 2) UNSIGNED NULL DEFAULT 0.00 COMMENT '宽度',
  `col_total` tinyint(2) UNSIGNED NULL DEFAULT 1 COMMENT '共几列',
  `col` tinyint(2) UNSIGNED NULL DEFAULT 1 COMMENT '第几列',
  `query_method` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '查询方式 （0：配置内容 1：接口查询)',
  `query_module` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '查询模块 0:专家 1：政策。。。。',
  `sort` int(11) NULL DEFAULT 0 COMMENT '排序',
  `channel_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '渠道code',
  `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 `detail_channel_index`(`channel_code`) USING BTREE,
  INDEX `detail_title_index`(`title_code`, `sort`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 46 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '详情模块表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_teacher_category
-- ----------------------------
DROP TABLE IF EXISTS `t_teacher_category`;
CREATE TABLE `t_teacher_category`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `category_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '类别名称',
  `up_user_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,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `category_name_index`(`category_name`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '导师分类' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_teacher_researchers
-- ----------------------------
DROP TABLE IF EXISTS `t_teacher_researchers`;
CREATE TABLE `t_teacher_researchers`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `researchers_id` int(20) NULL DEFAULT 0 COMMENT '科研人员id',
  `category_id` int(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,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `researchers_id_index`(`researchers_id`) USING BTREE,
  INDEX `category_id_index`(`category_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 31 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '导师分类和科研人员关联表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_team_guide
-- ----------------------------
DROP TABLE IF EXISTS `t_team_guide`;
CREATE TABLE `t_team_guide`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '姓名',
  `team_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '团队名称',
  `gender` tinyint(1) NULL DEFAULT NULL COMMENT '性别',
  `famous_family` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '民族',
  `birthday` bigint(11) NULL DEFAULT NULL COMMENT '出生日期',
  `education` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '学历',
  `position` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '职称',
  `major` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '所学专业',
  `Professional` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '从事专业',
  `work_unit` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作单位',
  `phone` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系方式',
  `direction` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '研究方向',
  `institute_id` int(11) 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_team_guide_INDEX`(`institute_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 81 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '团队带头人信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_team_member
-- ----------------------------
DROP TABLE IF EXISTS `t_team_member`;
CREATE TABLE `t_team_member`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '姓名',
  `gender` tinyint(1) NULL DEFAULT NULL COMMENT '性别',
  `birthday` bigint(11) NULL DEFAULT NULL COMMENT '出生日期',
  `education` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '学历',
  `position` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '职称',
  `direction` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '研究方向',
  `institute_id` int(11) NULL DEFAULT 0 COMMENT '研究院表的id',
  `team_id` int(11) 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_team_member_a`(`institute_id`) USING BTREE,
  INDEX `t_team_member_b`(`team_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 64 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '团队成员信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_user
-- ----------------------------
DROP TABLE IF EXISTS `t_user`;
CREATE TABLE `t_user`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '登陆用户名',
  `nickname` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '昵称',
  `company_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '机构全称',
  `phone` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '手机号',
  `mold` tinyint(1) NULL DEFAULT 0 COMMENT '单位性质',
  `type` tinyint(1) NULL DEFAULT 0 COMMENT '1-个人注册，2-机构注册',
  `code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '统一社会信用代码/组织机构代码',
  `user_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删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 25 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '个人/机构信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_video_verify
-- ---------------------------- 
DROP TABLE IF EXISTS `t_video_verify`;
CREATE TABLE `t_video_verify`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NULL DEFAULT 0 COMMENT '审核人id',
  `video_id` bigint(20) NULL DEFAULT 0 COMMENT '视频id',
  `video_status` 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,
  INDEX `video_id_index`(`video_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 87 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '视频审核表' ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;





-- 导师表添加所属平台字段  同步维基的字段   2121.6.15
  ALTER TABLE t_researchers 
  ADD `platform` tinyint(1) DEFAULT 1 COMMENT '所属平台(0-全部,1-创新平台,2-孵化平台,3-产业平台)',
  ADD `sex` tinyint(1) DEFAULT 1 COMMENT '性别(0-女,1-男)',
  ADD `intro` varchar(500) DEFAULT '' COMMENT '简介',
  ADD `resume` int(11) DEFAULT 0 COMMENT '简历',
  ADD `teacher_photo` int(11) DEFAULT 0 COMMENT '导师照片',
  ADD `offer` int(11) DEFAULT 0 COMMENT '聘书(照片)',
  ADD `service_case` varchar(2000) DEFAULT '' COMMENT '服务案例':


--    2121.6.16  企业信息填报Enterprise information  
DROP TABLE IF EXISTS `t_enterprise_information`;
CREATE TABLE `t_enterprise_information`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `place_id` int(11) NULL DEFAULT 0 COMMENT 't_place_apply表的id(企业id)',
  `practical_number` int(11)  DEFAULT 0 COMMENT '实用本年期初数',
  `practical_increase` int(11)  DEFAULT 0 COMMENT '实用当年新增',
  `invention_number` int(11)  DEFAULT 0 COMMENT '发明本年期初书',
  `invention_increase` int(11)  DEFAULT 0 COMMENT '发明当年新增',
  `soft_number` int(11)  DEFAULT 0 COMMENT '软著本年期初数',
  `soft_increase` int(11)  DEFAULT 0 COMMENT '软著当年新增',
  `brand_number` int(11)  DEFAULT 0 COMMENT '商标本年期初书',
  `brand_increase` int(11)  DEFAULT 0 COMMENT '商标当年新增',
  `total_number` int(11)  DEFAULT 0 COMMENT '人员总数',
  `science_personnel` int(11)  DEFAULT 0 COMMENT '科技人员',
  `collegeabove_number` int(11)  DEFAULT 0 COMMENT '大专以上人数',
  `total_assets` decimal(20,2) DEFAULT NULL COMMENT '资产总额',
  `operating_income` decimal(20,2) DEFAULT NULL COMMENT '营业收入',
  `profit_total` decimal(20,2) DEFAULT NULL COMMENT '利润总额',
  `taxes` decimal(20,2) DEFAULT NULL COMMENT '上缴税金',
  `research_costs` decimal(20,2) DEFAULT NULL COMMENT '研发费用',
  `agent_service` int(11)  DEFAULT 0 COMMENT '代理代办',
  `policy_push` int(11)  DEFAULT 0 COMMENT '政策推送',
  `double_activities` int(11)  DEFAULT 0 COMMENT '双创活动',
  `policy_guidance` int(11)  DEFAULT 0 COMMENT '政策辅导',
  `project_declaration` int(11)  DEFAULT 0 COMMENT '项目申报',
  `time` int(11)  DEFAULT 0 COMMENT '时间',
  `quarter` tinyint(1)  DEFAULT 0  COMMENT '季度(1-第一季度2-第二季度3-第三季度4-第四季度)', 
  `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,
  INDEX `t_place_apply`(`place_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 87 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '企业统计信息填报表' ROW_FORMAT = Dynamic;






-- 20210706 服务申请表添加三大平台属性
  ALTER TABLE t_service_apply 
  ADD `platform` tinyint(1) DEFAULT 1 COMMENT '所属平台(1-创新平台,2-孵化平台,3-产业平台)';


  

