1866 lines
120 KiB
SQL
1866 lines
120 KiB
SQL
/*
|
||
Navicat Premium Data Transfer
|
||
|
||
Source Server : 15.2.21.238
|
||
Source Server Type : MySQL
|
||
Source Server Version : 50732
|
||
Source Host : 15.2.21.238:3310
|
||
Source Schema : share_platform
|
||
|
||
Target Server Type : MySQL
|
||
Target Server Version : 50732
|
||
File Encoding : 65001
|
||
|
||
Date: 14/06/2022 14:51:28
|
||
*/
|
||
|
||
SET NAMES utf8mb4;
|
||
SET FOREIGN_KEY_CHECKS = 0;
|
||
-- ----------------------------
|
||
-- Table structure for gen_base_class
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `gen_base_class`;
|
||
CREATE TABLE `gen_base_class` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`package_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '基类包名',
|
||
`code` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '基类编码',
|
||
`fields` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '基类字段,多个用英文逗号分隔',
|
||
`remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '基类管理' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for gen_datasource
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `gen_datasource`;
|
||
CREATE TABLE `gen_datasource` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`db_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '数据库类型 MySQL、Oracle、SQLServer、PostgreSQL',
|
||
`conn_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '连接名',
|
||
`conn_url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'URL',
|
||
`username` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名',
|
||
`password` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密码',
|
||
`status` tinyint(4) NULL DEFAULT NULL COMMENT '状态 0:启用 1:禁用',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '数据源管理' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for gen_field_type
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `gen_field_type`;
|
||
CREATE TABLE `gen_field_type` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`column_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字段类型',
|
||
`attr_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '属性类型',
|
||
`package_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '属性包名',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
UNIQUE INDEX `column_type`(`column_type`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字段类型管理' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for gen_table_field
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `gen_table_field`;
|
||
CREATE TABLE `gen_table_field` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`table_id` bigint(20) NULL DEFAULT NULL COMMENT '表ID',
|
||
`table_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '表名',
|
||
`column_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '列名',
|
||
`column_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类型',
|
||
`column_comment` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '列说明',
|
||
`attr_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '属性名',
|
||
`attr_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '属性类型',
|
||
`package_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '属性包名',
|
||
`is_pk` tinyint(4) NULL DEFAULT NULL COMMENT '是否主键 0:否 1:是',
|
||
`is_required` tinyint(4) NULL DEFAULT NULL COMMENT '是否必填 0:否 1:是',
|
||
`is_form` tinyint(4) NULL DEFAULT NULL COMMENT '是否表单字段 0:否 1:是',
|
||
`is_list` tinyint(4) NULL DEFAULT NULL COMMENT '是否列表字段 0:否 1:是',
|
||
`is_query` tinyint(4) NULL DEFAULT NULL COMMENT '是否查询字段 0:否 1:是',
|
||
`query_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '查询方式',
|
||
`form_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '表单类型',
|
||
`dict_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字典名称',
|
||
`validator_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '效验方式',
|
||
`sort` int(11) NULL DEFAULT NULL COMMENT '排序',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
INDEX `table_name`(`table_name`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '代码生成表列' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for gen_table_info
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `gen_table_info`;
|
||
CREATE TABLE `gen_table_info` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`table_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '表名',
|
||
`class_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类名',
|
||
`table_comment` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '功能名',
|
||
`author` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '作者',
|
||
`email` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
|
||
`package_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '项目包名',
|
||
`version` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '项目版本号',
|
||
`backend_path` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '后端生成路径',
|
||
`frontend_path` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '前端生成路径',
|
||
`module_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模块名',
|
||
`sub_module_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '子模块名',
|
||
`datasource_id` bigint(20) NULL DEFAULT NULL COMMENT '数据源ID',
|
||
`baseclass_id` bigint(20) NULL DEFAULT NULL COMMENT '基类ID',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
UNIQUE INDEX `table_name`(`table_name`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '代码生成表' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for gen_template
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `gen_template`;
|
||
CREATE TABLE `gen_template` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称',
|
||
`file_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '文件名',
|
||
`content` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '内容',
|
||
`path` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '生成路径',
|
||
`status` tinyint(4) NULL DEFAULT NULL COMMENT '状态 0:启用 1:禁用',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '模板管理' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for gen_test_data
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `gen_test_data`;
|
||
CREATE TABLE `gen_test_data` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名',
|
||
`real_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '姓名',
|
||
`gender` tinyint(3) UNSIGNED NULL DEFAULT NULL COMMENT '性别',
|
||
`email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
|
||
`notice_type` tinyint(4) NULL DEFAULT NULL COMMENT '类型',
|
||
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '测试功能' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for qrtz_blob_triggers
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `qrtz_blob_triggers`;
|
||
CREATE TABLE `qrtz_blob_triggers` (
|
||
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`BLOB_DATA` blob NULL,
|
||
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
|
||
INDEX `SCHED_NAME`(`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
|
||
CONSTRAINT `QRTZ_BLOB_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for qrtz_calendars
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `qrtz_calendars`;
|
||
CREATE TABLE `qrtz_calendars` (
|
||
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`CALENDAR_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`CALENDAR` blob NOT NULL,
|
||
PRIMARY KEY (`SCHED_NAME`, `CALENDAR_NAME`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for qrtz_cron_triggers
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `qrtz_cron_triggers`;
|
||
CREATE TABLE `qrtz_cron_triggers` (
|
||
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`CRON_EXPRESSION` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`TIME_ZONE_ID` varchar(80) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
|
||
CONSTRAINT `QRTZ_CRON_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for qrtz_fired_triggers
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `qrtz_fired_triggers`;
|
||
CREATE TABLE `qrtz_fired_triggers` (
|
||
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`ENTRY_ID` varchar(95) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`INSTANCE_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`FIRED_TIME` bigint(20) NOT NULL,
|
||
`SCHED_TIME` bigint(20) NOT NULL,
|
||
`PRIORITY` int(11) NOT NULL,
|
||
`STATE` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`JOB_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`JOB_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`IS_NONCONCURRENT` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`REQUESTS_RECOVERY` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
PRIMARY KEY (`SCHED_NAME`, `ENTRY_ID`) USING BTREE,
|
||
INDEX `IDX_QRTZ_FT_TRIG_INST_NAME`(`SCHED_NAME`, `INSTANCE_NAME`) USING BTREE,
|
||
INDEX `IDX_QRTZ_FT_INST_JOB_REQ_RCVRY`(`SCHED_NAME`, `INSTANCE_NAME`, `REQUESTS_RECOVERY`) USING BTREE,
|
||
INDEX `IDX_QRTZ_FT_J_G`(`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) USING BTREE,
|
||
INDEX `IDX_QRTZ_FT_JG`(`SCHED_NAME`, `JOB_GROUP`) USING BTREE,
|
||
INDEX `IDX_QRTZ_FT_T_G`(`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
|
||
INDEX `IDX_QRTZ_FT_TG`(`SCHED_NAME`, `TRIGGER_GROUP`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for qrtz_job_details
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `qrtz_job_details`;
|
||
CREATE TABLE `qrtz_job_details` (
|
||
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`JOB_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`JOB_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`DESCRIPTION` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`JOB_CLASS_NAME` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`IS_DURABLE` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`IS_NONCONCURRENT` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`IS_UPDATE_DATA` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`REQUESTS_RECOVERY` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`JOB_DATA` blob NULL,
|
||
PRIMARY KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) USING BTREE,
|
||
INDEX `IDX_QRTZ_J_REQ_RECOVERY`(`SCHED_NAME`, `REQUESTS_RECOVERY`) USING BTREE,
|
||
INDEX `IDX_QRTZ_J_GRP`(`SCHED_NAME`, `JOB_GROUP`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for qrtz_locks
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `qrtz_locks`;
|
||
CREATE TABLE `qrtz_locks` (
|
||
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`LOCK_NAME` varchar(40) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
PRIMARY KEY (`SCHED_NAME`, `LOCK_NAME`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for qrtz_paused_trigger_grps
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `qrtz_paused_trigger_grps`;
|
||
CREATE TABLE `qrtz_paused_trigger_grps` (
|
||
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_GROUP`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for qrtz_scheduler_state
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `qrtz_scheduler_state`;
|
||
CREATE TABLE `qrtz_scheduler_state` (
|
||
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`INSTANCE_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`LAST_CHECKIN_TIME` bigint(20) NOT NULL,
|
||
`CHECKIN_INTERVAL` bigint(20) NOT NULL,
|
||
PRIMARY KEY (`SCHED_NAME`, `INSTANCE_NAME`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for qrtz_simple_triggers
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `qrtz_simple_triggers`;
|
||
CREATE TABLE `qrtz_simple_triggers` (
|
||
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`REPEAT_COUNT` bigint(20) NOT NULL,
|
||
`REPEAT_INTERVAL` bigint(20) NOT NULL,
|
||
`TIMES_TRIGGERED` bigint(20) NOT NULL,
|
||
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
|
||
CONSTRAINT `QRTZ_SIMPLE_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for qrtz_simprop_triggers
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `qrtz_simprop_triggers`;
|
||
CREATE TABLE `qrtz_simprop_triggers` (
|
||
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`STR_PROP_1` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`STR_PROP_2` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`STR_PROP_3` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`INT_PROP_1` int(11) NULL DEFAULT NULL,
|
||
`INT_PROP_2` int(11) NULL DEFAULT NULL,
|
||
`LONG_PROP_1` bigint(20) NULL DEFAULT NULL,
|
||
`LONG_PROP_2` bigint(20) NULL DEFAULT NULL,
|
||
`DEC_PROP_1` decimal(13, 4) NULL DEFAULT NULL,
|
||
`DEC_PROP_2` decimal(13, 4) NULL DEFAULT NULL,
|
||
`BOOL_PROP_1` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`BOOL_PROP_2` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
|
||
CONSTRAINT `QRTZ_SIMPROP_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for qrtz_triggers
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `qrtz_triggers`;
|
||
CREATE TABLE `qrtz_triggers` (
|
||
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`JOB_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`JOB_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`DESCRIPTION` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`NEXT_FIRE_TIME` bigint(20) NULL DEFAULT NULL,
|
||
`PREV_FIRE_TIME` bigint(20) NULL DEFAULT NULL,
|
||
`PRIORITY` int(11) NULL DEFAULT NULL,
|
||
`TRIGGER_STATE` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`TRIGGER_TYPE` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`START_TIME` bigint(20) NOT NULL,
|
||
`END_TIME` bigint(20) NULL DEFAULT NULL,
|
||
`CALENDAR_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`MISFIRE_INSTR` smallint(6) NULL DEFAULT NULL,
|
||
`JOB_DATA` blob NULL,
|
||
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
|
||
INDEX `IDX_QRTZ_T_J`(`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) USING BTREE,
|
||
INDEX `IDX_QRTZ_T_JG`(`SCHED_NAME`, `JOB_GROUP`) USING BTREE,
|
||
INDEX `IDX_QRTZ_T_C`(`SCHED_NAME`, `CALENDAR_NAME`) USING BTREE,
|
||
INDEX `IDX_QRTZ_T_G`(`SCHED_NAME`, `TRIGGER_GROUP`) USING BTREE,
|
||
INDEX `IDX_QRTZ_T_STATE`(`SCHED_NAME`, `TRIGGER_STATE`) USING BTREE,
|
||
INDEX `IDX_QRTZ_T_N_STATE`(`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`, `TRIGGER_STATE`) USING BTREE,
|
||
INDEX `IDX_QRTZ_T_N_G_STATE`(`SCHED_NAME`, `TRIGGER_GROUP`, `TRIGGER_STATE`) USING BTREE,
|
||
INDEX `IDX_QRTZ_T_NEXT_FIRE_TIME`(`SCHED_NAME`, `NEXT_FIRE_TIME`) USING BTREE,
|
||
INDEX `IDX_QRTZ_T_NFT_ST`(`SCHED_NAME`, `TRIGGER_STATE`, `NEXT_FIRE_TIME`) USING BTREE,
|
||
INDEX `IDX_QRTZ_T_NFT_MISFIRE`(`SCHED_NAME`, `MISFIRE_INSTR`, `NEXT_FIRE_TIME`) USING BTREE,
|
||
INDEX `IDX_QRTZ_T_NFT_ST_MISFIRE`(`SCHED_NAME`, `MISFIRE_INSTR`, `NEXT_FIRE_TIME`, `TRIGGER_STATE`) USING BTREE,
|
||
INDEX `IDX_QRTZ_T_NFT_ST_MISFIRE_GRP`(`SCHED_NAME`, `MISFIRE_INSTR`, `NEXT_FIRE_TIME`, `TRIGGER_GROUP`, `TRIGGER_STATE`) USING BTREE,
|
||
CONSTRAINT `QRTZ_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) REFERENCES `qrtz_job_details` (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for schedule_job
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `schedule_job`;
|
||
CREATE TABLE `schedule_job` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`bean_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'spring bean名称',
|
||
`params` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数',
|
||
`cron_expression` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'cron表达式',
|
||
`status` tinyint(3) UNSIGNED NULL DEFAULT NULL COMMENT '任务状态 0:暂停 1:正常',
|
||
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
INDEX `idx_create_date`(`create_date`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '定时任务' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for schedule_job_log
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `schedule_job_log`;
|
||
CREATE TABLE `schedule_job_log` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`job_id` bigint(20) NOT NULL COMMENT '任务id',
|
||
`bean_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'spring bean名称',
|
||
`params` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数',
|
||
`status` tinyint(3) UNSIGNED NOT NULL COMMENT '任务状态 0:失败 1:成功',
|
||
`error` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '失败信息',
|
||
`times` int(11) NOT NULL COMMENT '耗时(单位:毫秒)',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
INDEX `idx_job_id`(`job_id`) USING BTREE,
|
||
INDEX `idx_create_date`(`create_date`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '定时任务日志' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sensitive_data
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sensitive_data`;
|
||
CREATE TABLE `sensitive_data` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`type` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '分类',
|
||
`title` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '敏感词',
|
||
`createTime` datetime NULL DEFAULT NULL,
|
||
`status` int(11) NULL DEFAULT 1 COMMENT '1-正常 0-删除',
|
||
`updateTime` datetime NULL DEFAULT NULL,
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '敏感词' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_dept
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_dept`;
|
||
CREATE TABLE `sys_dept` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`pid` bigint(20) NULL DEFAULT NULL COMMENT '上级ID',
|
||
`pids` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所有上级ID,用逗号分开',
|
||
`name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门名称',
|
||
`type` int(1) NULL DEFAULT NULL COMMENT '类型:1省级部门,2市级部门,3区级部门,4企业',
|
||
`district` bigint(20) NULL DEFAULT NULL COMMENT '地区',
|
||
`sort` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '排序',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
INDEX `idx_pid`(`pid`) USING BTREE,
|
||
INDEX `idx_sort`(`sort`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '部门管理' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_dict_data
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_dict_data`;
|
||
CREATE TABLE `sys_dict_data` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`dict_type_id` bigint(20) NOT NULL COMMENT '字典类型ID',
|
||
`dict_label` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字典标签',
|
||
`dict_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字典值',
|
||
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||
`sort` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '排序',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
`status` int(11) NULL DEFAULT NULL COMMENT '删除状态(0未删除 1删除)',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
UNIQUE INDEX `uk_dict_type_value`(`dict_type_id`, `dict_value`) USING BTREE,
|
||
INDEX `idx_sort`(`sort`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典数据' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_dict_type
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_dict_type`;
|
||
CREATE TABLE `sys_dict_type` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字典类型',
|
||
`dict_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字典名称',
|
||
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||
`sort` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '排序',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
`status` int(11) NULL DEFAULT NULL COMMENT '状态',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
UNIQUE INDEX `dict_type`(`dict_type`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典类型' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_language
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_language`;
|
||
CREATE TABLE `sys_language` (
|
||
`table_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '表名',
|
||
`table_id` bigint(20) NOT NULL COMMENT '表主键',
|
||
`field_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字段名',
|
||
`field_value` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字段值',
|
||
`language` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '语言',
|
||
PRIMARY KEY (`table_name`, `table_id`, `field_name`, `language`) USING BTREE,
|
||
INDEX `idx_table_id`(`table_id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '国际化' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_log_error
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_log_error`;
|
||
CREATE TABLE `sys_log_error` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`request_uri` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求URI',
|
||
`request_method` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求方式',
|
||
`request_params` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '请求参数',
|
||
`user_agent` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户代理',
|
||
`ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作IP',
|
||
`error_info` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '异常信息',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
INDEX `idx_create_date`(`create_date`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '异常日志' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_log_login
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_log_login`;
|
||
CREATE TABLE `sys_log_login` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`operation` tinyint(3) UNSIGNED NULL DEFAULT NULL COMMENT '用户操作 0:用户登录 1:用户退出',
|
||
`status` tinyint(3) UNSIGNED NOT NULL COMMENT '状态 0:失败 1:成功 2:账号已锁定',
|
||
`user_agent` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户代理',
|
||
`ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作IP',
|
||
`creator_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
INDEX `idx_status`(`status`) USING BTREE,
|
||
INDEX `idx_create_date`(`create_date`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '登录日志' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_log_operation
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_log_operation`;
|
||
CREATE TABLE `sys_log_operation` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`operation` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户操作',
|
||
`request_uri` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求URI',
|
||
`request_method` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求方式',
|
||
`request_params` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '请求参数',
|
||
`request_time` int(10) UNSIGNED NOT NULL COMMENT '请求时长(毫秒)',
|
||
`user_agent` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户代理',
|
||
`ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作IP',
|
||
`status` tinyint(3) UNSIGNED NOT NULL COMMENT '状态 0:失败 1:成功',
|
||
`creator_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
INDEX `idx_create_date`(`create_date`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '操作日志' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_mail_log
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_mail_log`;
|
||
CREATE TABLE `sys_mail_log` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`template_id` bigint(20) NOT NULL COMMENT '邮件模板ID',
|
||
`mail_from` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发送者',
|
||
`mail_to` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '收件人',
|
||
`mail_cc` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '抄送者',
|
||
`subject` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮件主题',
|
||
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '邮件正文',
|
||
`status` tinyint(3) UNSIGNED NULL DEFAULT NULL COMMENT '发送状态 0:失败 1:成功',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
INDEX `idx_create_date`(`create_date`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '邮件发送记录' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_mail_template
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_mail_template`;
|
||
CREATE TABLE `sys_mail_template` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模板名称',
|
||
`subject` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮件主题',
|
||
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '邮件正文',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
INDEX `idx_create_date`(`create_date`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '邮件模板' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_menu
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_menu`;
|
||
CREATE TABLE `sys_menu` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`pid` bigint(20) NULL DEFAULT NULL COMMENT '上级ID,一级菜单为0',
|
||
`url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单URL',
|
||
`permissions` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '授权(多个用逗号分隔,如:sys:user:list,sys:user:save)',
|
||
`type` tinyint(3) UNSIGNED NULL DEFAULT NULL COMMENT '类型 0:菜单 1:按钮',
|
||
`icon` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单图标',
|
||
`sort` int(11) NULL DEFAULT NULL COMMENT '排序',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
INDEX `idx_pid`(`pid`) USING BTREE,
|
||
INDEX `idx_sort`(`sort`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '菜单管理' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_notice
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_notice`;
|
||
CREATE TABLE `sys_notice` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`type` int(11) NOT NULL COMMENT '通知类型',
|
||
`title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标题',
|
||
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容',
|
||
`receiver_type` tinyint(3) UNSIGNED NULL DEFAULT NULL COMMENT '接收者 0:全部 1:部门',
|
||
`receiver_type_ids` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接收者ID,用逗号分开',
|
||
`status` tinyint(3) UNSIGNED NULL DEFAULT NULL COMMENT '发送状态 0:草稿 1:已发布',
|
||
`sender_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发送者',
|
||
`sender_date` datetime NULL DEFAULT NULL COMMENT '发送时间',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
INDEX `idx_create_date`(`create_date`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '通知管理' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_notice_user
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_notice_user`;
|
||
CREATE TABLE `sys_notice_user` (
|
||
`receiver_id` bigint(20) NOT NULL COMMENT '接收者ID',
|
||
`notice_id` bigint(20) NOT NULL COMMENT '通知ID',
|
||
`read_status` tinyint(3) UNSIGNED NULL DEFAULT NULL COMMENT '阅读状态 0:未读 1:已读',
|
||
`read_date` datetime NULL DEFAULT NULL COMMENT '阅读时间',
|
||
PRIMARY KEY (`receiver_id`, `notice_id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '我的通知' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_oss
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_oss`;
|
||
CREATE TABLE `sys_oss` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'URL地址',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
INDEX `idx_create_date`(`create_date`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '文件上传' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_params
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_params`;
|
||
CREATE TABLE `sys_params` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`param_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数编码',
|
||
`param_value` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数值',
|
||
`param_type` tinyint(3) UNSIGNED NULL DEFAULT 1 COMMENT '类型 0:系统参数 1:非系统参数',
|
||
`remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
UNIQUE INDEX `uk_param_code`(`param_code`) USING BTREE,
|
||
INDEX `idx_create_date`(`create_date`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '参数管理' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_post
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_post`;
|
||
CREATE TABLE `sys_post` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`post_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '岗位编码',
|
||
`post_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '岗位名称',
|
||
`sort` int(11) NULL DEFAULT NULL COMMENT '排序',
|
||
`status` tinyint(4) NULL DEFAULT NULL COMMENT '状态 0:停用 1:正常',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '岗位管理' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_region
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_region`;
|
||
CREATE TABLE `sys_region` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`pid` bigint(20) NULL DEFAULT NULL COMMENT '上级ID,一级为0',
|
||
`name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称',
|
||
`tree_level` tinyint(4) NULL DEFAULT NULL COMMENT '层级',
|
||
`leaf` tinyint(4) NULL DEFAULT NULL COMMENT '是否叶子节点 0:否 1:是',
|
||
`sort` bigint(20) NULL DEFAULT NULL COMMENT '排序',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '行政区域' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_role
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_role`;
|
||
CREATE TABLE `sys_role` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '角色名称',
|
||
`remark` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||
`dept_id` bigint(20) NULL DEFAULT NULL COMMENT '部门ID',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
INDEX `idx_dept_id`(`dept_id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色管理' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_role_data_scope
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_role_data_scope`;
|
||
CREATE TABLE `sys_role_data_scope` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`role_id` bigint(20) NULL DEFAULT NULL COMMENT '角色ID',
|
||
`dept_id` bigint(20) NULL DEFAULT NULL COMMENT '部门ID',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
INDEX `idx_role_id`(`role_id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色数据权限' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_role_menu
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_role_menu`;
|
||
CREATE TABLE `sys_role_menu` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`role_id` bigint(20) NULL DEFAULT NULL COMMENT '角色ID',
|
||
`menu_id` bigint(20) NULL DEFAULT NULL COMMENT '菜单ID',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
INDEX `idx_role_id`(`role_id`) USING BTREE,
|
||
INDEX `idx_menu_id`(`menu_id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色菜单关系' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_role_user
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_role_user`;
|
||
CREATE TABLE `sys_role_user` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`role_id` bigint(20) NULL DEFAULT NULL COMMENT '角色ID',
|
||
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户ID',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
INDEX `idx_role_id`(`role_id`) USING BTREE,
|
||
INDEX `idx_user_id`(`user_id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色用户关系' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_sms
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_sms`;
|
||
CREATE TABLE `sys_sms` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`sms_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '短信编码',
|
||
`platform` tinyint(3) UNSIGNED NOT NULL COMMENT '平台类型',
|
||
`sms_config` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '短信配置',
|
||
`remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
UNIQUE INDEX `uk_sms_code`(`sms_code`) USING BTREE,
|
||
INDEX `idx_create_date`(`create_date`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '短信' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_sms_log
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_sms_log`;
|
||
CREATE TABLE `sys_sms_log` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`sms_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '短信编码',
|
||
`platform` tinyint(3) UNSIGNED NOT NULL COMMENT '平台类型',
|
||
`mobile` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机号',
|
||
`params_1` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数1',
|
||
`params_2` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数2',
|
||
`params_3` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数3',
|
||
`params_4` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数4',
|
||
`status` tinyint(3) UNSIGNED NULL DEFAULT NULL COMMENT '发送状态 0:失败 1:成功',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
INDEX `idx_sms_code`(`sms_code`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '短信日志' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_ureport_data
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_ureport_data`;
|
||
CREATE TABLE `sys_ureport_data` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`file_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '报表文件名',
|
||
`content` mediumblob NULL COMMENT '内容',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '报表数据' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_user
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_user`;
|
||
CREATE TABLE `sys_user` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户名',
|
||
`password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密码',
|
||
`real_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '姓名',
|
||
`head_url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '头像',
|
||
`gender` tinyint(3) UNSIGNED NULL DEFAULT NULL COMMENT '性别 0:男 1:女 2:保密',
|
||
`email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
|
||
`mobile` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机号',
|
||
`dept_id` bigint(20) NULL DEFAULT NULL COMMENT '部门ID',
|
||
`super_admin` tinyint(3) UNSIGNED NULL DEFAULT NULL COMMENT '超级管理员 0:否 1:是',
|
||
`status` tinyint(4) NULL DEFAULT NULL COMMENT '状态 0:停用 1:正常',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
UNIQUE INDEX `uk_username`(`username`) USING BTREE,
|
||
INDEX `idx_create_date`(`create_date`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统用户' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_user_post
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_user_post`;
|
||
CREATE TABLE `sys_user_post` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`post_id` bigint(20) NULL DEFAULT NULL COMMENT '岗位ID',
|
||
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户ID',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
INDEX `idx_post_id`(`post_id`) USING BTREE,
|
||
INDEX `idx_user_id`(`user_id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户岗位关系' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for sys_user_token
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `sys_user_token`;
|
||
CREATE TABLE `sys_user_token` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`user_id` bigint(20) NOT NULL COMMENT '用户id',
|
||
`token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户token',
|
||
`expire_date` datetime NULL DEFAULT NULL COMMENT '过期时间',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
UNIQUE INDEX `user_id`(`user_id`) USING BTREE,
|
||
UNIQUE INDEX `token`(`token`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统用户Token' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_ability_application
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_ability_application`;
|
||
CREATE TABLE `t_ability_application` (
|
||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||
`user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请人',
|
||
`phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请人电话',
|
||
`unit` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请人单位',
|
||
`area` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请人所在地区',
|
||
`system` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请应用系统',
|
||
`scene` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请场景',
|
||
`basis` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请依据',
|
||
`attachment` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请附件',
|
||
`instance_id` varchar(80) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '流程实例ID',
|
||
`resource_id` bigint(20) NULL DEFAULT NULL COMMENT '资源ID',
|
||
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户id',
|
||
`approve_status` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '审核状态:审核中,通过,不通过',
|
||
`del_flag` int(11) NULL DEFAULT NULL COMMENT '删除标记:0:正常使用;1:已删除;9:其他',
|
||
`enclosure` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '附件',
|
||
`gateway_code` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT 'gateway_code',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 1532307948469997570 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '能力申请表单' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_booth
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_booth`;
|
||
CREATE TABLE `t_booth` (
|
||
`serial` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||
`area` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '区域',
|
||
`booth_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '摊点名称',
|
||
`location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '位置',
|
||
`manage_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '营业时间',
|
||
`capture_time` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '抓图时间',
|
||
`channel_code` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '摄像头编号',
|
||
`gps_x` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '经度',
|
||
`gps_y` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '纬度',
|
||
`channel_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '摄像头名称'
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '指定摊点表' ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_building_records
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_building_records`;
|
||
CREATE TABLE `t_building_records` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`project_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '项目名称',
|
||
`build_license` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '建筑许可',
|
||
`push_time` datetime NULL DEFAULT NULL COMMENT '推送时间',
|
||
`appid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||
`pm10` double NULL DEFAULT NULL COMMENT 'pm10',
|
||
`noice` double NULL DEFAULT NULL COMMENT '噪音',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 17923 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '工地实时环境' ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_building_site
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_building_site`;
|
||
CREATE TABLE `t_building_site` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`gdmc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '工地名称',
|
||
`sgwz` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '施工地址',
|
||
`jd` decimal(12, 8) NULL DEFAULT NULL COMMENT '经度',
|
||
`wd` decimal(12, 8) NULL DEFAULT NULL COMMENT '纬度',
|
||
`ssdq` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属区域',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 1534 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 't_building_site 工地信息' ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_camera
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_camera`;
|
||
CREATE TABLE `t_camera` (
|
||
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '通道码',
|
||
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '摄像机名称',
|
||
`capture_time` datetime NULL DEFAULT NULL COMMENT '截图时间',
|
||
`longitude` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '经度',
|
||
`latitude` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '纬度',
|
||
`pic` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '监控截图',
|
||
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
|
||
`createTime` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||
`modify_time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
|
||
PRIMARY KEY (`code`) USING BTREE,
|
||
INDEX `capture_time`(`capture_time`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '摄像头' ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_camera_channel
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_camera_channel`;
|
||
CREATE TABLE `t_camera_channel` (
|
||
`idt_camera_channel` bigint(11) NOT NULL AUTO_INCREMENT,
|
||
`channel_code` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
||
`channel_id` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '摄像头编号',
|
||
`channel_name` varchar(999) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '摄像头id',
|
||
`gps_x` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '经度',
|
||
`gps_y` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '纬度',
|
||
`status` int(11) NULL DEFAULT NULL COMMENT '1在线;0离线',
|
||
`node_name` varchar(999) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '摄像头名称',
|
||
`check_status` int(11) NULL DEFAULT 1 COMMENT '1正常;0异常',
|
||
`parent_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组织id',
|
||
PRIMARY KEY (`idt_camera_channel`, `channel_code`) USING BTREE,
|
||
INDEX `gps_x`(`gps_x`) USING BTREE,
|
||
INDEX `gps_y`(`gps_y`) USING BTREE,
|
||
INDEX `channel_code`(`channel_code`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 1529827031522664451 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '通道表' ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_camera_organization
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_camera_organization`;
|
||
CREATE TABLE `t_camera_organization` (
|
||
`id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
||
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组织名称',
|
||
`parent_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '父id',
|
||
`sort` int(45) NULL DEFAULT NULL,
|
||
`sub_count` int(45) NULL DEFAULT NULL,
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '组织表' ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_camera_scenic
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_camera_scenic`;
|
||
CREATE TABLE `t_camera_scenic` (
|
||
`camera_id` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '摄像头id',
|
||
`person_num` int(11) NULL DEFAULT NULL COMMENT '人流数量',
|
||
PRIMARY KEY (`camera_id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '摄像头景区的字段拓展表' ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_case_citylaw
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_case_citylaw`;
|
||
CREATE TABLE `t_case_citylaw` (
|
||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||
`ajjlsj` datetime NULL DEFAULT NULL COMMENT '案件建立时间',
|
||
`dzms` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '地址描述',
|
||
`wtms` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '问题描述',
|
||
`wtlybs` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '问题来源标识',
|
||
`wtlymc` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '问题类型名称',
|
||
`ajlxbs` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '案件类型标识',
|
||
`ajlxmc` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '案件类型名称',
|
||
`dlbs` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '大类标识',
|
||
`dlmc` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '大类名称',
|
||
`xlbs` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '小类标识',
|
||
`xlmc` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '小类名称',
|
||
`qbs` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '区标识',
|
||
`qmc` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '区名称',
|
||
`jdbs` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '街道标识',
|
||
`jdmc` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '街道名称',
|
||
`sqbs` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '社区标识',
|
||
`sqmc` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '社区名称',
|
||
`xzb` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'X坐标',
|
||
`yzb` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'Y',
|
||
`pqsj` datetime NULL DEFAULT NULL COMMENT '派遣时间',
|
||
`ajjssj` datetime NULL DEFAULT NULL COMMENT '案件结束时间',
|
||
`ajzfsj` datetime NULL DEFAULT NULL COMMENT '案件作废时间',
|
||
`czsxcqjaaqjacqwjayqja` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '处置时效(超期结案/按期结案/超期未结案/延期结案)',
|
||
`sbtpsl` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '上报图片数量',
|
||
`cztpsl` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '处置图片数量',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 1529641657705905941 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '城市执法' ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_channel_mtm_label
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_channel_mtm_label`;
|
||
CREATE TABLE `t_channel_mtm_label` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`channel_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '摄像头编号',
|
||
`label_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标签号',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 13355 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '摄像头标签关联表' ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_channel_picture
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_channel_picture`;
|
||
CREATE TABLE `t_channel_picture` (
|
||
`id` bigint(11) NOT NULL AUTO_INCREMENT,
|
||
`channel_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '摄像头编号',
|
||
`pic_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图片路径',
|
||
`insert_time` datetime NOT NULL COMMENT '截图时间',
|
||
PRIMARY KEY (`id`, `channel_code`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 1530509290099564546 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '截图存储表' ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_demand_comment
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_demand_comment`;
|
||
CREATE TABLE `t_demand_comment` (
|
||
`id` bigint(20) NOT NULL,
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '评论人',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '评论时间',
|
||
`create_dept_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '评论人部门名称',
|
||
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '评论人姓名',
|
||
`comment` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '评论内容',
|
||
`target_id` bigint(20) NULL DEFAULT NULL COMMENT '评论主题id',
|
||
`note1` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段',
|
||
`note2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段',
|
||
`note3` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段',
|
||
`note4` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段',
|
||
`note5` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备用字段',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '需求评论' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_demand_data
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_demand_data`;
|
||
CREATE TABLE `t_demand_data` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`apply_user_id` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请人用户id',
|
||
`apply_user_name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请人姓名',
|
||
`apply_user_dept_id` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请人部门id',
|
||
`apply_user_dept_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请人部门名称',
|
||
`apply_user_phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请人联系电话',
|
||
`demand_subject` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '需求主题',
|
||
`demand_details` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '需求描述',
|
||
`details_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '需求类型(基础设施、数据资源、组件服务、应用资源、知识库)',
|
||
`details_field` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '需求领域',
|
||
`enclosure` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '附件',
|
||
`flag` int(11) NULL DEFAULT NULL COMMENT '业务标志(0:初始化 1:审批中 2:审批拒绝 3:审批通过)',
|
||
`approval_opinions` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '审批意见',
|
||
`approval_user_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '审批人姓名',
|
||
`approval_user_dept_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '审批人部门名称',
|
||
`visits` bigint(20) NULL DEFAULT NULL COMMENT '访问量',
|
||
`instance_id` varchar(80) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '流程实例ID',
|
||
`creator` bigint(20) NULL DEFAULT NULL,
|
||
`create_date` datetime NULL DEFAULT NULL,
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '能力需求评审主体' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_event
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_event`;
|
||
CREATE TABLE `t_event` (
|
||
`id` bigint(11) NOT NULL,
|
||
`event_cn_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '事件名称',
|
||
`event_serial` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||
`color` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '颜色',
|
||
`vehicle` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '车牌',
|
||
`classes` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||
`camera_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '摄像头名称',
|
||
`district` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '位置',
|
||
`latitude` decimal(50, 6) NULL DEFAULT NULL COMMENT '经度',
|
||
`longitude` decimal(50, 6) NULL DEFAULT NULL COMMENT '纬度',
|
||
`image_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图片路径',
|
||
`task_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||
`capture_time` datetime NULL DEFAULT NULL,
|
||
`track_event` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB 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` bigint(11) NOT NULL AUTO_INCREMENT,
|
||
`label_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '标签号',
|
||
`label_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标签名称',
|
||
`capture_patternn` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '截取方式',
|
||
`city` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||
PRIMARY KEY (`id`, `label_code`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 469 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '标签表' ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_passenger_flow
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_passenger_flow`;
|
||
CREATE TABLE `t_passenger_flow` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`hour_id` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '小时时段',
|
||
`time_id` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分钟时段',
|
||
`longitude` decimal(10, 4) NULL DEFAULT NULL COMMENT '经度',
|
||
`latitude` decimal(10, 4) NULL DEFAULT NULL COMMENT '纬度',
|
||
`all_nums` int(11) NULL DEFAULT NULL,
|
||
`local_nums` int(11) NULL DEFAULT NULL COMMENT '本地游客数',
|
||
`nonlocal_nums` int(11) NULL DEFAULT NULL COMMENT '外地游客数',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 4389948 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '实时客流' ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_project
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_project`;
|
||
CREATE TABLE `t_project` (
|
||
`ssqh` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属区划',
|
||
`id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '项目id',
|
||
`xmmc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '项目名称',
|
||
`xmdz` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '项目地址',
|
||
`ghxkzbh` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '规划许可编号',
|
||
`fzsj` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发证时间',
|
||
`xkmj` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '许可面积',
|
||
`lzs` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '楼座数',
|
||
`xmxz` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '项目性质',
|
||
`jsdw` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '建设单位',
|
||
`dwdz` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位地址',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '工地' ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_project_mtm_camera
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_project_mtm_camera`;
|
||
CREATE TABLE `t_project_mtm_camera` (
|
||
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||
`project_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||
`channel_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
||
PRIMARY KEY (`id`, `channel_code`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 112 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '工地摄像头对应表' ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_resource_mount_apply
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_resource_mount_apply`;
|
||
CREATE TABLE `t_resource_mount_apply` (
|
||
`id` bigint(20) NOT NULL,
|
||
`user_id` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上架申请人id',
|
||
`user_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上架申请人名字',
|
||
`phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上架申请人电话',
|
||
`dept_id` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上架申请人部门',
|
||
`instance_id` varchar(80) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '流程实例ID',
|
||
`del_flag` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '删除标记:0:正常使用;1:已删除;9:其他',
|
||
`parameter_content` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '参数内容(挂载能力json参数)',
|
||
`parameter_content_md5` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '参数内容 md5',
|
||
`creator` bigint(20) NULL DEFAULT NULL,
|
||
`create_date` datetime NULL DEFAULT NULL,
|
||
`enclosure` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '附件地址',
|
||
`resource_id` bigint(20) NULL DEFAULT NULL COMMENT '资源id',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '资源挂载申请表单' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_road_data
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_road_data`;
|
||
CREATE TABLE `t_road_data` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`region_name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '区县名称',
|
||
`street_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '街道名称',
|
||
`road_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '道路名称',
|
||
`start` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '道路起始位置',
|
||
`end` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '道路结束位置',
|
||
`lng` decimal(12, 8) NULL DEFAULT NULL COMMENT '道路中心点经度',
|
||
`lat` decimal(12, 8) NULL DEFAULT NULL COMMENT '道路中心点纬度',
|
||
`pm10` decimal(10, 2) NULL DEFAULT NULL COMMENT 'pm10,μg/m³',
|
||
`pm25` decimal(10, 2) NULL DEFAULT NULL COMMENT 'pm25,μg/m³',
|
||
`desc_pm10_rank` int(11) NULL DEFAULT NULL COMMENT 'PM10污染排名',
|
||
`asc_pm10_rank` int(11) NULL DEFAULT NULL COMMENT 'PM10清洁排名',
|
||
`desc_pm25_rank` int(11) NULL DEFAULT NULL COMMENT 'PM2.5污染排名',
|
||
`asc_pm25_rank` int(11) NULL DEFAULT NULL COMMENT 'PM2.5清洁排名',
|
||
`points` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`dt` datetime NULL DEFAULT NULL COMMENT '日期 如:2022-05-10 00:00:00',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 164451 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '道路统计数据' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_road_data_clean
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_road_data_clean`;
|
||
CREATE TABLE `t_road_data_clean` (
|
||
`id` int(11) NOT NULL,
|
||
`region_name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
|
||
`street_name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
|
||
`road_name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
|
||
`start` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
|
||
`end` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
|
||
`lng` decimal(12, 8) NULL DEFAULT NULL,
|
||
`lat` decimal(12, 8) NULL DEFAULT NULL,
|
||
`pm10` decimal(10, 2) NULL DEFAULT NULL,
|
||
`pm25` decimal(10, 2) NULL DEFAULT NULL,
|
||
`desc_pm10_rank` int(11) NULL DEFAULT NULL,
|
||
`asc_pm10_rank` int(11) NULL DEFAULT NULL,
|
||
`desc_pm25_rank` int(11) NULL DEFAULT NULL,
|
||
`asc_pm25_rank` int(11) NULL DEFAULT NULL,
|
||
`points` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
|
||
`dt` timestamp NULL DEFAULT NULL
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_road_data_dirty
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_road_data_dirty`;
|
||
CREATE TABLE `t_road_data_dirty` (
|
||
`id` int(11) NOT NULL,
|
||
`region_name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
|
||
`street_name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
|
||
`road_name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
|
||
`start` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
|
||
`end` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
|
||
`lng` decimal(12, 8) NULL DEFAULT NULL,
|
||
`lat` decimal(12, 8) NULL DEFAULT NULL,
|
||
`pm10` decimal(10, 2) NULL DEFAULT NULL,
|
||
`pm25` decimal(10, 2) NULL DEFAULT NULL,
|
||
`desc_pm10_rank` int(11) NULL DEFAULT NULL,
|
||
`asc_pm10_rank` int(11) NULL DEFAULT NULL,
|
||
`desc_pm25_rank` int(11) NULL DEFAULT NULL,
|
||
`asc_pm25_rank` int(11) NULL DEFAULT NULL,
|
||
`points` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
|
||
`dt` timestamp NULL DEFAULT NULL,
|
||
`details_error` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
|
||
`unique_exception_status` int(11) NOT NULL,
|
||
`zipper_exception_status` int(11) NOT NULL
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_sanitation_info
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_sanitation_info`;
|
||
CREATE TABLE `t_sanitation_info` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`cph` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '车牌号',
|
||
`jsy` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '驾驶员',
|
||
`gmri` datetime NULL DEFAULT NULL COMMENT '购买日期',
|
||
`cllx` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '车辆类型',
|
||
`ssqybh` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属区域编号',
|
||
`sshwgsbh` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属环卫公司编号',
|
||
`bz` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||
`sfkh` int(11) NULL DEFAULT NULL COMMENT '是否考核',
|
||
`clbh` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '车辆编号',
|
||
`ds` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '吨数',
|
||
`sfjzgpsblrsjgpt` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否加装GPS并连入市监管平台',
|
||
`jj` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '简介',
|
||
`clxh` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '车辆型号',
|
||
`cldl` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '车辆大类',
|
||
`sfjs` int(11) NULL DEFAULT NULL COMMENT '是否机扫',
|
||
`sfss` int(11) NULL DEFAULT NULL COMMENT '是否洒水',
|
||
`sfcx` int(11) NULL DEFAULT NULL COMMENT '是否冲洗',
|
||
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_sanitation_road
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_sanitation_road`;
|
||
CREATE TABLE `t_sanitation_road` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`bh` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '编号',
|
||
`dlmc` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '道路名称',
|
||
`qdlkdlmc` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '起点路口道路名称',
|
||
`zdlkdlmc` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '重点路口道路名称',
|
||
`zcgdlxzc` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '主次干道类型',
|
||
`bjdj` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '保洁等级',
|
||
`dlzd` float NULL DEFAULT NULL COMMENT '道路长度',
|
||
`dlkd` float NULL DEFAULT NULL COMMENT '道路宽度',
|
||
`dlzmj` float NULL DEFAULT NULL COMMENT '道路总面积',
|
||
`cxdmj` float NULL DEFAULT NULL COMMENT '车行道面积',
|
||
`rxdmj` float NULL DEFAULT NULL COMMENT '人行道面积',
|
||
`jsmj` float NULL DEFAULT NULL COMMENT '机扫面积',
|
||
`ssmj` float NULL DEFAULT NULL COMMENT '洒水面积',
|
||
`gycxmj` float NULL DEFAULT NULL,
|
||
`bjysl` int(11) NULL DEFAULT NULL COMMENT '保洁员数量',
|
||
`gpxsl` int(11) NULL DEFAULT NULL COMMENT '果皮箱数量',
|
||
`ssqybh` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属区域编号',
|
||
`ssjdbsc` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属街道办事处',
|
||
`sshwgsbh` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属环卫公司编号',
|
||
`zbjh` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '坐标集合',
|
||
`sfqy` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否启用',
|
||
`bz` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||
`bh1` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '编号1',
|
||
`dtdlhzkd` int(11) NULL DEFAULT NULL COMMENT '地图道路绘制宽度',
|
||
`zcgd` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '主次干道',
|
||
`jsqz` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '机扫权重',
|
||
`cxqz` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '冲洗权重',
|
||
`jj` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '简介',
|
||
`tplj` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图片路径',
|
||
`zbdfxbz0zx1fx` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '坐标点方向标志(0正向1反向)',
|
||
`fxzbxxid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '反向坐标信息id',
|
||
`ys` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '颜色',
|
||
`btmx` float NULL DEFAULT NULL COMMENT '不透明性',
|
||
`jsts` int(11) NULL DEFAULT NULL COMMENT '机扫趟数',
|
||
`jspc` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '机扫频次',
|
||
`sfjs0bjs1js` int(11) NULL DEFAULT NULL COMMENT '是否机扫(0不机扫 1机扫)',
|
||
`sfss0bss1ss` int(11) NULL DEFAULT NULL COMMENT '是否洒水(0不洒水 1洒水)',
|
||
`sfcx0bcx1cx` int(11) NULL DEFAULT NULL COMMENT '是否冲洗(0不冲洗 1冲洗)',
|
||
`sspc` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '洒水频次',
|
||
`cxpc` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '冲洗频次',
|
||
`ssts` int(11) NULL DEFAULT NULL COMMENT '洒水趟数',
|
||
`cxts` int(11) NULL DEFAULT NULL COMMENT '冲洗趟数',
|
||
`sfkh` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 37 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '环卫道路明细' ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_sanitation_task
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_sanitation_task`;
|
||
CREATE TABLE `t_sanitation_task` (
|
||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||
`dlmc` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '道路名称',
|
||
`ksdl` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '开始道路',
|
||
`zzdl` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '终止道路',
|
||
`ssqs` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属区市',
|
||
`cph` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '车牌号',
|
||
`zywcl` float NULL DEFAULT NULL COMMENT '作业完成率',
|
||
`zyrq` datetime NULL DEFAULT NULL COMMENT '作业日期',
|
||
`zylx` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '作业类型',
|
||
`zysj` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '作业时间',
|
||
`zyts` float NULL DEFAULT NULL COMMENT '作业趟数',
|
||
`zypc` float NULL DEFAULT NULL COMMENT '作业频次',
|
||
`zyzd` float NULL DEFAULT NULL COMMENT '作业长度',
|
||
`zykd` float NULL DEFAULT NULL COMMENT '作业宽度',
|
||
`zymj` float NULL DEFAULT NULL COMMENT '作业面积',
|
||
`wzyds` float NULL DEFAULT NULL COMMENT '未作业点数',
|
||
`zycsds` float NULL DEFAULT NULL COMMENT '作业超速点数',
|
||
`zygpsds` float NULL DEFAULT NULL COMMENT '作业gps点数',
|
||
`updatetime` datetime NULL DEFAULT NULL,
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 295151 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '环卫车作业数据' ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_scenic
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_scenic`;
|
||
CREATE TABLE `t_scenic` (
|
||
`id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '景区编码',
|
||
`jqmc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '景区名',
|
||
`gldw` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '管理单位',
|
||
`type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '区域分类',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '景区表,重点区域' ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_scenic_mtm_camera
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_scenic_mtm_camera`;
|
||
CREATE TABLE `t_scenic_mtm_camera` (
|
||
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||
`scenic_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||
`camera_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 112 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '景区摄像头对应表' ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_trail_sanitation
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_trail_sanitation`;
|
||
CREATE TABLE `t_trail_sanitation` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`simkh` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'sim卡号',
|
||
`cph` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '车牌号',
|
||
`wz` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '位置',
|
||
`fssj` datetime NULL DEFAULT NULL COMMENT '发送时间',
|
||
`jd` decimal(10, 4) NULL DEFAULT NULL COMMENT '经度',
|
||
`wd` decimal(10, 4) NULL DEFAULT NULL COMMENT '纬度',
|
||
`sd` decimal(6, 2) NULL DEFAULT NULL COMMENT '速度',
|
||
`fx` int(11) NULL DEFAULT NULL COMMENT '方向',
|
||
`zt` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '状态',
|
||
`yl` decimal(10, 2) NULL DEFAULT NULL COMMENT '油量',
|
||
`lc` decimal(10, 2) NULL DEFAULT NULL COMMENT '里程',
|
||
`yl2` decimal(10, 2) NULL DEFAULT NULL COMMENT '余量',
|
||
`sfzx` int(11) NULL DEFAULT NULL COMMENT '是否在线',
|
||
`xh` int(11) NULL DEFAULT NULL COMMENT '信号',
|
||
`bjzt` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '报警状态',
|
||
`gd` decimal(10, 2) NULL DEFAULT NULL COMMENT '高度',
|
||
`updatetime` datetime NULL DEFAULT NULL,
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 3113 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '环卫车轨迹' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for t_trail_sediment
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `t_trail_sediment`;
|
||
CREATE TABLE `t_trail_sediment` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`speed` double(6, 2) NULL DEFAULT NULL COMMENT '速度',
|
||
`sim_card_num` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'SIM卡号',
|
||
`uploadtime` datetime NULL DEFAULT NULL COMMENT '数据上传时间',
|
||
`coordinate_x` decimal(10, 4) NULL DEFAULT NULL COMMENT 'x坐标',
|
||
`coordinate_y` decimal(10, 4) NULL DEFAULT NULL COMMENT 'y坐标',
|
||
`longitude` decimal(10, 4) NULL DEFAULT NULL COMMENT '经度',
|
||
`latitude` decimal(10, 4) NULL DEFAULT NULL COMMENT '纬度',
|
||
`record_time` datetime NULL DEFAULT NULL COMMENT '记录的时间',
|
||
`angle` double(10, 2) NULL DEFAULT NULL,
|
||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
`status` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`fuel` decimal(10, 2) NULL DEFAULT NULL COMMENT '燃料',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 4836 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '渣土车轨迹表' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_alipay_notify_log
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_alipay_notify_log`;
|
||
CREATE TABLE `tb_alipay_notify_log` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`out_trade_no` bigint(20) NULL DEFAULT NULL COMMENT '订单号',
|
||
`total_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '订单金额',
|
||
`buyer_pay_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '付款金额',
|
||
`receipt_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '实收金额',
|
||
`invoice_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '开票金额',
|
||
`notify_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通知校验ID',
|
||
`buyer_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '买家支付宝用户号',
|
||
`seller_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '卖家支付宝用户号',
|
||
`trade_no` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付宝交易号',
|
||
`trade_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '交易状态',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付宝回调日志' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_correction
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_correction`;
|
||
CREATE TABLE `tb_correction` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`apply_post` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '申请岗位',
|
||
`entry_date` datetime NULL DEFAULT NULL COMMENT '入职日期',
|
||
`correction_date` datetime NULL DEFAULT NULL COMMENT '转正日期',
|
||
`work_content` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '工作内容',
|
||
`achievement` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '工作成绩',
|
||
`instance_id` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '实例ID',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '转正申请' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_data_attr
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_data_attr`;
|
||
CREATE TABLE `tb_data_attr` (
|
||
`id` bigint(20) NOT NULL,
|
||
`data_resource_id` bigint(20) NOT NULL COMMENT '资源ID,表tb_data_resource主键',
|
||
`attr_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '属性类型',
|
||
`attr_value` varchar(4096) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '属性值',
|
||
`del_flag` int(11) NULL DEFAULT NULL COMMENT '删除标志:0:正常使用;1:已删除;9:其他',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
`note1` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`note2` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`note3` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`note4` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`note5` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '资源属性表' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_data_attr_copy1
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_data_attr_copy1`;
|
||
CREATE TABLE `tb_data_attr_copy1` (
|
||
`id` bigint(20) NOT NULL,
|
||
`data_resource_id` bigint(20) NOT NULL COMMENT '资源ID,表tb_data_resource主键',
|
||
`attr_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '属性类型',
|
||
`attr_value` varchar(4096) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '属性值',
|
||
`del_flag` int(11) NULL DEFAULT NULL COMMENT '删除标志:0:正常使用;1:已删除;9:其他',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
`note1` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`note2` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`note3` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`note4` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`note5` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '资源属性表' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_data_category
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_data_category`;
|
||
CREATE TABLE `tb_data_category` (
|
||
`id` bigint(20) NOT NULL COMMENT '主键ID',
|
||
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
|
||
`root_category` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '根级分类名称',
|
||
`pid` varchar(36) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '父级ID',
|
||
`is_attr` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否为属性字段,true/false',
|
||
`type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '输入类型:input/单行文本,textArea/多行文本,select/下拉选择,img/图片,video/视频,file/文件',
|
||
`is_filter_criteria` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否作为筛选条件,true/false',
|
||
`is_link_to_dic` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否和字典表关联,true/false',
|
||
`link_value` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联字典类型',
|
||
`xh` int(11) NULL DEFAULT NULL COMMENT '排序',
|
||
`del_flag` int(1) NULL DEFAULT NULL COMMENT '删除标记:0:正常使用;1:已删除;9:其他',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
`note1` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`note2` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`note3` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`note4` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`note5` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '资源分类表' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_data_resource
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_data_resource`;
|
||
CREATE TABLE `tb_data_resource` (
|
||
`id` bigint(20) NOT NULL COMMENT '主键',
|
||
`type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类型:基础设施,数据资源等',
|
||
`name` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '名称',
|
||
`description` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '描述',
|
||
`link` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '链接URL',
|
||
`api_method_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'api请求方式,get,post等',
|
||
`api_url` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'apiURL',
|
||
`group_id` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'groupID',
|
||
`dept_id` bigint(20) NULL DEFAULT NULL COMMENT '所属部门',
|
||
`dept_contacts` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '部门联系人',
|
||
`dept_phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系电话',
|
||
`share_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '共享类型',
|
||
`share_mode` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '共享方式',
|
||
`share_condition` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '共享条件',
|
||
`district_id` bigint(20) NULL DEFAULT NULL COMMENT '地区编码',
|
||
`visits` bigint(15) NULL DEFAULT NULL COMMENT '访问量',
|
||
`del_flag` int(11) NULL DEFAULT 0 COMMENT '删除标志:\r\n0:正常;\r\n1:已删除;\r\n2:待审核;\r\n3:审核中;\r\n9其他',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||
`note1` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备用字段',
|
||
`note2` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段',
|
||
`note3` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段',
|
||
`note4` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段',
|
||
`note5` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段',
|
||
`enclosure` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '附件',
|
||
`undercarriage_reason` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '下架理由',
|
||
`undercarriage_user_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '下架发起人姓名',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '资源表' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_data_resource_copy1
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_data_resource_copy1`;
|
||
CREATE TABLE `tb_data_resource_copy1` (
|
||
`id` bigint(20) NOT NULL COMMENT '主键',
|
||
`type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类型:基础设施,数据资源等',
|
||
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
|
||
`description` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '描述',
|
||
`link` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '链接URL',
|
||
`api_method_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'api请求方式,get,post等',
|
||
`api_url` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'apiURL',
|
||
`group_id` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'groupID',
|
||
`dept_id` bigint(20) NULL DEFAULT NULL COMMENT '所属部门',
|
||
`dept_contacts` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '部门联系人',
|
||
`dept_phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系电话',
|
||
`share_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '共享类型',
|
||
`share_mode` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '共享方式',
|
||
`share_condition` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '共享条件',
|
||
`district_id` bigint(20) NULL DEFAULT NULL COMMENT '地区编码',
|
||
`visits` bigint(15) NULL DEFAULT NULL COMMENT '访问量',
|
||
`del_flag` int(11) NULL DEFAULT 0 COMMENT '删除标志:\r\n0:正常;\r\n1:已删除;\r\n2:待审核;\r\n3:审核中;\r\n9其他',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||
`note1` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备用字段',
|
||
`note2` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段',
|
||
`note3` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段',
|
||
`note4` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段',
|
||
`note5` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段',
|
||
`enclosure` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '附件',
|
||
`undercarriage_reason` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '下架理由',
|
||
`undercarriage_user_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '下架发起人姓名',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '资源表' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_event_list
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_event_list`;
|
||
CREATE TABLE `tb_event_list` (
|
||
`id` int(255) NOT NULL,
|
||
`event_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`event_cn_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`event_desc` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_excel_data
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_excel_data`;
|
||
CREATE TABLE `tb_excel_data` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`real_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '学生姓名',
|
||
`identity` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '身份证',
|
||
`address` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '家庭地址',
|
||
`join_date` datetime NULL DEFAULT NULL COMMENT '入学日期',
|
||
`class_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '班级名称',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'Excel导入演示' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_news
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_news`;
|
||
CREATE TABLE `tb_news` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '标题',
|
||
`content` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '内容',
|
||
`pub_date` datetime NULL DEFAULT NULL COMMENT '发布时间',
|
||
`dept_id` bigint(20) NULL DEFAULT NULL COMMENT '创建者dept_id',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '新闻管理' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_order
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_order`;
|
||
CREATE TABLE `tb_order` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`order_id` bigint(20) NULL DEFAULT NULL COMMENT '订单ID',
|
||
`product_id` bigint(20) NOT NULL COMMENT '产品ID',
|
||
`product_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '产品名称',
|
||
`pay_amount` decimal(10, 2) NOT NULL COMMENT '支付金额',
|
||
`status` tinyint(4) NULL DEFAULT NULL COMMENT '订单状态 -1:已取消 0:等待付款 1:已完成',
|
||
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '购买用户ID',
|
||
`pay_at` datetime NULL DEFAULT NULL COMMENT '支付时间',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '下单时间',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
UNIQUE INDEX `uk_order_id`(`order_id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_process_biz_route
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_process_biz_route`;
|
||
CREATE TABLE `tb_process_biz_route` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`proc_def_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '流程定义ID',
|
||
`biz_route` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '业务路由',
|
||
`proc_def_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '流程定义KEY',
|
||
`version` int(11) NULL DEFAULT NULL COMMENT '版本号',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '工作流业务路由' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_product
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_product`;
|
||
CREATE TABLE `tb_product` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '产品名称',
|
||
`content` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '产品介绍',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '产品管理' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_product_params
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_product_params`;
|
||
CREATE TABLE `tb_product_params` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`param_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数名',
|
||
`param_value` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数值',
|
||
`product_id` bigint(20) NULL DEFAULT NULL COMMENT '产品ID',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '产品参数管理' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_resource_browse
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_resource_browse`;
|
||
CREATE TABLE `tb_resource_browse` (
|
||
`id` bigint(20) NOT NULL COMMENT '主键',
|
||
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户ID',
|
||
`resource_id` bigint(20) NULL DEFAULT NULL COMMENT '能力ID',
|
||
`state` int(2) NULL DEFAULT NULL COMMENT '状态:0:正常,',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||
`note1` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段1',
|
||
`note2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段2',
|
||
`note3` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段3',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '浏览记录' ROW_FORMAT = Dynamic;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_resource_car
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_resource_car`;
|
||
CREATE TABLE `tb_resource_car` (
|
||
`id` bigint(20) NOT NULL,
|
||
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户ID,sys_user主键',
|
||
`resource_id` bigint(20) NULL DEFAULT NULL COMMENT '资源ID,tb_data_resource主键',
|
||
`del_flag` int(1) NULL DEFAULT NULL COMMENT '删除标志:0:正常;1:已删除;9:其他',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
|
||
`note1` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段',
|
||
`note2` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段',
|
||
`note3` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段',
|
||
`note4` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段',
|
||
`note5` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '申购记录表' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_resource_collection
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_resource_collection`;
|
||
CREATE TABLE `tb_resource_collection` (
|
||
`id` bigint(20) NOT NULL,
|
||
`user_id` bigint(20) NOT NULL COMMENT '用户ID',
|
||
`resource_id` bigint(20) NOT NULL COMMENT '能力ID',
|
||
`del_flag` int(1) NULL DEFAULT NULL COMMENT '删除标志:0:正常;1:已删除;9:其他',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||
`note1` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段1',
|
||
`note2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段2',
|
||
`note3` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段3',
|
||
`note4` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段4',
|
||
`note5` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段5',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '能力收藏表' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_resource_score
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_resource_score`;
|
||
CREATE TABLE `tb_resource_score` (
|
||
`id` bigint(20) NOT NULL COMMENT '主键',
|
||
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户ID',
|
||
`resource_id` bigint(20) NULL DEFAULT NULL COMMENT '能力ID',
|
||
`score` int(11) NULL DEFAULT NULL COMMENT '评分,1-5分,1分差评,5分好评',
|
||
`comment` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '评论内容',
|
||
`del_flag` int(11) NULL DEFAULT NULL COMMENT '删除标志;0:正常;1:已删除',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||
`note1` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段1',
|
||
`note2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段2',
|
||
`note3` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段3',
|
||
`note4` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段4',
|
||
`note5` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段5',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '能力评分表' ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_task_list
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_task_list`;
|
||
CREATE TABLE `tb_task_list` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`task_serial` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`task_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`task_status` int(11) NULL DEFAULT NULL COMMENT ':运行中,2:已结束,3:异常,4:待启动,5:已停止',
|
||
`event_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||
`event_cn_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_warning_list
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_warning_list`;
|
||
CREATE TABLE `tb_warning_list` (
|
||
`id` bigint(11) NOT NULL,
|
||
`event_cn_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '事件名称',
|
||
`event_serial` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||
`color` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||
`vehicle` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '车牌',
|
||
`classes` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||
`camera_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '摄像头名称',
|
||
`district` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '位置',
|
||
`latitude` decimal(50, 6) NULL DEFAULT NULL COMMENT '经度',
|
||
`longitude` decimal(50, 6) NULL DEFAULT NULL COMMENT '纬度',
|
||
`image_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图片路径',
|
||
`task_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||
`capture_time` datetime NULL DEFAULT NULL,
|
||
`track_event` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for tb_work_dynamics
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `tb_work_dynamics`;
|
||
CREATE TABLE `tb_work_dynamics` (
|
||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||
`title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标题',
|
||
`image_url` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '导航图保存地址',
|
||
`content` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '内容',
|
||
`del_flag` int(1) NULL DEFAULT NULL COMMENT '删除标志:0:正常,1:删除,9:其他',
|
||
`creator` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||
`create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`updater` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
|
||
`update_date` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||
`note1` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段1',
|
||
`note2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段2',
|
||
`note3` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段3',
|
||
`note4` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段4',
|
||
`note5` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备用字段5',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '工作动态' ROW_FORMAT = DYNAMIC; |