datacap/configure/schema/datacap.sql

1235 lines
531 KiB
MySQL
Raw Normal View History

2024-04-12 21:08:11 +08:00
-- MySQL dump 10.13 Distrib 8.3.0, for macos14.2 (arm64)
--
-- Host: localhost Database: datacap
-- ------------------------------------------------------
-- Server version 8.3.0
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `datacap_chat`
--
DROP TABLE IF EXISTS `datacap_chat`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_chat` (
`id` bigint NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`active` tinyint(1) DEFAULT '1',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP,
`avatar` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
2024-04-19 20:23:03 +08:00
`code` varchar(100) DEFAULT NULL,
2024-04-12 21:08:11 +08:00
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_chat`
--
LOCK TABLES `datacap_chat` WRITE;
/*!40000 ALTER TABLE `datacap_chat` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_chat` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_chat_user_relation`
--
DROP TABLE IF EXISTS `datacap_chat_user_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_chat_user_relation` (
`chat_id` bigint DEFAULT NULL,
`user_id` bigint DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_chat_user_relation`
--
LOCK TABLES `datacap_chat_user_relation` WRITE;
/*!40000 ALTER TABLE `datacap_chat_user_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_chat_user_relation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_dashboard`
--
DROP TABLE IF EXISTS `datacap_dashboard`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_dashboard` (
`id` bigint NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`active` tinyint(1) DEFAULT '1',
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
`configure` longtext,
2024-04-19 15:00:53 +08:00
`description` varchar(1000) DEFAULT NULL COMMENT 'Description',
`code` varchar(100) DEFAULT NULL,
2024-06-05 08:51:46 +08:00
`avatar` text,
2024-04-12 21:08:11 +08:00
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_dashboard`
--
LOCK TABLES `datacap_dashboard` WRITE;
/*!40000 ALTER TABLE `datacap_dashboard` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_dashboard` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_dashboard_report_relation`
--
DROP TABLE IF EXISTS `datacap_dashboard_report_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_dashboard_report_relation` (
`dashboard_id` bigint DEFAULT NULL,
`report_id` bigint DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_dashboard_report_relation`
--
LOCK TABLES `datacap_dashboard_report_relation` WRITE;
/*!40000 ALTER TABLE `datacap_dashboard_report_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_dashboard_report_relation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_dashboard_user_relation`
--
DROP TABLE IF EXISTS `datacap_dashboard_user_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_dashboard_user_relation` (
`dashboard_id` bigint DEFAULT NULL,
`user_id` bigint DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_dashboard_user_relation`
--
LOCK TABLES `datacap_dashboard_user_relation` WRITE;
/*!40000 ALTER TABLE `datacap_dashboard_user_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_dashboard_user_relation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_dataset`
--
DROP TABLE IF EXISTS `datacap_dataset`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_dataset` (
`id` bigint NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`active` tinyint(1) DEFAULT '1',
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
`description` text,
`query` longtext,
`sync_mode` varchar(100) DEFAULT NULL,
`expression` varchar(100) DEFAULT NULL,
`state` varchar(100) DEFAULT NULL,
`message` longtext,
`table_name` varchar(255) DEFAULT NULL,
`code` varchar(100) DEFAULT (uuid()),
`column_mode` varchar(100) DEFAULT 'DIMENSION',
`scheduler` varchar(100) DEFAULT NULL,
`executor` varchar(100) DEFAULT 'Default',
`total_rows` bigint DEFAULT '0',
`total_size` varchar(100) DEFAULT NULL,
`life_cycle` bigint DEFAULT '0',
`life_cycle_column` varchar(100) DEFAULT NULL,
`life_cycle_type` varchar(100) DEFAULT NULL,
`is_custom_column` tinyint(1) DEFAULT '0',
`is_virtual_column` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_dataset`
--
LOCK TABLES `datacap_dataset` WRITE;
/*!40000 ALTER TABLE `datacap_dataset` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_dataset` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_dataset_column`
--
DROP TABLE IF EXISTS `datacap_dataset_column`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_dataset_column` (
`id` bigint NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`active` tinyint(1) DEFAULT '1',
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
`description` text,
`type` varchar(100) DEFAULT NULL,
`comment` varchar(255) DEFAULT NULL,
`original` varchar(255) DEFAULT NULL,
`default_value` varchar(255) DEFAULT NULL,
`position` int DEFAULT NULL,
`is_nullable` tinyint(1) DEFAULT '0',
`length` int DEFAULT NULL,
`dataset_id` int DEFAULT NULL,
`is_order_by_key` tinyint(1) DEFAULT '0',
`column_mode` varchar(100) DEFAULT 'DIMENSION',
`is_partition_key` tinyint(1) DEFAULT '0',
`alias_name` varchar(200) DEFAULT NULL,
`is_primary_key` varchar(100) DEFAULT '0',
`is_sampling_key` tinyint(1) DEFAULT '0',
`is_custom_column` tinyint(1) DEFAULT '0',
`is_virtual_column` tinyint(1) DEFAULT '0',
2024-04-19 15:00:53 +08:00
`code` varchar(100) DEFAULT NULL,
2024-04-12 21:08:11 +08:00
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_dataset_column`
--
LOCK TABLES `datacap_dataset_column` WRITE;
/*!40000 ALTER TABLE `datacap_dataset_column` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_dataset_column` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_dataset_column_relation`
--
DROP TABLE IF EXISTS `datacap_dataset_column_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_dataset_column_relation` (
`dataset_id` bigint DEFAULT NULL,
`column_id` bigint DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_dataset_column_relation`
--
LOCK TABLES `datacap_dataset_column_relation` WRITE;
/*!40000 ALTER TABLE `datacap_dataset_column_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_dataset_column_relation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_dataset_history`
--
DROP TABLE IF EXISTS `datacap_dataset_history`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_dataset_history` (
`id` bigint NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`active` tinyint(1) DEFAULT '1',
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
`query` varchar(255) DEFAULT NULL,
`message` text,
`elapsed` bigint DEFAULT NULL,
`count` int DEFAULT NULL,
`query_mode` varchar(255) DEFAULT NULL,
`state` varchar(255) DEFAULT NULL,
2024-04-19 15:00:53 +08:00
`code` varchar(100) DEFAULT NULL,
2024-04-12 21:08:11 +08:00
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_dataset_history`
--
LOCK TABLES `datacap_dataset_history` WRITE;
/*!40000 ALTER TABLE `datacap_dataset_history` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_dataset_history` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_dataset_history_relation`
--
DROP TABLE IF EXISTS `datacap_dataset_history_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_dataset_history_relation` (
`dataset_history_id` bigint DEFAULT NULL,
`dataset_id` bigint DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_dataset_history_relation`
--
LOCK TABLES `datacap_dataset_history_relation` WRITE;
/*!40000 ALTER TABLE `datacap_dataset_history_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_dataset_history_relation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_dataset_source_relation`
--
DROP TABLE IF EXISTS `datacap_dataset_source_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_dataset_source_relation` (
`dataset_id` bigint DEFAULT NULL,
`source_id` bigint DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_dataset_source_relation`
--
LOCK TABLES `datacap_dataset_source_relation` WRITE;
/*!40000 ALTER TABLE `datacap_dataset_source_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_dataset_source_relation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_dataset_user_relation`
--
DROP TABLE IF EXISTS `datacap_dataset_user_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_dataset_user_relation` (
`dataset_id` bigint DEFAULT NULL,
`user_id` bigint DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_dataset_user_relation`
--
LOCK TABLES `datacap_dataset_user_relation` WRITE;
/*!40000 ALTER TABLE `datacap_dataset_user_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_dataset_user_relation` ENABLE KEYS */;
UNLOCK TABLES;
2024-04-19 15:00:53 +08:00
--
-- Table structure for table `datacap_function`
--
DROP TABLE IF EXISTS `datacap_function`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_function` (
`id` bigint NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL COMMENT 'Function name',
`content` varchar(255) DEFAULT NULL COMMENT 'Expression of function',
`description` text COMMENT 'Function description',
`plugin` varchar(255) DEFAULT NULL COMMENT 'Trial plug-in, multiple according to, split',
`example` text COMMENT 'Function Usage Example',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`type` varchar(20) DEFAULT 'KEYWORDS',
`active` tinyint(1) DEFAULT '1',
`code` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='Plug-in correlation function';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_function`
--
LOCK TABLES `datacap_function` WRITE;
/*!40000 ALTER TABLE `datacap_function` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_function` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_menu`
--
DROP TABLE IF EXISTS `datacap_menu`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_menu` (
`id` bigint NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`code` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`url` varchar(255) NOT NULL,
`group_name` varchar(255) DEFAULT NULL,
`sorted` int DEFAULT '0',
`type` varchar(10) DEFAULT 'VIEW',
`parent` bigint DEFAULT '0',
`active` tinyint(1) DEFAULT '1',
`i18n_key` varchar(255) DEFAULT NULL,
`icon` varchar(255) DEFAULT NULL,
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP,
`redirect` bigint DEFAULT '0',
`is_new` tinyint(1) DEFAULT '0',
`view` varchar(550) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_menu`
--
LOCK TABLES `datacap_menu` WRITE;
/*!40000 ALTER TABLE `datacap_menu` DISABLE KEYS */;
INSERT INTO `datacap_menu` VALUES (1,'全局 - 首页','HOME','全局路由:所有用户都可以访问','/home',NULL,1,'VIEW',0,1,'common.home','ios-navigate','2023-07-04 21:47:24','2023-07-04 21:47:24',0,0,NULL),(2,'全局 - 查询','QUERY','全局路由:所有用户都可以访问','/admin/query',NULL,2,'VIEW',0,1,'common.query','md-browsers','2023-07-04 21:47:24','2023-07-04 21:47:24',0,0,NULL),(3,'全局 - 管理主菜单','MANAGEMENT','全局:所有用户都可以访问\n位置顶部管理主菜单','/admin',NULL,3,'VIEW',0,1,'common.admin','ios-hammer','2023-07-04 21:47:24','2023-07-04 21:47:24',0,0,NULL),(4,'全局 - 管理 - 数据源','DATASOURCE','全局:所有用户都可以访问\n位置顶部管理一级子菜单','/admin/source','default',1,'VIEW',3,1,'common.source','md-appstore','2023-07-04 21:47:24','2023-07-04 21:47:24',0,0,NULL),(5,'全局 - 管理 - 片段','SNIPPET','全局:所有用户都可以访问\n位置顶部管理一级子菜单','/admin/snippet',NULL,2,'VIEW',3,1,'common.snippet','ios-barcode','2023-07-04 21:47:24','2023-07-04 21:47:24',0,0,NULL),(6,'全局 - 管理 - 查询历史','HISTORY','全局:所有用户都可以访问\n位置顶部管理一级子菜单','/admin/history',NULL,3,'VIEW',3,1,'common.history','ios-book','2023-07-04 21:47:24','2023-07-04 21:47:24',0,0,NULL),(7,'全局 - 管理 - 流水线','PIPELINE','全局:所有用户都可以访问\n位置顶部管理一级子菜单','/admin/pipeline',NULL,4,'VIEW',3,1,'common.pipeline','md-list-box','2023-07-04 21:47:24','2023-07-04 21:47:24',0,0,NULL),(8,'管理员 - 系统主菜单','SYSTEM','管理员:管理员权限用户可以访问\n位置顶部管理一级子菜单','/system',NULL,4,'VIEW',0,1,'common.system','md-cog','2023-07-04 21:47:24','2023-07-04 21:47:24',0,0,NULL),(9,'管理员 - 系统 - 函数','FUNCTION','管理员:管理员权限用户可以访问\n位置顶部管理一级子菜单','/system/function',NULL,1,'VIEW',8,1,'common.function','ios-basket','2023-07-04 21:47:24','2023-07-04 21:47:24',0,0,NULL),(10,'管理员 - 系统 - 定时任务','SCHEDULE','管理员:管理员权限用户可以访问\n位置顶部管理一级子菜单','/system/schedule',NULL,2,'VIEW',8,1,'common.schedule','md-timer','2023-07-04 21:47:24','2023-07-04 21:47:24',0,0,NULL),(11,'管理员 - 系统 - 模版','TEMPLATE','管理员:管理员权限用户可以访问\n位置顶部管理一级子菜单','/system/template',NULL,3,'VIEW',8,1,'common.template','md-browsers','2023-07-04 21:47:24','2023-07-04 21:47:24',0,0,NULL),(12,'管理员 - 系统 - 权限','ROLE','管理员:管理员权限用户可以访问\n位置顶部管理一级子菜单','/system/role',NULL,4,'VIEW',8,1,'common.authority','md-flag','2023-07-04 21:47:24','2023-07-04 21:47:24',0,0,NULL),(13,'管理员 - 系统 - 菜单','MENU','管理员:管理员权限用户可以访问\n位置顶部管理一级子菜单','/system/menu',NULL,5,'VIEW',8,1,'common.menu','md-menu','2023-07-04 21:47:24','2023-07-04 21:47:24',0,0,NULL),(14,'管理员 - 系统 - 用户','USERS','管理员:管理员权限用户可以访问\n位置顶部管理一级子菜单','/system/user',NULL,6,'VIEW',8,1,'common.user','ios-man','2023-07-04 21:47:24','2023-07-04 21:47:24',0,0,'@/views/pages/system/user/SystemUser.vue'),(15,'全局 - 管理 - 报表','REPORT','全局:所有用户都可以访问\n位置顶部管理一级子菜单','/admin/report',NULL,6,'VIEW',3,1,'common.report','md-analytics','2023-12-18 13:37:35',NULL,0,0,NULL),(16,'全局 - 仪表盘','DASHBOARD','全局路由:所有用户都可以访问','/admin/dashboard',NULL,2,'VIEW',0,1,'common.dashboard','md-analytics','2023-12-19 10:26:21',NULL,0,0,NULL),(17,'全局 - 数据集','DATASET','全局路由:所有用户都可以访问','/admin/dataset',NULL,3,'VIEW',0,1,'common.dataset','md-contrast','2023-12-21 11:32:33','2024-04-05 12:14:02',0,1,NULL);
/*!40000 ALTER TABLE `datacap_menu` ENABLE KEYS */;
UNLOCK TABLES;
2024-04-12 21:08:11 +08:00
--
-- Table structure for table `datacap_message`
--
DROP TABLE IF EXISTS `datacap_message`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_message` (
`id` bigint NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`active` tinyint(1) DEFAULT '1',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP,
`content` text,
`model` varchar(255) DEFAULT NULL,
`type` varchar(100) DEFAULT NULL,
`prompt_tokens` bigint DEFAULT '0',
`completion_tokens` bigint DEFAULT '0',
`total_tokens` bigint DEFAULT '0',
2024-06-05 08:51:46 +08:00
`code` varchar(100) DEFAULT NULL,
2024-04-12 21:08:11 +08:00
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_message`
--
LOCK TABLES `datacap_message` WRITE;
/*!40000 ALTER TABLE `datacap_message` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_message` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_message_chat_relation`
--
DROP TABLE IF EXISTS `datacap_message_chat_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_message_chat_relation` (
`message_id` bigint DEFAULT NULL,
`chat_id` bigint DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_message_chat_relation`
--
LOCK TABLES `datacap_message_chat_relation` WRITE;
/*!40000 ALTER TABLE `datacap_message_chat_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_message_chat_relation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_message_user_relation`
--
DROP TABLE IF EXISTS `datacap_message_user_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_message_user_relation` (
`message_id` bigint DEFAULT NULL,
`user_id` bigint DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_message_user_relation`
--
LOCK TABLES `datacap_message_user_relation` WRITE;
/*!40000 ALTER TABLE `datacap_message_user_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_message_user_relation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_metadata_column`
--
DROP TABLE IF EXISTS `datacap_metadata_column`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_metadata_column` (
`id` bigint NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`active` tinyint(1) DEFAULT '1',
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
`description` varchar(1000) DEFAULT NULL,
`type` text,
`comment` varchar(1000) DEFAULT NULL,
`default_value` varchar(500) DEFAULT NULL,
`position` varchar(100) DEFAULT NULL,
`is_nullable` varchar(100) DEFAULT NULL,
`maximum_length` varchar(100) DEFAULT NULL,
`collation` varchar(100) DEFAULT NULL,
`is_key` varchar(100) DEFAULT NULL,
`privileges` varchar(1000) DEFAULT NULL,
`data_type` text,
`extra` varchar(250) DEFAULT NULL,
2024-04-19 15:00:53 +08:00
`code` varchar(100) DEFAULT NULL,
2024-04-12 21:08:11 +08:00
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_metadata_column`
--
LOCK TABLES `datacap_metadata_column` WRITE;
/*!40000 ALTER TABLE `datacap_metadata_column` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_metadata_column` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_metadata_column_table_relation`
--
DROP TABLE IF EXISTS `datacap_metadata_column_table_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_metadata_column_table_relation` (
`table_id` int DEFAULT NULL,
`column_id` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_metadata_column_table_relation`
--
LOCK TABLES `datacap_metadata_column_table_relation` WRITE;
/*!40000 ALTER TABLE `datacap_metadata_column_table_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_metadata_column_table_relation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_metadata_database`
--
DROP TABLE IF EXISTS `datacap_metadata_database`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_metadata_database` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`active` tinyint(1) DEFAULT '1',
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
`description` varchar(1000) DEFAULT NULL,
`catalog` varchar(255) DEFAULT NULL,
2024-04-19 15:00:53 +08:00
`code` varchar(100) DEFAULT NULL,
2024-04-12 21:08:11 +08:00
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_metadata_database`
--
LOCK TABLES `datacap_metadata_database` WRITE;
/*!40000 ALTER TABLE `datacap_metadata_database` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_metadata_database` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_metadata_database_source_relation`
--
DROP TABLE IF EXISTS `datacap_metadata_database_source_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_metadata_database_source_relation` (
`source_id` int DEFAULT NULL,
`database_id` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_metadata_database_source_relation`
--
LOCK TABLES `datacap_metadata_database_source_relation` WRITE;
/*!40000 ALTER TABLE `datacap_metadata_database_source_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_metadata_database_source_relation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_metadata_table`
--
DROP TABLE IF EXISTS `datacap_metadata_table`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_metadata_table` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`active` tinyint(1) DEFAULT '1',
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
`type` text,
`engine` varchar(255) DEFAULT NULL,
`format` varchar(255) DEFAULT NULL,
`in_rows` varchar(255) DEFAULT NULL,
`in_create_time` varchar(255) DEFAULT NULL,
`in_update_time` varchar(255) DEFAULT NULL,
`collation` varchar(255) DEFAULT NULL,
`comment` varchar(1000) DEFAULT NULL,
`description` varchar(1000) DEFAULT NULL,
`avg_row_length` varchar(100) DEFAULT NULL,
`data_length` varchar(100) DEFAULT NULL,
`index_length` varchar(100) DEFAULT NULL,
`auto_increment` varchar(100) DEFAULT NULL,
2024-04-19 15:00:53 +08:00
`code` varchar(100) DEFAULT NULL,
2024-04-12 21:08:11 +08:00
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_metadata_table`
--
LOCK TABLES `datacap_metadata_table` WRITE;
/*!40000 ALTER TABLE `datacap_metadata_table` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_metadata_table` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_metadata_table_database_relation`
--
DROP TABLE IF EXISTS `datacap_metadata_table_database_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_metadata_table_database_relation` (
`table_id` int DEFAULT NULL,
`database_id` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_metadata_table_database_relation`
--
LOCK TABLES `datacap_metadata_table_database_relation` WRITE;
/*!40000 ALTER TABLE `datacap_metadata_table_database_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_metadata_table_database_relation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_pipeline`
--
DROP TABLE IF EXISTS `datacap_pipeline`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_pipeline` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`content` text NOT NULL,
`state` varchar(100) DEFAULT NULL,
`message` text,
`work` text,
2024-04-19 15:00:53 +08:00
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
2024-04-12 21:08:11 +08:00
`elapsed` bigint DEFAULT NULL,
`from_id` int NOT NULL,
`from_configures` text,
`to_id` int NOT NULL,
`to_configures` text,
`executor` varchar(20) NOT NULL DEFAULT 'Seatunnel',
`flow_configure` longtext COMMENT 'Flow configure',
2024-04-19 15:00:53 +08:00
`active` tinyint(1) DEFAULT '1',
`code` varchar(100) DEFAULT NULL,
2024-04-12 21:08:11 +08:00
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_pipeline`
--
LOCK TABLES `datacap_pipeline` WRITE;
/*!40000 ALTER TABLE `datacap_pipeline` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_pipeline` ENABLE KEYS */;
UNLOCK TABLES;
2024-04-19 15:00:53 +08:00
--
-- Table structure for table `datacap_pipeline_user_relation`
--
DROP TABLE IF EXISTS `datacap_pipeline_user_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_pipeline_user_relation` (
`pipeline_id` int DEFAULT NULL,
`user_id` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_pipeline_user_relation`
--
LOCK TABLES `datacap_pipeline_user_relation` WRITE;
/*!40000 ALTER TABLE `datacap_pipeline_user_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_pipeline_user_relation` ENABLE KEYS */;
UNLOCK TABLES;
2024-04-12 21:08:11 +08:00
--
-- Table structure for table `datacap_report`
--
DROP TABLE IF EXISTS `datacap_report`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_report` (
`id` bigint NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`active` tinyint(1) DEFAULT '1',
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
`configure` longtext,
`type` varchar(255) DEFAULT NULL,
`realtime` tinyint(1) DEFAULT '0',
`query` longtext,
2024-04-19 15:00:53 +08:00
`code` varchar(100) DEFAULT NULL,
`description` varchar(2000) DEFAULT NULL,
2024-04-12 21:08:11 +08:00
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_report`
--
LOCK TABLES `datacap_report` WRITE;
/*!40000 ALTER TABLE `datacap_report` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_report` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_report_dataset_relation`
--
DROP TABLE IF EXISTS `datacap_report_dataset_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_report_dataset_relation` (
`report_id` bigint DEFAULT NULL,
`dataset_id` bigint DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_report_dataset_relation`
--
LOCK TABLES `datacap_report_dataset_relation` WRITE;
/*!40000 ALTER TABLE `datacap_report_dataset_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_report_dataset_relation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_report_source_relation`
--
DROP TABLE IF EXISTS `datacap_report_source_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_report_source_relation` (
`report_id` bigint DEFAULT NULL,
`source_id` bigint DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_report_source_relation`
--
LOCK TABLES `datacap_report_source_relation` WRITE;
/*!40000 ALTER TABLE `datacap_report_source_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_report_source_relation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_report_user_relation`
--
DROP TABLE IF EXISTS `datacap_report_user_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_report_user_relation` (
`report_id` bigint DEFAULT NULL,
`user_id` bigint DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_report_user_relation`
--
LOCK TABLES `datacap_report_user_relation` WRITE;
/*!40000 ALTER TABLE `datacap_report_user_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_report_user_relation` ENABLE KEYS */;
UNLOCK TABLES;
2024-04-19 15:00:53 +08:00
--
-- Table structure for table `datacap_role`
--
DROP TABLE IF EXISTS `datacap_role`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_role` (
`id` bigint NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL COMMENT ' ',
`description` varchar(255) DEFAULT NULL COMMENT ' ',
`create_time` datetime(5) DEFAULT CURRENT_TIMESTAMP(5),
`active` tinyint(1) DEFAULT '1',
`code` varchar(100) DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_role`
--
LOCK TABLES `datacap_role` WRITE;
/*!40000 ALTER TABLE `datacap_role` DISABLE KEYS */;
INSERT INTO `datacap_role` VALUES (1,'Admin','这是管理员路由,可以管理站点所有功能',NULL,1,NULL,NULL),(2,'User','我是一个普通用户的路由',NULL,1,NULL,NULL),(3,'Test','这是一个测试路由,没有任何权限',NULL,1,NULL,NULL);
/*!40000 ALTER TABLE `datacap_role` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_role_menu_relation`
--
DROP TABLE IF EXISTS `datacap_role_menu_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_role_menu_relation` (
`role_id` mediumtext,
`menu_id` mediumtext
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_role_menu_relation`
--
LOCK TABLES `datacap_role_menu_relation` WRITE;
/*!40000 ALTER TABLE `datacap_role_menu_relation` DISABLE KEYS */;
2024-06-05 08:51:46 +08:00
INSERT INTO `datacap_role_menu_relation` VALUES ('1','16'),('1','4'),('1','13'),('1','8'),('1','14'),('1','15'),('1','6'),('1','10'),('1','17'),('1','2'),('1','1'),('1','3'),('1','9'),('1','5'),('1','7'),('1','12'),('1','11'),('2','2'),('2','1'),('2','16'),('2','3'),('2','4'),('2','5'),('2','15'),('2','6'),('2','7'),('2','17');
2024-04-19 15:00:53 +08:00
/*!40000 ALTER TABLE `datacap_role_menu_relation` ENABLE KEYS */;
UNLOCK TABLES;
2024-04-12 21:08:11 +08:00
--
-- Table structure for table `datacap_scheduled`
--
DROP TABLE IF EXISTS `datacap_scheduled`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_scheduled` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`description` text NOT NULL,
`expression` varchar(100) DEFAULT NULL,
`active` tinyint(1) DEFAULT '1',
`is_system` tinyint(1) DEFAULT '1',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`type` varchar(255) DEFAULT NULL,
2024-04-19 15:00:53 +08:00
`code` varchar(255) DEFAULT NULL,
2024-04-12 21:08:11 +08:00
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_scheduled`
--
LOCK TABLES `datacap_scheduled` WRITE;
/*!40000 ALTER TABLE `datacap_scheduled` DISABLE KEYS */;
2024-04-19 15:00:53 +08:00
INSERT INTO `datacap_scheduled` VALUES (1,'Synchronize table structure','Synchronize the table structure of the data source library at 1 am every day','0 0 * * * ?',1,1,'2023-07-04 21:47:24','2023-10-10 11:59:29','SOURCE_SYNCHRONIZE',NULL),(2,'Check source available','Check the availability of the data source every 1 hour','0 0 * * * ?',1,1,'2023-08-08 11:54:01','2023-08-09 18:25:26','SOURCE_CHECK',NULL);
2024-04-12 21:08:11 +08:00
/*!40000 ALTER TABLE `datacap_scheduled` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_scheduled_history`
--
DROP TABLE IF EXISTS `datacap_scheduled_history`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_scheduled_history` (
`id` bigint NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`active` tinyint(1) DEFAULT '1',
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
`info` text,
`state` varchar(100) DEFAULT NULL,
`message` text,
2024-04-19 15:00:53 +08:00
`code` varchar(100) DEFAULT NULL,
2024-04-12 21:08:11 +08:00
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_scheduled_history`
--
LOCK TABLES `datacap_scheduled_history` WRITE;
/*!40000 ALTER TABLE `datacap_scheduled_history` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_scheduled_history` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_scheduled_history_relation`
--
DROP TABLE IF EXISTS `datacap_scheduled_history_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_scheduled_history_relation` (
`scheduled_id` int DEFAULT NULL,
`history_id` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_scheduled_history_relation`
--
LOCK TABLES `datacap_scheduled_history_relation` WRITE;
/*!40000 ALTER TABLE `datacap_scheduled_history_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_scheduled_history_relation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `datacap_scheduled_history_source_relation`
--
DROP TABLE IF EXISTS `datacap_scheduled_history_source_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_scheduled_history_source_relation` (
`scheduled_history_id` bigint DEFAULT NULL,
`source_id` bigint DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_scheduled_history_source_relation`
--
LOCK TABLES `datacap_scheduled_history_source_relation` WRITE;
/*!40000 ALTER TABLE `datacap_scheduled_history_source_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_scheduled_history_source_relation` ENABLE KEYS */;
UNLOCK TABLES;
2024-04-19 15:00:53 +08:00
--
-- Table structure for table `datacap_snippet`
--
DROP TABLE IF EXISTS `datacap_snippet`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_snippet` (
`id` bigint NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL COMMENT ' ',
`description` varchar(255) DEFAULT NULL COMMENT ' ',
`context` text,
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`user_id` bigint NOT NULL,
`code` varchar(100) DEFAULT NULL,
`active` tinyint(1) DEFAULT '1',
PRIMARY KEY (`id`),
FULLTEXT KEY `full_text_index_for_code` (`context`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_snippet`
--
LOCK TABLES `datacap_snippet` WRITE;
/*!40000 ALTER TABLE `datacap_snippet` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_snippet` ENABLE KEYS */;
UNLOCK TABLES;
2024-04-12 21:08:11 +08:00
--
-- Table structure for table `datacap_source`
--
DROP TABLE IF EXISTS `datacap_source`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `datacap_source` (
`id` bigint NOT NULL AUTO_INCREMENT,
`_catalog` varchar(255) DEFAULT NULL,
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`_database` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`host` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`password` varchar(255) DEFAULT NULL,
`port` bigint NOT NULL,
`protocol` varchar(255) DEFAULT NULL,
`username` varchar(255) DEFAULT NULL,
`_type` varchar(100) NOT NULL,
`ssl` tinyint(1) DEFAULT '0',
`_ssl` tinyint(1) DEFAULT '0',
`publish` tinyint(1) DEFAULT '0',
`public` tinyint(1) DEFAULT '0',
`user_id` bigint DEFAULT NULL,
`configure` text,
`used_config` tinyint(1) DEFAULT '0',
`version` varchar(255) DEFAULT NULL,
`available` tinyint(1) DEFAULT '1',
`message` text,
`update_time` datetime DEFAULT NULL,
`code` varchar(100) DEFAULT (replace(uuid(),_utf8mb3'-',_utf8mb4'')),
2024-04-19 15:00:53 +08:00
`active` tinyint(1) DEFAULT '1',
2024-04-12 21:08:11 +08:00
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='The storage is used to query the data connection source';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `datacap_source`
--
LOCK TABLES `datacap_source` WRITE;
/*!40000 ALTER TABLE `datacap_source` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_source` ENABLE KEYS */;
UNLOCK TABLES;
--
2024-04-19 15:00:53 +08:00
-- Table structure for table `datacap_source_query`
2024-04-12 21:08:11 +08:00
--
2024-04-19 15:00:53 +08:00
DROP TABLE IF EXISTS `datacap_source_query`;
2024-04-12 21:08:11 +08:00
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
2024-04-19 15:00:53 +08:00
CREATE TABLE `datacap_source_query` (
2024-04-12 21:08:11 +08:00
`id` bigint NOT NULL AUTO_INCREMENT,
2024-04-19 15:00:53 +08:00
`state` varchar(255) DEFAULT NULL,
`create_time` mediumtext,
`update_time` datetime DEFAULT NULL,
`plugin_id` bigint NOT NULL,
`content` text,
`message` text,
`elapsed` bigint DEFAULT '0',
`user_id` bigint NOT NULL,
`count` bigint DEFAULT '0',
`query_mode` varchar(100) DEFAULT 'ADHOC',
2024-04-12 21:08:11 +08:00
`active` tinyint(1) DEFAULT '1',
2024-04-19 15:00:53 +08:00
`code` varchar(100) DEFAULT NULL,
`name` varchar(100) DEFAULT NULL,
`home` varchar(500) DEFAULT NULL,
2024-06-19 20:12:23 +08:00
`format` varchar(100) DEFAULT 'Json',
2024-04-19 15:00:53 +08:00
PRIMARY KEY (`id`),
FULLTEXT KEY `full_text_index_for_content` (`content`)
2024-04-12 21:08:11 +08:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
2024-04-19 15:00:53 +08:00
-- Dumping data for table `datacap_source_query`
2024-04-12 21:08:11 +08:00
--
2024-04-19 15:00:53 +08:00
LOCK TABLES `datacap_source_query` WRITE;
/*!40000 ALTER TABLE `datacap_source_query` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_source_query` ENABLE KEYS */;
2024-04-12 21:08:11 +08:00
UNLOCK TABLES;
--
2024-04-19 15:00:53 +08:00
-- Table structure for table `datacap_template`
2024-04-12 21:08:11 +08:00
--
2024-04-19 15:00:53 +08:00
DROP TABLE IF EXISTS `datacap_template`;
2024-04-12 21:08:11 +08:00
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
2024-04-19 15:00:53 +08:00
CREATE TABLE `datacap_template` (
2024-04-12 21:08:11 +08:00
`id` bigint NOT NULL AUTO_INCREMENT,
2024-04-19 15:00:53 +08:00
`name` varchar(255) DEFAULT NULL COMMENT 'Name of template',
`content` text,
`description` text,
`plugin` varchar(50) DEFAULT NULL COMMENT 'Using plug-ins',
`configure` text COMMENT 'The template must use the configuration information in the key->value format',
2024-04-12 21:08:11 +08:00
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
2024-04-19 15:00:53 +08:00
`is_system` tinyint(1) DEFAULT NULL,
`active` tinyint(1) DEFAULT '1',
`code` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='The system preset SQL template table';
2024-04-12 21:08:11 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
2024-04-19 15:00:53 +08:00
-- Dumping data for table `datacap_template`
2024-04-12 21:08:11 +08:00
--
2024-04-19 15:00:53 +08:00
LOCK TABLES `datacap_template` WRITE;
/*!40000 ALTER TABLE `datacap_template` DISABLE KEYS */;
INSERT INTO `datacap_template` VALUES (6,'getAllRunningProcess','SELECT\n query_id AS id,\n query AS content,\n toUInt64(toUInt64(read_rows) + toUInt64(written_rows)) AS rows,\n round(elapsed, 1) AS elapsed,\n formatReadableSize(toUInt64(read_bytes) + toUInt64(written_bytes)) AS bytes,\n formatReadableSize(memory_usage) AS memory,\n formatReadableSize(read_bytes) AS bytesRead,\n formatReadableSize(written_bytes) AS bytesWritten\nFROM\n system.processes\nWHERE\n round(elapsed, 1) > 0\n','Get a running list of all currently specified server nodes','ClickHouse','\"\\\"\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"[]\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\"\\\"\"','2022-12-29 08:40:11','2024-04-09 03:47:00',0,1,NULL),(7,'getAllRunningProcess','SELECT\n id AS id,\n info AS content,\n \' -\' AS rows,\n time AS elapsed,\n \' -\' AS bytes,\n \' -\' AS memory,\n \' -\' AS bytesRead,\n \' -\' AS bytesWritten\nFROM\n information_schema.PROCESSLIST','Get a running list of all currently specified server nodes','MySQL,MatrixOne','\"\\\"[]\\\"\"','2022-12-29 11:33:04','2024-04-04 04:03:05',0,1,NULL),(29,'SYSTEM_FOR_GET_ALL_DATABASES','SELECT\n `CATALOG_NAME` AS \"CATALOG_NODE\",\n `SCHEMA_NAME` AS \"SCHEMA_NODE\",\n `DEFAULT_CHARACTER_SET_NAME` AS \"CHARSET_NODE\"\nFROM\n INFORMATION_SCHEMA.SCHEMATA','Find a list of databases that already exist in all services\n查找所有服务中已经存在的数据库列表','MySQL,MatrixOne','\"[]\"','2023-09-15 08:47:13','2024-04-03 11:08:37',1,1,NULL),(30,'SYSTEM_FOR_GET_ALL_TABLES','SELECT\n `TABLE_CATALOG` AS \"CATALOG_NODE\",\n `TABLE_SCHEMA` AS \"SCHEMA_NODE\",\n `TABLE_NAME` AS \"TABLE_NODE\",\n CASE `TABLE_TYPE`\n WHEN \'BASE TABLE\' THEN \'TABLE\'\n WHEN \'VIEW\' THEN \'VIEW\'\n WHEN \'SYSTEM VIEW\' THEN \'SYSTEM\'\n END AS \"TYPE_NODE\",\n `ENGINE` AS \"ENGINE_NODE\",\n `ROW_FORMAT` AS \"FORMAT_NODE\",\n `TABLE_ROWS` AS \"ROWS_NODE\",\n `CREATE_TIME` AS \"CREATE_TIME_NODE\",\n `UPDATE_TIME` AS \"UPDATE_TIME_NODE\",\n `TABLE_COLLATION` AS \"COLLATION_NODE\",\n `TABLE_COMMENT` AS \"COMMENT_NODE\",\n `AVG_ROW_LENGTH` AS \"AVG_ROW_NODE\",\n `DATA_LENGTH` AS \"DATA_NODE\",\n `INDEX_LENGTH` AS \"INDEX_NODE\",\n `AUTO_INCREMENT` AS \"AUTO_INCREMENT_NODE\"\nFROM\n information_schema.TABLES\n-- WHERE\n-- TABLE_SCHEMA = \'${database:String}\'','Queries the list of tables in the library according to the specified data name\n根据指定数据名查询该库下数据表列表','MySQL,MatrixOne','[{\"column\":\"database\",\"type\":\"String\",\"expression\":\"${database:String}\"}]','2023-09-18 12:10:53','2023-10-10 02:37:14',1,1,NULL),(31,'SYSTEM_FOR_GET_ALL_COLUMNS','SELECT\n `TABLE_SCHEMA` AS \"CATALOG_NODE\",\n `TABLE_NAME` AS \"SCHEMA_NODE\",\n `COLUMN_NAME` AS \"COLUMN_NODE\",\n `COLUMN_DEFAULT` AS \"DEFAULT_NODE\",\n `ORDINAL_POSITION` AS \"POSITION_NODE\",\n CASE `IS_NULLABLE`\n WHEN \'YES\' THEN TRUE\n WHEN \'NO\' THEN FALSE\n END AS \"NULLABLE_NODE\",\n `DATA_TYPE` AS \"DATA_TYPE_NODE\",\n `COLUMN_TYPE` AS \"COLUMN_TYPE_NODE\",\n `EXTRA` A
/*!40000 ALTER TABLE `datacap_template` ENABLE KEYS */;
2024-04-12 21:08:11 +08:00
UNLOCK TABLES;
--
2024-04-19 15:00:53 +08:00
-- Table structure for table `datacap_user`
2024-04-12 21:08:11 +08:00
--
2024-04-19 15:00:53 +08:00
DROP TABLE IF EXISTS `datacap_user`;
2024-04-12 21:08:11 +08:00
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
2024-04-19 15:00:53 +08:00
CREATE TABLE `datacap_user` (
2024-04-12 21:08:11 +08:00
`id` bigint NOT NULL AUTO_INCREMENT,
2024-04-19 15:00:53 +08:00
`username` varchar(255) DEFAULT NULL COMMENT ' ',
`password` varchar(255) DEFAULT NULL COMMENT ' ',
`create_time` datetime(5) DEFAULT CURRENT_TIMESTAMP(5),
`chat_configure` text,
`is_system` tinyint(1) DEFAULT '0',
`editor_configure` text,
`avatar_configure` longtext COMMENT 'avatar configure',
2024-06-05 08:51:46 +08:00
`active` tinyint(1) DEFAULT '1',
`code` varchar(200) DEFAULT NULL,
`name` varchar(100) DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
2024-04-12 21:08:11 +08:00
PRIMARY KEY (`id`)
2024-06-05 08:51:46 +08:00
) ENGINE=InnoDB AUTO_INCREMENT=10004 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
2024-04-12 21:08:11 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
2024-04-19 15:00:53 +08:00
-- Dumping data for table `datacap_user`
2024-04-12 21:08:11 +08:00
--
2024-04-19 15:00:53 +08:00
LOCK TABLES `datacap_user` WRITE;
/*!40000 ALTER TABLE `datacap_user` DISABLE KEYS */;
2024-06-05 08:51:46 +08:00
INSERT INTO `datacap_user` VALUES (1,'admin','$2a$10$O1BKbXaKuCJYfSoOxuDCFe1j/4nAiATwlaBFHJ2N/s.b/d6eyzK4u','2023-07-04 21:47:24.57480','{\"type\":\"ChatGPT\",\"host\":null,\"token\":null,\"timeout\":0,\"contentCount\":5}',0,'{\"fontSize\":18,\"theme\":\"chrome\"}','{\"path\":\"data:image/jpeg;base64,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
2024-04-19 15:00:53 +08:00
/*!40000 ALTER TABLE `datacap_user` ENABLE KEYS */;
2024-04-12 21:08:11 +08:00
UNLOCK TABLES;
--
2024-04-19 15:00:53 +08:00
-- Table structure for table `datacap_user_log`
2024-04-12 21:08:11 +08:00
--
2024-04-19 15:00:53 +08:00
DROP TABLE IF EXISTS `datacap_user_log`;
2024-04-12 21:08:11 +08:00
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
2024-04-19 15:00:53 +08:00
CREATE TABLE `datacap_user_log` (
2024-04-12 21:08:11 +08:00
`id` bigint NOT NULL AUTO_INCREMENT,
`device` varchar(255) DEFAULT NULL COMMENT 'Login device',
`client` varchar(255) DEFAULT NULL COMMENT 'Login client',
`ip` varchar(100) DEFAULT NULL COMMENT 'Login ip',
`message` varchar(225) DEFAULT NULL COMMENT 'Error message',
`state` varchar(20) DEFAULT NULL COMMENT 'Login state',
`ua` varchar(255) DEFAULT NULL COMMENT 'Trial plug-in, multiple according to, split',
`user_id` bigint NOT NULL,
`create_time` datetime(5) DEFAULT CURRENT_TIMESTAMP(5),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='User login log';
/*!40101 SET character_set_client = @saved_cs_client */;
--
2024-04-19 15:00:53 +08:00
-- Dumping data for table `datacap_user_log`
2024-04-12 21:08:11 +08:00
--
2024-04-19 15:00:53 +08:00
LOCK TABLES `datacap_user_log` WRITE;
/*!40000 ALTER TABLE `datacap_user_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `datacap_user_log` ENABLE KEYS */;
2024-04-12 21:08:11 +08:00
UNLOCK TABLES;
--
2024-04-19 15:00:53 +08:00
-- Table structure for table `datacap_user_role_relation`
2024-04-12 21:08:11 +08:00
--
2024-04-19 15:00:53 +08:00
DROP TABLE IF EXISTS `datacap_user_role_relation`;
2024-04-12 21:08:11 +08:00
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
2024-04-19 15:00:53 +08:00
CREATE TABLE `datacap_user_role_relation` (
2024-04-12 21:08:11 +08:00
`user_id` bigint NOT NULL,
`role_id` bigint NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
2024-04-19 15:00:53 +08:00
-- Dumping data for table `datacap_user_role_relation`
2024-04-12 21:08:11 +08:00
--
2024-04-19 15:00:53 +08:00
LOCK TABLES `datacap_user_role_relation` WRITE;
/*!40000 ALTER TABLE `datacap_user_role_relation` DISABLE KEYS */;
2024-06-05 08:51:46 +08:00
INSERT INTO `datacap_user_role_relation` VALUES (2,2),(1,1),(10003,2);
2024-04-19 15:00:53 +08:00
/*!40000 ALTER TABLE `datacap_user_role_relation` ENABLE KEYS */;
2024-04-12 21:08:11 +08:00
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
2024-06-19 20:12:23 +08:00
-- Dump completed on 2024-06-19 20:03:24