From f913728abe81ec323fc97b9284b9bd19e91b9c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E6=B2=90?= Date: Thu, 22 Aug 2024 23:27:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/dm8/module/maku-module-iot.sql | 2 ++ db/mysql/module/maku-module-iot.sql | 2 ++ db/postgresql/module/maku-module-iot.sql | 1 + 3 files changed, 5 insertions(+) diff --git a/db/dm8/module/maku-module-iot.sql b/db/dm8/module/maku-module-iot.sql index 6c5efaf..6645c43 100644 --- a/db/dm8/module/maku-module-iot.sql +++ b/db/dm8/module/maku-module-iot.sql @@ -110,6 +110,8 @@ COMMENT ON COLUMN iot_device_service_log.creator IS '创建者'; COMMENT ON COLUMN iot_device_service_log.create_time IS '创建时间'; COMMENT ON COLUMN iot_device_service_log.updater IS '更新者'; +SET IDENTITY_INSERT iot_device ON; +INSERT INTO iot_device (id, code, name, type, uid, secret, app_version, battery_percent, temperature, status, running_status, protocol_type, up_time, down_time, tenant_id, creator, create_time, updater, update_time, version, deleted) VALUES (1, 'test-tcp', 'testTCP', 1, 'test12345678', '123456', NULL, NULL, NULL, 1, 1, 'TCP', now(), NULL, NULL, 10000, now(), 10000, now(), 0, 0); SET IDENTITY_INSERT sys_menu ON; INSERT INTO sys_menu (id, pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (1601, NULL, '物联网平台', NULL, NULL, 0, 0, 'icon-printer-fill', 6, 0, 0, 10000,now(), 10000, now()); diff --git a/db/mysql/module/maku-module-iot.sql b/db/mysql/module/maku-module-iot.sql index 8bfd5f0..c1841f9 100644 --- a/db/mysql/module/maku-module-iot.sql +++ b/db/mysql/module/maku-module-iot.sql @@ -59,6 +59,8 @@ CREATE TABLE iot_device_service_log ( ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COMMENT='设备服务日志'; +INSERT INTO iot_device (id, code, name, type, uid, secret, app_version, battery_percent, temperature, status, running_status, protocol_type, up_time, down_time, tenant_id, creator, create_time, updater, update_time, version, deleted) VALUES (1, 'test-tcp', 'testTCP', 1, 'test12345678', '123456', NULL, NULL, NULL, 1, 1, 'TCP', now(), NULL, NULL, 10000, now(), 10000, now(), 0, 0); + -- 菜单,权限 INSERT INTO sys_menu (pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES ( NULL, '物联网平台', NULL, NULL, 0, 0, 'icon-printer-fill', 6, 0, 0, 10000,now(), 10000, now()); diff --git a/db/postgresql/module/maku-module-iot.sql b/db/postgresql/module/maku-module-iot.sql index 7ad3984..26777dd 100644 --- a/db/postgresql/module/maku-module-iot.sql +++ b/db/postgresql/module/maku-module-iot.sql @@ -111,6 +111,7 @@ COMMENT ON COLUMN iot_device_service_log.create_time IS '创建时间'; COMMENT ON COLUMN iot_device_service_log.updater IS '更新者'; +INSERT INTO iot_device (id, code, name, type, uid, secret, app_version, battery_percent, temperature, status, running_status, protocol_type, up_time, down_time, tenant_id, creator, create_time, updater, update_time, version, deleted) VALUES (1, 'test-tcp', 'testTCP', 1, 'test12345678', '123456', NULL, NULL, NULL, 1, 1, 'TCP', now(), NULL, NULL, 10000, now(), 10000, now(), 0, 0); INSERT INTO sys_menu (id, pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (1601, NULL, '物联网平台', NULL, NULL, 0, 0, 'icon-printer-fill', 6, 0, 0, 10000,now(), 10000, now()); INSERT INTO sys_menu (id, pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (1602, 1601, '设备列表', 'iot/device/index', NULL, 0, 0, 'icon-menu', 0, 0, 0, 10000, now(), 10000, now());