From 336bd22b721af9ff7fcaa23eb54c307b9047ffaa Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期四, 19 九月 2024 08:54:54 +0800
Subject: [PATCH] http tag

---
 iailab-module-data/iailab-module-data-biz/db/mysql/tenant.sql |   28 +++++++++++++++-------------
 1 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/db/mysql/tenant.sql b/iailab-module-data/iailab-module-data-biz/db/mysql/tenant.sql
index 89bbaa5..9ef32c6 100644
--- a/iailab-module-data/iailab-module-data-biz/db/mysql/tenant.sql
+++ b/iailab-module-data/iailab-module-data-biz/db/mysql/tenant.sql
@@ -214,14 +214,14 @@
 
 
 CREATE TABLE `t_http_token` (
-                              `id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
-                              `api_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
-                              `login_url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
-                              `client_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
-                              `client_secret` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
-                              `username` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
-                              `password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
-                              `token` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'token',
+                              `id` varchar(36)  NOT NULL COMMENT 'ID',
+                              `api_id` varchar(36) NOT NULL COMMENT '接口ID',
+                              `login_url` varchar(200) DEFAULT NULL COMMENT '登录地址',
+                              `client_id` varchar(100) DEFAULT NULL COMMENT 'ClientId',
+                              `client_secret` varchar(100) DEFAULT NULL COMMENT 'ClientSecret',
+                              `username` varchar(50) DEFAULT NULL COMMENT '用户名',
+                              `password` varchar(50) DEFAULT NULL COMMENT '密码',
+                              `token` varchar(2000) DEFAULT NULL COMMENT 'token',
                               `expire_time` datetime DEFAULT NULL COMMENT '过期时间',
                               `update_time` datetime DEFAULT NULL COMMENT '更新时间',
                               PRIMARY KEY (`id`) USING BTREE,
@@ -229,14 +229,16 @@
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='接口Token';
 
 CREATE TABLE `t_http_tag` (
-                            `id` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '查询号',
-                            `http_api_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'HTTP 接口代码',
-                            `tag_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '测点编码',
-                            `tag_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '测点名称',
+                            `id` varchar(36) NOT NULL COMMENT 'ID',
+                            `api_id` varchar(36) NOT NULL COMMENT '接口ID',
+                            `tag_name` varchar(64) NOT NULL COMMENT '标签名称',
+                            `data_type` varchar(16) NOT NULL COMMENT '数据类型',
+                            `enabled` tinyint(1) DEFAULT NULL COMMENT '是否启用',
+                            `tag_desc` varchar(64) DEFAULT NULL COMMENT '描述',
                             `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
                             `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
                             PRIMARY KEY (`id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='接口Tag表';
+) ENGINE=InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT='接口Tag表';
 
 -- 指标管理------------
 CREATE TABLE t_ind_data_set(

--
Gitblit v1.9.3