-- ----------------------------
-- Table structure for t_system_admin_info
-- ----------------------------
DROP TABLE IF EXISTS `t_system_admin_info`;
CREATE TABLE `t_system_admin_info` (
  `guid` bigint unsigned NOT NULL DEFAULT '0' COMMENT 'GUID',
  `username` varchar(32) NOT NULL DEFAULT '' COMMENT '登录账号',
  `nickname` varchar(128) NOT NULL DEFAULT '' COMMENT '账号昵称',
  `pwd_md5` varchar(32) NOT NULL DEFAULT '' COMMENT '密码密文',
  `pwd_slot` varchar(32) NOT NULL DEFAULT '' COMMENT '加密盐数',
  `opt_remark` varchar(256) NOT NULL DEFAULT '' COMMENT '备注信息',
  `opt_status` int NOT NULL DEFAULT '0' COMMENT '状态标志',
  `opt_super` int NOT NULL DEFAULT '0' COMMENT '超管标志',
  `is_hidden` int NOT NULL DEFAULT '0' COMMENT '隐藏标志',
  `is_delete` int NOT NULL DEFAULT '0' COMMENT '删除标志',
  `delete_token` varchar(32) NOT NULL DEFAULT '' COMMENT '删除令牌',
  `data_version` int NOT NULL DEFAULT '0' COMMENT '数据版本',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`guid`) USING BTREE,
  UNIQUE KEY `idx_unique_username` (`username`,`delete_token`) USING BTREE,
  KEY `idx_create_time` (`create_time`) USING BTREE,
  KEY `idx_update_time` (`update_time`) USING BTREE,
  KEY `idx_hidden_delete` (`is_hidden`,`is_delete`) USING BTREE
) ENGINE=InnoDB COMMENT='系统管理员信息表';

-- ----------------------------
-- Table structure for t_system_async_task_info
-- ----------------------------
DROP TABLE IF EXISTS `t_system_async_task_info`;
CREATE TABLE `t_system_async_task_info` (
  `guid` bigint unsigned NOT NULL DEFAULT '0' COMMENT 'GUID',
  `biz_type` varchar(128) NOT NULL DEFAULT '' COMMENT '业务类型',
  `biz_id` varchar(128) NOT NULL DEFAULT '' COMMENT '业务编号',
  `trans_id` varchar(128) NOT NULL DEFAULT '' COMMENT '任务编号',
  `task_type` varchar(64) NOT NULL DEFAULT '' COMMENT '任务类型',
  `task_params` mediumtext NOT NULL COMMENT '任务参数',
  `call_timing` bigint NOT NULL DEFAULT '0' COMMENT '定时执行',
  `start_time` bigint NOT NULL DEFAULT '0' COMMENT '开始时间',
  `end_time` bigint NOT NULL DEFAULT '0' COMMENT '结束时间',
  `use_time` bigint NOT NULL DEFAULT '0' COMMENT '总共耗时',
  `total_count` int NOT NULL DEFAULT '0' COMMENT '总共数量',
  `success_count` int NOT NULL DEFAULT '0' COMMENT '成功数量',
  `failure_count` int NOT NULL DEFAULT '0' COMMENT '失败数量',
  `ignore_count` int NOT NULL DEFAULT '0' COMMENT '忽略数量',
  `retry_count` int NOT NULL DEFAULT '0' COMMENT '重试次数',
  `opt_status` int NOT NULL DEFAULT '0' COMMENT '状态标志',
  `is_hidden` int NOT NULL DEFAULT '0' COMMENT '隐藏标志',
  `is_delete` int NOT NULL DEFAULT '0' COMMENT '删除标志',
  `delete_token` varchar(32) NOT NULL DEFAULT '' COMMENT '删除令牌',
  `data_version` int NOT NULL DEFAULT '0' COMMENT '数据版本',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`guid`) USING BTREE
) ENGINE=InnoDB COMMENT='系统异步任务信息表';

-- ----------------------------
-- Table structure for t_system_crawler_cache_data
-- ----------------------------
DROP TABLE IF EXISTS `t_system_crawler_cache_data`;
CREATE TABLE `t_system_crawler_cache_data` (
  `guid` bigint unsigned NOT NULL DEFAULT '0' COMMENT 'GUID',
  `crawler_time` bigint unsigned NOT NULL DEFAULT '0' COMMENT '抓取时间',
  `crawler_type` varchar(128) NOT NULL DEFAULT '' COMMENT '抓取类型',
  `crawler_keyword` varchar(128) NOT NULL DEFAULT '' COMMENT '抓取关键词',
  `cache_data` mediumtext NOT NULL COMMENT '缓存内容',
  `is_hidden` int NOT NULL DEFAULT '0' COMMENT '隐藏标志',
  `is_delete` int NOT NULL DEFAULT '0' COMMENT '删除标志',
  `delete_token` varchar(32) DEFAULT '' COMMENT '删除令牌',
  `data_version` int NOT NULL DEFAULT '0' COMMENT '数据版本',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`guid`) USING BTREE
) ENGINE=InnoDB COMMENT='系统爬虫数据缓存信息';

-- ----------------------------
-- Table structure for t_system_global_cache
-- ----------------------------
DROP TABLE IF EXISTS `t_system_global_cache`;
CREATE TABLE `t_system_global_cache` (
  `guid` bigint unsigned NOT NULL DEFAULT '0' COMMENT 'GUID',
  `cache_time` bigint unsigned NOT NULL DEFAULT '0' COMMENT '缓存时间',
  `expire_time` bigint unsigned NOT NULL DEFAULT '0' COMMENT '过期时间',
  `cache_key` varchar(128) NOT NULL DEFAULT '' COMMENT '缓存主键',
  `cache_data` mediumtext NOT NULL COMMENT '缓存内容',
  `is_hidden` int NOT NULL DEFAULT '0' COMMENT '隐藏标志',
  `is_delete` int NOT NULL DEFAULT '0' COMMENT '删除标志',
  `delete_token` varchar(32) NOT NULL DEFAULT '' COMMENT '删除令牌',
  `data_version` int NOT NULL DEFAULT '0' COMMENT '数据版本',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`guid`) USING BTREE
) ENGINE=InnoDB COMMENT='系统通用缓存信息表';

-- ----------------------------
-- Table structure for t_system_global_file_transfer
-- ----------------------------
DROP TABLE IF EXISTS `t_system_global_file_transfer`;
CREATE TABLE `t_system_global_file_transfer` (
  `guid` bigint unsigned NOT NULL DEFAULT '0' COMMENT 'GUID',
  `original_url` varchar(512) NOT NULL DEFAULT '' COMMENT '原来地址',
  `saved_url` varchar(512) NOT NULL DEFAULT '' COMMENT '转存地址',
  `file_size` bigint unsigned NOT NULL DEFAULT '0' COMMENT '文件大小',
  `file_hash` varchar(32) NOT NULL DEFAULT '' COMMENT '文件哈希',
  `is_hidden` int NOT NULL DEFAULT '0' COMMENT '隐藏标志',
  `is_delete` int NOT NULL DEFAULT '0' COMMENT '删除标志',
  `delete_token` varchar(32) NOT NULL DEFAULT '' COMMENT '删除令牌',
  `data_version` int NOT NULL DEFAULT '0' COMMENT '数据版本',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`guid`) USING BTREE
) ENGINE=InnoDB COMMENT='系统文件转存关系表';

-- ----------------------------
-- Table structure for t_system_global_session
-- ----------------------------
DROP TABLE IF EXISTS `t_system_global_session`;
CREATE TABLE `t_system_global_session` (
  `guid` bigint unsigned NOT NULL DEFAULT '0' COMMENT 'GUID',
  `user_guid` bigint unsigned NOT NULL DEFAULT '0' COMMENT '账号GUID',
  `user_group` varchar(32) NOT NULL DEFAULT '' COMMENT '账号分组',
  `session_key` varchar(128) NOT NULL DEFAULT '' COMMENT '会话KEY',
  `origin_platform` varchar(32) NOT NULL DEFAULT '' COMMENT '来源平台',
  `origin_domain` varchar(128) NOT NULL DEFAULT '' COMMENT '来源域名',
  `origin_ip` varchar(128) NOT NULL DEFAULT '' COMMENT '来源IP地址',
  `is_hidden` int NOT NULL DEFAULT '0' COMMENT '隐藏标志',
  `is_delete` int NOT NULL DEFAULT '0' COMMENT '删除标志',
  `delete_token` varchar(32) NOT NULL DEFAULT '' COMMENT '删除令牌',
  `data_version` int NOT NULL DEFAULT '0' COMMENT '数据版本',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`guid`) USING BTREE
) ENGINE=InnoDB COMMENT='系统全局会话信息表';

-- ----------------------------
-- Table structure for t_system_global_setting
-- ----------------------------
DROP TABLE IF EXISTS `t_system_global_setting`;
CREATE TABLE `t_system_global_setting` (
  `guid` bigint unsigned NOT NULL DEFAULT '0' COMMENT 'GUID',
  `setting_key` varchar(128) NOT NULL DEFAULT '' COMMENT '配置KEY',
  `setting_value` mediumtext NOT NULL COMMENT '配置内容',
  `opt_remark` varchar(256) NOT NULL DEFAULT '' COMMENT '备注信息',
  `is_hidden` int NOT NULL DEFAULT '0' COMMENT '隐藏标志',
  `is_delete` int NOT NULL DEFAULT '0' COMMENT '删除标志',
  `delete_token` varchar(32) NOT NULL DEFAULT '' COMMENT '删除令牌',
  `data_version` int NOT NULL DEFAULT '0' COMMENT '数据版本',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`guid`) USING BTREE
) ENGINE=InnoDB COMMENT='系统全局配置信息表';