/*
 Navicat Premium Data Transfer

 Source Server         : 101_FASTBEE_fastbee
 Source Server Type    : Oracle
 Source Server Version : 110200 (Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options)
 Source Host           : 101.33.237.12:1521
 Source Schema         : FASTBEE

 Target Server Type    : Oracle
 Target Server Version : 110200 (Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options)
 File Encoding         : 65001

 Date: 13/11/2024 11:46:14
*/


-- ----------------------------
-- Table structure for APP_LANGUAGE
-- ----------------------------
DROP TABLE "APP_LANGUAGE";
CREATE TABLE "APP_LANGUAGE" (
   "ID" NUMBER(38,0) NOT NULL,
   "LANGUAGE" VARCHAR2(20 CHAR) DEFAULT NULL,
   "COUNTRY" VARCHAR2(20 CHAR) DEFAULT NULL,
   "TIME_ZONE" VARCHAR2(20 CHAR) DEFAULT NULL,
   "CREATE_BY" VARCHAR2(64 CHAR) DEFAULT NULL,
   "CREATE_TIME" TIMESTAMP(6) DEFAULT NULL,
   "LANG_NAME" VARCHAR2(20 CHAR) DEFAULT NULL
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "APP_LANGUAGE"."ID" IS '主键ID';
COMMENT ON COLUMN "APP_LANGUAGE"."LANGUAGE" IS '语言';
COMMENT ON COLUMN "APP_LANGUAGE"."COUNTRY" IS '国家';
COMMENT ON COLUMN "APP_LANGUAGE"."TIME_ZONE" IS '时区';
COMMENT ON COLUMN "APP_LANGUAGE"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "APP_LANGUAGE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "APP_LANGUAGE"."LANG_NAME" IS '语言名称';
COMMENT ON TABLE "APP_LANGUAGE" IS 'app语言';

-- ----------------------------
-- Records of APP_LANGUAGE
-- ----------------------------
INSERT INTO "APP_LANGUAGE" VALUES ('2', 'zh-CN', '中国', 'UTF+8', 'UTC+8', NULL, '简体中文');
INSERT INTO "APP_LANGUAGE" VALUES ('3', 'en-US', '欧美', 'UTC', 'UTC', NULL, 'English');
INSERT INTO "APP_LANGUAGE" VALUES ('4', 'jp', '日本', 'utf-9', NULL, TO_TIMESTAMP('2024-05-31 14:25:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '日语');

-- ----------------------------
-- Primary Key structure for table APP_LANGUAGE
-- ----------------------------
ALTER TABLE "APP_LANGUAGE" ADD CONSTRAINT "SYS_C0012483" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table APP_LANGUAGE
-- ----------------------------
ALTER TABLE "APP_LANGUAGE" ADD CONSTRAINT "SYS_C0011964" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table APP_LANGUAGE
-- ----------------------------
CREATE TRIGGER "APP_LANGUAGE_ID_TRIG" BEFORE INSERT OR UPDATE ON "APP_LANGUAGE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  app_language_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM app_language;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT app_language_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for APP_PREFERENCES
-- ----------------------------
DROP TABLE "APP_PREFERENCES";
CREATE TABLE "APP_PREFERENCES" (
   "ID" NUMBER(38,0) NOT NULL,
   "USER_ID" NUMBER(38,0),
   "LANGUAGE" VARCHAR2(20 CHAR),
   "TIME_ZONE" VARCHAR2(20 CHAR),
   "CREATE_BY" VARCHAR2(85 CHAR),
   "CREATE_TIME" TIMESTAMP(6),
   "UPDATE_BY" VARCHAR2(85 CHAR),
   "UPDATE_TIME" TIMESTAMP(6),
   "REMARK" VARCHAR2(666 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "APP_PREFERENCES"."ID" IS '主键id';
COMMENT ON COLUMN "APP_PREFERENCES"."USER_ID" IS '用户';
COMMENT ON COLUMN "APP_PREFERENCES"."LANGUAGE" IS '语言';
COMMENT ON COLUMN "APP_PREFERENCES"."TIME_ZONE" IS '时区';
COMMENT ON COLUMN "APP_PREFERENCES"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "APP_PREFERENCES"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "APP_PREFERENCES"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "APP_PREFERENCES"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "APP_PREFERENCES"."REMARK" IS '备注';

-- ----------------------------
-- Records of APP_PREFERENCES
-- ----------------------------
INSERT INTO "APP_PREFERENCES" VALUES ('1', '1', 'zh-CN', NULL, NULL, NULL, NULL, NULL, NULL);

-- ----------------------------
-- Primary Key structure for table APP_PREFERENCES
-- ----------------------------
ALTER TABLE "APP_PREFERENCES" ADD CONSTRAINT "SYS_C0012484" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table APP_PREFERENCES
-- ----------------------------
ALTER TABLE "APP_PREFERENCES" ADD CONSTRAINT "SYS_C0011965" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table APP_PREFERENCES
-- ----------------------------
CREATE TRIGGER "APP_PREFERENCES_ID_TRIG" BEFORE INSERT OR UPDATE ON "APP_PREFERENCES" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  app_preferences_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM app_preferences;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT app_preferences_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for BRIDGE
-- ----------------------------
DROP TABLE "BRIDGE";
CREATE TABLE "BRIDGE" (
  "ID" NUMBER(38,0) NOT NULL,
  "CONFIG_JSON" CLOB,
  "NAME" VARCHAR2(255 CHAR) NOT NULL,
  "ENABLE" CHAR(1 CHAR) NOT NULL DEFAULT '1',
  "STATUS" NUMBER(10,0) DEFAULT 0,
  "TYPE" NUMBER(10,0) NOT NULL,
  "DIRECTION" NUMBER(10,0) NOT NULL,
  "ROUTE" VARCHAR2(255 CHAR) DEFAULT '',
  "DEL_FLAG" CHAR(1 CHAR) DEFAULT '0',
  "CREATE_BY" VARCHAR2(64 CHAR) DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
  "UPDATE_BY" VARCHAR2(64 CHAR) DEFAULT '',
  "UPDATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
  "REMARK" VARCHAR2(500 CHAR),
  "TENANT_ID" NUMBER(38,0) NOT NULL,
  "TENANT_NAME" VARCHAR(60) NOT NULL DEFAULT ''
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "BRIDGE"."ID" IS 'id唯一标识';
COMMENT ON COLUMN "BRIDGE"."CONFIG_JSON" IS '桥接配置信息';
COMMENT ON COLUMN "BRIDGE"."NAME" IS '连接器名称';
COMMENT ON COLUMN "BRIDGE"."ENABLE" IS '是否生效（0-不生效，1-生效）';
COMMENT ON COLUMN "BRIDGE"."STATUS" IS '状态（0-未连接，1-连接中）';
COMMENT ON COLUMN "BRIDGE"."TYPE" IS '桥接类型(3=Http推送，4=Mqtt桥接，5=数据库存储)';
COMMENT ON COLUMN "BRIDGE"."DIRECTION" IS '桥接方向(1=输入，2=输出)';
COMMENT ON COLUMN "BRIDGE"."ROUTE" IS '转发路由（mqtt topic，http url）';
COMMENT ON COLUMN "BRIDGE"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "BRIDGE"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "BRIDGE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "BRIDGE"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "BRIDGE"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "BRIDGE"."REMARK" IS '备注';
COMMENT ON COLUMN "BRIDGE"."TENANT_ID" IS '租户id';
COMMENT ON COLUMN "BRIDGE"."TENANT_NAME" IS '租户名称';
COMMENT ON TABLE "BRIDGE" IS '数据桥接表';

-- ----------------------------
-- Records of BRIDGE
-- ----------------------------
INSERT INTO BRIDGE VALUES (1, '{\"name\": \"萤石云平台获取acessToken\", \"method\": \"POST\", \"hostUrl\": \"https://open.ys7.com/api/lapp/token/get\", \"hostUrlbody\": \"open.ys7.com/api/lapp/token/get\", \"requestQuerys\": \"{\\\"appKey\\\":\\\"appKey\\\",\\\"appSecret\\\":\\\"appSecret\\\"}\", \"requestHeaders\": \"{\\\"Content-Type\\\":\\\"application/x-www-form-urlencoded\\\"}\"}', '萤石云平台获取acessToken', '1', 1, 3, 2, '', '0', '', NULL, '', NULL, NULL,1,'admin');
INSERT INTO BRIDGE VALUES (2, '{\"name\": \"萤石云平台获取直播URL\", \"method\": \"POST\", \"hostUrl\": \"https://open.ys7.com/api/lapp/v2/live/address/get\", \"hostUrlbody\": \"open.ys7.com/api/lapp/v2/live/address/get\", \"requestQuerys\": \"{\\\"accessToken\\\":\\\"必填：授权access_token\\\",\\\"deviceSerial\\\":\\\"必填：设备序列号例如427734222\\\",\\\"channelNo\\\":\\\"可选：通道号\\\",\\\"protocol\\\":\\\"可选：流播放协议，1-ezopen、2-hls、3-rtmp、4-flv，默认为1\\\",\\\"code\\\":\\\"可选：ezopen协议地址的设备的视频加密密码\\\",\\\"expireTime\\\":\\\"可选：过期时长，单位秒；针对hls/rtmp/flv设置有效期，相对时间；30秒-720天\\\",\\\"type\\\":\\\"可选：地址的类型，1-预览，2-本地录像回放，3-云存储录像回放\\\",\\\"quality\\\":\\\"可选：视频清晰度，1-高清（主码流）、2-流畅（子码流）\\\",\\\"startTime\\\":\\\"可选：本地录像/云存储录像回放开始时间\\\",\\\"stopTime\\\":\\\"可选：本地录像/云存储录像回放结束时间\\\",\\\"gbchannel\\\":\\\"可选：国标设备的通道编号，视频通道编号ID\\\"}\", \"requestHeaders\": null}', '萤石云平台获取直播URL', '1', 1, 3, 2, '', '0', '', NULL, '', NULL, NULL,1,'admin');
INSERT INTO BRIDGE VALUES (3, '{\"name\": \"海康综合安防平台分页获取监控点资源\", \"method\": \"POST\", \"hostUrl\": \"https://127.0.0.1：443/artemis/api/resource/v1/cameras\", \"hostUrlbody\": \"127.0.0.1：443/artemis/api/resource/v1/cameras\", \"requestConfig\": \"{\\\"appKey\\\":\\\"appKey\\\",\\\"appSecret\\\":\\\"appSecret\\\"}\", \"requestQuerys\": \"{\\\"pageNo\\\":\\\"pageNo\\\",\\\"pageSize\\\":\\\"pageSize\\\"}\", \"requestHeaders\": null}', '海康综合安防平台分页获取监控点资源', '1', 0, 3, 2, '', '0', '', NULL, '', NULL, NULL,1,'admin');
INSERT INTO BRIDGE VALUES (4, '{\"name\": \"海康综合安防平台获取监控点预览取流URLv2\", \"method\": \"POST\", \"hostUrl\": \"https://127.0.0.1:443/artemis/api/video/v2/cameras/previewURLs\", \"hostUrlbody\": \"127.0.0.1:443/artemis/api/video/v2/cameras/previewURLs\", \"requestConfig\": \"{\\\"appKey\\\":\\\"appKey\\\",\\\"appSecret\\\":\\\"appSecret\\\"}\", \"requestQuerys\": \"{\\\"cameraIndexCode\\\":\\\"必填：监控点唯一标识，分页获取监控点资源接口获取返回参数cameraIndexCode\\\",\\\"streamType\\\":\\\"可选：码流类型，0:主码流 1:子码流 2:第三码流 参数不填，默认为主码流\\\",\\\"protocol\\\":\\\"可选：取流协议，\\\\\\\"hik\\\\\\\",\\\\\\\"rtsp\\\\\\\",\\\\\\\"rtmp\\\\\\\",\\\\\\\"hls\\\\\\\",\\\\\\\"ws\\\\\\\"\\\",\\\"transmode\\\":\\\"可选：传输协议，0:UDP 1:TCP 默认是TCP\\\",\\\"streamform\\\":\\\"可选：输出码流转封装格式，“ps”:PS封装格式、“rtp”:RTP封装协议\\\"}\", \"requestHeaders\": null}', '海康综合安防平台获取监控点预览取流URLv2', '1', 0, 3, 2, '', '0', '', NULL, '', NULL, NULL,1,'admin');
INSERT INTO BRIDGE VALUES (5, '{\"name\": \"海康综合安防平台获取监控点回放取流URLv2\", \"method\": \"POST\", \"hostUrl\": \"https://127.0.0.1:443/artemis/api/video/v2/cameras/playbackURLs\", \"hostUrlbody\": \"127.0.0.1:443/artemis/api/video/v2/cameras/playbackURLs\", \"requestConfig\": \"{\\\"appKey\\\":\\\"appKey\\\",\\\"appSecret\\\":\\\"appSecret\\\"}\", \"requestQuerys\": \"{\\\"cameraIndexCode\\\":\\\"必填：监控点唯一标识，分页获取监控点资源接口获取返回参数cameraIndexCode\\\",\\\"recordLocation\\\":\\\"可选：存储类型,0：中心存储 1：设备存储 默认为中心存储\\\",\\\"protocol\\\":\\\"可选：取流协议，“hik”，“rtsp”，“ws”，“hls”，“rtmp”，\\\",\\\"transmode\\\":\\\"可选：0:UDP 1:TCP\\\",\\\"beginTime\\\":\\\"必填：开始时间\\\",\\\"endTime\\\":\\\"必填：结束时间\\\",\\\"streamform\\\":\\\"可选：输出码流转封装格式，“ps”:PS封装格式、“rtp”:RTP封装协议。\\\",\\\"lockType\\\":\\\"可选：录像锁定类型，0-查询全部录像；1-查询未锁定录像；2-查询已锁定录像，不传默认值为0。\\\"}\", \"requestHeaders\": null}', '海康综合安防平台获取监控点回放取流URLv2', '1', 0, 3, 2, '', '0', '', NULL, '', NULL, NULL,1,'admin');
-- ----------------------------
-- Primary Key structure for table BRIDGE
-- ----------------------------
ALTER TABLE "BRIDGE" ADD CONSTRAINT "SYS_C0012485" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table BRIDGE
-- ----------------------------
ALTER TABLE "BRIDGE" ADD CONSTRAINT "SYS_C0011966" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "BRIDGE" ADD CONSTRAINT "SYS_C0011967" CHECK ("NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "BRIDGE" ADD CONSTRAINT "SYS_C0011968" CHECK ("ENABLE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "BRIDGE" ADD CONSTRAINT "SYS_C0011969" CHECK ("TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "BRIDGE" ADD CONSTRAINT "SYS_C0011970" CHECK ("DIRECTION" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table BRIDGE
-- ----------------------------
CREATE TRIGGER "BRIDGE_ID_TRIG" BEFORE INSERT OR UPDATE ON "BRIDGE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  bridge_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM bridge;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT bridge_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for COMMAND_PREFERENCES
-- ----------------------------
DROP TABLE "COMMAND_PREFERENCES";
CREATE TABLE "COMMAND_PREFERENCES" (
   "ID" NUMBER(38,0) NOT NULL,
   "NAME" VARCHAR2(64 CHAR) NOT NULL,
   "COMMAND" CLOB NOT NULL,
   "SERIAL_NUMBER" VARCHAR2(64 CHAR) NOT NULL
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "COMMAND_PREFERENCES"."ID" IS '指令id';
COMMENT ON COLUMN "COMMAND_PREFERENCES"."NAME" IS '指令名称';
COMMENT ON COLUMN "COMMAND_PREFERENCES"."COMMAND" IS '指令';
COMMENT ON COLUMN "COMMAND_PREFERENCES"."SERIAL_NUMBER" IS '设备编号';
COMMENT ON TABLE "COMMAND_PREFERENCES" IS '指令偏好设置';

-- ----------------------------
-- Records of COMMAND_PREFERENCES
-- ----------------------------
INSERT INTO "COMMAND_PREFERENCES" VALUES ('1', '读线圈', '{"command": "010100000001fdca"}', 'D1G9O8WFJ6J4');
INSERT INTO "COMMAND_PREFERENCES" VALUES ('2', '读保持寄存器', '{"command": "010300000001840a"}', 'D1G9O8WFJ6J4');
INSERT INTO "COMMAND_PREFERENCES" VALUES ('3', '写单个线圈', '{"command": "0105000000010c0a"}', 'D1G9O8WFJ6J4');
INSERT INTO "COMMAND_PREFERENCES" VALUES ('4', '写多个线圈', '{"command": "010f00040000010a0e90"}', 'D1G9O8WFJ6J4');
INSERT INTO "COMMAND_PREFERENCES" VALUES ('5', '写单个寄存器', '{"command": "010600000002080b"}', 'D1G9O8WFJ6J4');
INSERT INTO "COMMAND_PREFERENCES" VALUES ('6', '写多个寄存器', '{"command": "01100003000006000100000002ea9b"}', 'D1G9O8WFJ6J4');
INSERT INTO "COMMAND_PREFERENCES" VALUES ('7', '111', '{"command": "010100000001fdca"}', 'D1G9O8WFJ6J4');
INSERT INTO "COMMAND_PREFERENCES" VALUES ('8', '上报测试', '{"command": "01030000000045ca"}', 'D1G9O8WFJ6J4');

-- ----------------------------
-- Primary Key structure for table COMMAND_PREFERENCES
-- ----------------------------
ALTER TABLE "COMMAND_PREFERENCES" ADD CONSTRAINT "SYS_C0012487" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table COMMAND_PREFERENCES
-- ----------------------------
ALTER TABLE "COMMAND_PREFERENCES" ADD CONSTRAINT "SYS_C0011971" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "COMMAND_PREFERENCES" ADD CONSTRAINT "SYS_C0011972" CHECK ("NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "COMMAND_PREFERENCES" ADD CONSTRAINT "SYS_C0011973" CHECK ("COMMAND" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "COMMAND_PREFERENCES" ADD CONSTRAINT "SYS_C0011974" CHECK ("SERIAL_NUMBER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table COMMAND_PREFERENCES
-- ----------------------------
CREATE TRIGGER "COMMAND_PREFERENCES_ID_TRIG" BEFORE INSERT OR UPDATE ON "COMMAND_PREFERENCES" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  command_preferences_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM command_preferences;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT command_preferences_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for GEN_TABLE
-- ----------------------------
DROP TABLE "GEN_TABLE";
CREATE TABLE "GEN_TABLE" (
  "TABLE_ID" NUMBER(38,0) NOT NULL,
  "DATA_NAME" VARCHAR2(266 CHAR) DEFAULT '',
  "TABLE_NAME" VARCHAR2(266 CHAR) DEFAULT '',
  "TABLE_COMMENT" VARCHAR2(666 CHAR) DEFAULT '',
  "SUB_TABLE_NAME" VARCHAR2(85 CHAR),
  "SUB_TABLE_FK_NAME" VARCHAR2(85 CHAR),
  "CLASS_NAME" VARCHAR2(133 CHAR) DEFAULT '',
  "TPL_CATEGORY" VARCHAR2(266 CHAR) DEFAULT 'crud',
  "PACKAGE_NAME" VARCHAR2(133 CHAR),
  "MODULE_NAME" VARCHAR2(40 CHAR),
  "BUSINESS_NAME" VARCHAR2(40 CHAR),
  "FUNCTION_NAME" VARCHAR2(66 CHAR),
  "FUNCTION_AUTHOR" VARCHAR2(66 CHAR),
  "GEN_TYPE" CHAR(1 CHAR) DEFAULT '0',
  "GEN_PATH" VARCHAR2(266 CHAR) DEFAULT '/',
  "OPTIONS" CLOB,
  "CREATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(666 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "GEN_TABLE"."TABLE_ID" IS '编号';
COMMENT ON COLUMN "GEN_TABLE"."DATA_NAME" IS '数据源名称';
COMMENT ON COLUMN "GEN_TABLE"."TABLE_NAME" IS '表名称';
COMMENT ON COLUMN "GEN_TABLE"."TABLE_COMMENT" IS '表描述';
COMMENT ON COLUMN "GEN_TABLE"."SUB_TABLE_NAME" IS '关联子表的表名';
COMMENT ON COLUMN "GEN_TABLE"."SUB_TABLE_FK_NAME" IS '子表关联的外键名';
COMMENT ON COLUMN "GEN_TABLE"."CLASS_NAME" IS '实体类名称';
COMMENT ON COLUMN "GEN_TABLE"."TPL_CATEGORY" IS '使用的模板（crud单表操作 tree树表操作）';
COMMENT ON COLUMN "GEN_TABLE"."PACKAGE_NAME" IS '生成包路径';
COMMENT ON COLUMN "GEN_TABLE"."MODULE_NAME" IS '生成模块名';
COMMENT ON COLUMN "GEN_TABLE"."BUSINESS_NAME" IS '生成业务名';
COMMENT ON COLUMN "GEN_TABLE"."FUNCTION_NAME" IS '生成功能名';
COMMENT ON COLUMN "GEN_TABLE"."FUNCTION_AUTHOR" IS '生成功能作者';
COMMENT ON COLUMN "GEN_TABLE"."GEN_TYPE" IS '生成代码方式（0zip压缩包 1自定义路径）';
COMMENT ON COLUMN "GEN_TABLE"."GEN_PATH" IS '生成路径（不填默认项目路径）';
COMMENT ON COLUMN "GEN_TABLE"."OPTIONS" IS '其它生成选项';
COMMENT ON COLUMN "GEN_TABLE"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "GEN_TABLE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "GEN_TABLE"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "GEN_TABLE"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "GEN_TABLE"."REMARK" IS '备注';
COMMENT ON TABLE "GEN_TABLE" IS '代码生成业务表';

-- ----------------------------
-- Records of GEN_TABLE
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table GEN_TABLE
-- ----------------------------
ALTER TABLE "GEN_TABLE" ADD CONSTRAINT "SYS_C0012486" PRIMARY KEY ("TABLE_ID");

-- ----------------------------
-- Checks structure for table GEN_TABLE
-- ----------------------------
ALTER TABLE "GEN_TABLE" ADD CONSTRAINT "SYS_C0011975" CHECK ("TABLE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table GEN_TABLE
-- ----------------------------
CREATE TRIGGER "GEN_TABLE_TABLE_ID_TRIG" BEFORE INSERT OR UPDATE ON "GEN_TABLE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.table_id IS NULL THEN
SELECT  gen_table_table_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(table_id),0) INTO v_newVal FROM gen_table;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT gen_table_table_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.table_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for GEN_TABLE_COLUMN
-- ----------------------------
DROP TABLE "GEN_TABLE_COLUMN";
CREATE TABLE "GEN_TABLE_COLUMN" (
  "COLUMN_ID" NUMBER(38,0) NOT NULL,
  "TABLE_ID" NUMBER(38,0),
  "COLUMN_NAME" VARCHAR2(266 CHAR),
  "COLUMN_COMMENT" VARCHAR2(666 CHAR),
  "COLUMN_TYPE" VARCHAR2(133 CHAR),
  "JAVA_TYPE" VARCHAR2(666 CHAR),
  "JAVA_FIELD" VARCHAR2(266 CHAR),
  "IS_PK" CHAR(1 CHAR),
  "IS_INCREMENT" CHAR(1 CHAR),
  "IS_REQUIRED" CHAR(1 CHAR),
  "IS_INSERT" CHAR(1 CHAR),
  "IS_EDIT" CHAR(1 CHAR),
  "IS_LIST" CHAR(1 CHAR),
  "IS_QUERY" CHAR(1 CHAR),
  "QUERY_TYPE" VARCHAR2(266 CHAR) DEFAULT 'EQ',
  "HTML_TYPE" VARCHAR2(266 CHAR),
  "DICT_TYPE" VARCHAR2(266 CHAR) DEFAULT '',
  "SORT" NUMBER(10,0),
  "CREATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(666 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."COLUMN_ID" IS '编号';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."TABLE_ID" IS '归属表编号';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."COLUMN_NAME" IS '列名称';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."COLUMN_COMMENT" IS '列描述';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."COLUMN_TYPE" IS '列类型';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."JAVA_TYPE" IS 'JAVA类型';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."JAVA_FIELD" IS 'JAVA字段名';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."IS_PK" IS '是否主键（1是）';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."IS_INCREMENT" IS '是否自增（1是）';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."IS_REQUIRED" IS '是否必填（1是）';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."IS_INSERT" IS '是否为插入字段（1是）';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."IS_EDIT" IS '是否编辑字段（1是）';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."IS_LIST" IS '是否列表字段（1是）';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."IS_QUERY" IS '是否查询字段（1是）';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."QUERY_TYPE" IS '查询方式（等于、不等于、大于、小于、范围）';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."HTML_TYPE" IS '显示类型（文本框、文本域、下拉框、复选框、单选框、日期控件）';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."DICT_TYPE" IS '字典类型';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."SORT" IS '排序';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "GEN_TABLE_COLUMN"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "GEN_TABLE"."REMARK" IS '备注';
COMMENT ON TABLE "GEN_TABLE_COLUMN" IS '代码生成业务表字段';

-- ----------------------------
-- Records of GEN_TABLE_COLUMN
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table GEN_TABLE_COLUMN
-- ----------------------------
ALTER TABLE "GEN_TABLE_COLUMN" ADD CONSTRAINT "SYS_C0012488" PRIMARY KEY ("COLUMN_ID");

-- ----------------------------
-- Checks structure for table GEN_TABLE_COLUMN
-- ----------------------------
ALTER TABLE "GEN_TABLE_COLUMN" ADD CONSTRAINT "SYS_C0011976" CHECK ("COLUMN_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table GEN_TABLE_COLUMN
-- ----------------------------
CREATE TRIGGER "GEN_TABLE_COLUMN_COLUMN_I_TRIG" BEFORE INSERT OR UPDATE ON "GEN_TABLE_COLUMN" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.column_id IS NULL THEN
SELECT  gen_table_column_column_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(column_id),0) INTO v_newVal FROM gen_table_column;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT gen_table_column_column_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.column_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_ALERT
-- ----------------------------
DROP TABLE "IOT_ALERT";
CREATE TABLE "IOT_ALERT" (
   "ALERT_ID" NUMBER(38,0) NOT NULL,
   "ALERT_NAME" VARCHAR2(64 CHAR) NOT NULL,
   "ALERT_LEVEL" NUMBER(10,0) NOT NULL,
   "STATUS" NUMBER(10,0) NOT NULL,
   "NOTIFY" VARCHAR2(85 CHAR),
   "CREATE_BY" VARCHAR2(64 CHAR) DEFAULT '',
   "CREATE_TIME" TIMESTAMP(6),
   "UPDATE_BY" VARCHAR2(64 CHAR) DEFAULT '',
   "UPDATE_TIME" TIMESTAMP(6),
   "REMARK" VARCHAR2(500 CHAR),
   "TENANT_ID" NUMBER(38,0),
   "TENANT_NAME" VARCHAR2(30 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_ALERT"."ALERT_ID" IS '告警ID';
COMMENT ON COLUMN "IOT_ALERT"."ALERT_NAME" IS '告警名称';
COMMENT ON COLUMN "IOT_ALERT"."ALERT_LEVEL" IS '告警级别（1=提醒通知，2=轻微问题，3=严重警告）';
COMMENT ON COLUMN "IOT_ALERT"."STATUS" IS '告警状态（1-启动，2-停止）';
COMMENT ON COLUMN "IOT_ALERT"."NOTIFY" IS '通知方式[1,2,3]';
COMMENT ON COLUMN "IOT_ALERT"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_ALERT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_ALERT"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_ALERT"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_ALERT"."REMARK" IS '备注';
COMMENT ON COLUMN "IOT_ALERT"."TENANT_ID" IS '租户id';
COMMENT ON COLUMN "IOT_ALERT"."TENANT_NAME" IS '租户名称';
COMMENT ON TABLE "IOT_ALERT" IS '设备告警';

-- ----------------------------
-- Records of IOT_ALERT
-- ----------------------------
INSERT INTO "IOT_ALERT" VALUES ('1', '温度告警', '2', '1', '1', ' ', TO_TIMESTAMP('2023-08-31 09:10:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2024-01-28 20:05:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, '1', 'admin');
INSERT INTO "IOT_ALERT" VALUES ('2', '湿度告警', '3', '1', '1', ' ', TO_TIMESTAMP('2023-08-31 09:10:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2024-01-28 20:05:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, '1', 'admin');
INSERT INTO "IOT_ALERT" VALUES ('3', '电子围栏', '1', '1', '1', ' ', TO_TIMESTAMP('2023-11-10 09:39:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2024-02-07 11:54:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, '1', 'admin');

-- ----------------------------
-- Primary Key structure for table IOT_ALERT
-- ----------------------------
ALTER TABLE "IOT_ALERT" ADD CONSTRAINT "SYS_C0012489" PRIMARY KEY ("ALERT_ID");

-- ----------------------------
-- Checks structure for table IOT_ALERT
-- ----------------------------
ALTER TABLE "IOT_ALERT" ADD CONSTRAINT "SYS_C0011977" CHECK ("ALERT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_ALERT" ADD CONSTRAINT "SYS_C0011978" CHECK ("ALERT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_ALERT" ADD CONSTRAINT "SYS_C0011979" CHECK ("ALERT_LEVEL" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_ALERT" ADD CONSTRAINT "SYS_C0011980" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_ALERT
-- ----------------------------
CREATE TRIGGER "IOT_ALERT_ALERT_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_ALERT" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.alert_id IS NULL THEN
SELECT  iot_alert_alert_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(alert_id),0) INTO v_newVal FROM iot_alert;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_alert_alert_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.alert_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_ALERT_LOG
-- ----------------------------
DROP TABLE "IOT_ALERT_LOG";
CREATE TABLE "IOT_ALERT_LOG" (
   "ALERT_LOG_ID" NUMBER(38,0) NOT NULL,
   "ALERT_NAME" VARCHAR2(64 CHAR) NOT NULL,
   "ALERT_LEVEL" NUMBER(10,0) NOT NULL,
   "STATUS" NUMBER(10,0) NOT NULL,
   "SERIAL_NUMBER" VARCHAR2(64 CHAR) NOT NULL,
   "PRODUCT_ID" NUMBER(38,0) NOT NULL,
   "DETAIL" CLOB,
   "CREATE_BY" VARCHAR2(64 CHAR) DEFAULT '',
   "CREATE_TIME" TIMESTAMP(6),
   "UPDATE_BY" VARCHAR2(64 CHAR) DEFAULT '',
   "UPDATE_TIME" TIMESTAMP(6),
   "REMARK" VARCHAR2(500 CHAR),
   "USER_ID" NUMBER(38,0),
   "DEVICE_NAME" VARCHAR2(340 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_ALERT_LOG"."ALERT_LOG_ID" IS '告警日志ID';
COMMENT ON COLUMN "IOT_ALERT_LOG"."ALERT_NAME" IS '告警名称';
COMMENT ON COLUMN "IOT_ALERT_LOG"."ALERT_LEVEL" IS '告警级别（1=提醒通知，2=轻微问题，3=严重警告）';
COMMENT ON COLUMN "IOT_ALERT_LOG"."STATUS" IS '处理状态(1=不需要处理,2=未处理,3=已处理)';
COMMENT ON COLUMN "IOT_ALERT_LOG"."SERIAL_NUMBER" IS '设备编号';
COMMENT ON COLUMN "IOT_ALERT_LOG"."PRODUCT_ID" IS '产品ID';
COMMENT ON COLUMN "IOT_ALERT_LOG"."DETAIL" IS '告警详情（对应物模型）';
COMMENT ON COLUMN "IOT_ALERT_LOG"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_ALERT_LOG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_ALERT_LOG"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_ALERT_LOG"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_ALERT_LOG"."REMARK" IS '备注';
COMMENT ON COLUMN "IOT_ALERT_LOG"."USER_ID" IS '用户id';
COMMENT ON TABLE "IOT_ALERT_LOG" IS '设备告警日志';

-- ----------------------------
-- Records of IOT_ALERT_LOG
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_ALERT_LOG
-- ----------------------------
ALTER TABLE "IOT_ALERT_LOG" ADD CONSTRAINT "SYS_C0012490" PRIMARY KEY ("ALERT_LOG_ID");

-- ----------------------------
-- Checks structure for table IOT_ALERT_LOG
-- ----------------------------
ALTER TABLE "IOT_ALERT_LOG" ADD CONSTRAINT "SYS_C0011981" CHECK ("ALERT_LOG_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_ALERT_LOG" ADD CONSTRAINT "SYS_C0011982" CHECK ("ALERT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_ALERT_LOG" ADD CONSTRAINT "SYS_C0011983" CHECK ("ALERT_LEVEL" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_ALERT_LOG" ADD CONSTRAINT "SYS_C0011984" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_ALERT_LOG" ADD CONSTRAINT "SYS_C0011985" CHECK ("SERIAL_NUMBER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_ALERT_LOG" ADD CONSTRAINT "SYS_C0011986" CHECK ("PRODUCT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_ALERT_LOG
-- ----------------------------
CREATE TRIGGER "IOT_ALERT_LOG_ALERT_LOG_I_TRIG" BEFORE INSERT OR UPDATE ON "IOT_ALERT_LOG" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.alert_log_id IS NULL THEN
SELECT  iot_alert_log_alert_log_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(alert_log_id),0) INTO v_newVal FROM iot_alert_log;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_alert_log_alert_log_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.alert_log_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_ALERT_NOTIFY_TEMPLATE
-- ----------------------------
DROP TABLE "IOT_ALERT_NOTIFY_TEMPLATE";
CREATE TABLE "IOT_ALERT_NOTIFY_TEMPLATE" (
    "ALERT_ID" NUMBER(38,0) NOT NULL,
    "NOTIFY_TEMPLATE_ID" NUMBER(38,0) NOT NULL
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_ALERT_NOTIFY_TEMPLATE"."ALERT_ID" IS '告警id';
COMMENT ON COLUMN "IOT_ALERT_NOTIFY_TEMPLATE"."NOTIFY_TEMPLATE_ID" IS '通知模版id';
COMMENT ON TABLE "IOT_ALERT_NOTIFY_TEMPLATE" IS '告警通知模版关联表';

-- ----------------------------
-- Records of IOT_ALERT_NOTIFY_TEMPLATE
-- ----------------------------
INSERT INTO "IOT_ALERT_NOTIFY_TEMPLATE" VALUES ('3', '4');

-- ----------------------------
-- Primary Key structure for table IOT_ALERT_NOTIFY_TEMPLATE
-- ----------------------------
ALTER TABLE "IOT_ALERT_NOTIFY_TEMPLATE" ADD CONSTRAINT "SYS_C0012491" PRIMARY KEY ("ALERT_ID", "NOTIFY_TEMPLATE_ID");

-- ----------------------------
-- Checks structure for table IOT_ALERT_NOTIFY_TEMPLATE
-- ----------------------------
ALTER TABLE "IOT_ALERT_NOTIFY_TEMPLATE" ADD CONSTRAINT "SYS_C0011987" CHECK ("ALERT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_ALERT_NOTIFY_TEMPLATE" ADD CONSTRAINT "SYS_C0011988" CHECK ("NOTIFY_TEMPLATE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for IOT_ALERT_SCENE
-- ----------------------------
DROP TABLE "IOT_ALERT_SCENE";
CREATE TABLE "IOT_ALERT_SCENE" (
   "ALERT_ID" NUMBER(38,0) NOT NULL,
   "SCENE_ID" NUMBER(38,0) NOT NULL
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_ALERT_SCENE"."ALERT_ID" IS '告警ID';
COMMENT ON COLUMN "IOT_ALERT_SCENE"."SCENE_ID" IS '场景ID';
COMMENT ON TABLE "IOT_ALERT_SCENE" IS '告警场景表';

-- ----------------------------
-- Records of IOT_ALERT_SCENE
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_ALERT_SCENE
-- ----------------------------
ALTER TABLE "IOT_ALERT_SCENE" ADD CONSTRAINT "SYS_C0012492" PRIMARY KEY ("ALERT_ID", "SCENE_ID");

-- ----------------------------
-- Checks structure for table IOT_ALERT_SCENE
-- ----------------------------
ALTER TABLE "IOT_ALERT_SCENE" ADD CONSTRAINT "SYS_C0011989" CHECK ("ALERT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_ALERT_SCENE" ADD CONSTRAINT "SYS_C0011990" CHECK ("SCENE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for IOT_CATEGORY
-- ----------------------------
DROP TABLE "IOT_CATEGORY";
CREATE TABLE "IOT_CATEGORY" (
  "CATEGORY_ID" NUMBER(38,0) NOT NULL,
  "CATEGORY_NAME" VARCHAR2(64 CHAR) NOT NULL,
  "TENANT_ID" NUMBER(38,0) NOT NULL,
  "TENANT_NAME" VARCHAR2(30 CHAR) NOT NULL,
  "IS_SYS" NUMBER(10,0) NOT NULL DEFAULT 0,
  "PARENT_ID" NUMBER(38,0),
  "ORDER_NUM" NUMBER(10,0),
  "DEL_FLAG" CHAR(1 CHAR) DEFAULT '0',
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_CATEGORY"."CATEGORY_ID" IS '产品分类ID';
COMMENT ON COLUMN "IOT_CATEGORY"."CATEGORY_NAME" IS '产品分类名称';
COMMENT ON COLUMN "IOT_CATEGORY"."TENANT_ID" IS '租户ID';
COMMENT ON COLUMN "IOT_CATEGORY"."TENANT_NAME" IS '租户名称';
COMMENT ON COLUMN "IOT_CATEGORY"."IS_SYS" IS '是否系统通用（0-否，1-是）';
COMMENT ON COLUMN "IOT_CATEGORY"."PARENT_ID" IS '父级ID';
COMMENT ON COLUMN "IOT_CATEGORY"."ORDER_NUM" IS '显示顺序';
COMMENT ON COLUMN "IOT_CATEGORY"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "IOT_CATEGORY"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_CATEGORY"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_CATEGORY"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_CATEGORY"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_CATEGORY"."REMARK" IS '备注';
COMMENT ON TABLE "IOT_CATEGORY" IS '产品分类';

-- ----------------------------
-- Records of IOT_CATEGORY
-- ----------------------------
INSERT INTO "IOT_CATEGORY" VALUES ('1', '电工照明', '1', 'admin', '1', '0', '1', '0', ' ', TO_TIMESTAMP('2022-03-01 11:44:37.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-04-10 01:12:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '例如：通断器、开关、插座、窗帘、灯');
INSERT INTO "IOT_CATEGORY" VALUES ('2', '家居安防', '1', 'admin', '1', '0', '2', '0', ' ', TO_TIMESTAMP('2021-12-18 14:46:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2021-12-18 14:49:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '例如：智能门锁、摄像头、智能窗帘');
INSERT INTO "IOT_CATEGORY" VALUES ('3', '环境电器', '1', 'admin', '1', '0', '3', '0', ' ', TO_TIMESTAMP('2021-12-18 14:50:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-04-10 01:12:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '例如：加湿器、风扇、扫地机器人');
INSERT INTO "IOT_CATEGORY" VALUES ('4', '大家电', '1', 'admin', '1', '0', '4', '0', ' ', TO_TIMESTAMP('2021-12-18 14:50:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2021-12-18 14:52:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '例如：冰箱、热水器、电视');
INSERT INTO "IOT_CATEGORY" VALUES ('5', '厨房电器', '1', 'admin', '1', '0', '5', '0', ' ', TO_TIMESTAMP('2021-12-18 14:51:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2021-12-18 14:52:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '例如：油烟机、烤箱、电饭煲');
INSERT INTO "IOT_CATEGORY" VALUES ('6', '个护健康', '1', 'admin', '1', '0', '6', '0', ' ', TO_TIMESTAMP('2021-12-18 14:52:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2021-12-18 14:52:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '例如：洗衣机、按摩椅');
INSERT INTO "IOT_CATEGORY" VALUES ('7', '其他', '1', 'admin', '1', '0', '7', '0', ' ', TO_TIMESTAMP('2021-12-18 14:52:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2021-12-20 15:04:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '其他');

-- ----------------------------
-- Primary Key structure for table IOT_CATEGORY
-- ----------------------------
ALTER TABLE "IOT_CATEGORY" ADD CONSTRAINT "SYS_C0012493" PRIMARY KEY ("CATEGORY_ID");

-- ----------------------------
-- Checks structure for table IOT_CATEGORY
-- ----------------------------
ALTER TABLE "IOT_CATEGORY" ADD CONSTRAINT "SYS_C0011991" CHECK ("CATEGORY_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_CATEGORY" ADD CONSTRAINT "SYS_C0011992" CHECK ("CATEGORY_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_CATEGORY" ADD CONSTRAINT "SYS_C0011993" CHECK ("TENANT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_CATEGORY" ADD CONSTRAINT "SYS_C0011994" CHECK ("TENANT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_CATEGORY" ADD CONSTRAINT "SYS_C0011995" CHECK ("IS_SYS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_CATEGORY
-- ----------------------------
CREATE TRIGGER "IOT_CATEGORY_CATEGORY_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_CATEGORY" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.category_id IS NULL THEN
SELECT  iot_category_category_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(category_id),0) INTO v_newVal FROM iot_category;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_category_category_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.category_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_DEVICE
-- ----------------------------
DROP TABLE "IOT_DEVICE";
CREATE TABLE "IOT_DEVICE" (
  "DEVICE_ID" NUMBER(38,0) NOT NULL,
  "DEVICE_NAME" VARCHAR2(64 CHAR) NOT NULL,
  "PRODUCT_ID" NUMBER(38,0) NOT NULL,
  "PRODUCT_NAME" VARCHAR2(64 CHAR) NOT NULL,
  "TENANT_ID" NUMBER(38,0) NOT NULL,
  "TENANT_NAME" VARCHAR2(30 CHAR) NOT NULL,
  "SERIAL_NUMBER" VARCHAR2(64 CHAR) NOT NULL,
  "GW_DEV_CODE" VARCHAR2(64 CHAR),
  "FIRMWARE_VERSION" NUMBER,
  "STATUS" NUMBER(10,0) NOT NULL DEFAULT 1,
  "RSSI" NUMBER(10,0),
  "IS_SHADOW" NUMBER(10,0),
  "LOCATION_WAY" NUMBER(10,0),
  "THINGS_MODEL_VALUE" CLOB,
  "NETWORK_ADDRESS" VARCHAR2(340 CHAR),
  "NETWORK_IP" VARCHAR2(42 CHAR),
  "LONGITUDE" NUMBER,
  "LATITUDE" NUMBER,
  "ACTIVE_TIME" TIMESTAMP(6),
  "SUMMARY" CLOB,
  "IMG_URL" VARCHAR2(255 CHAR),
  "DEL_FLAG" CHAR(1 CHAR) default '0',
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR),
  "IS_SIMULATE" NUMBER(10,0) DEFAULT 0,
  "SLAVE_ID" NUMBER(10,0)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_DEVICE"."DEVICE_ID" IS '设备ID';
COMMENT ON COLUMN "IOT_DEVICE"."DEVICE_NAME" IS '设备名称';
COMMENT ON COLUMN "IOT_DEVICE"."PRODUCT_ID" IS '产品ID';
COMMENT ON COLUMN "IOT_DEVICE"."PRODUCT_NAME" IS '产品名称';
COMMENT ON COLUMN "IOT_DEVICE"."TENANT_ID" IS '租户ID';
COMMENT ON COLUMN "IOT_DEVICE"."TENANT_NAME" IS '租户名称';
COMMENT ON COLUMN "IOT_DEVICE"."SERIAL_NUMBER" IS '设备编号';
COMMENT ON COLUMN "IOT_DEVICE"."GW_DEV_CODE" IS '子设备网关编号';
COMMENT ON COLUMN "IOT_DEVICE"."FIRMWARE_VERSION" IS '固件版本';
COMMENT ON COLUMN "IOT_DEVICE"."STATUS" IS '设备状态（1-未激活，2-禁用，3-在线，4-离线）';
COMMENT ON COLUMN "IOT_DEVICE"."RSSI" IS '"信号强度（信号极好4格[-55— 0]，信号好3格[-70— -55]，信号一般2格[-85— -70]，信号差1格[-100— -85]）"';
COMMENT ON COLUMN "IOT_DEVICE"."IS_SHADOW" IS '是否启用设备影子(0=禁用，1=启用)';
COMMENT ON COLUMN "IOT_DEVICE"."LOCATION_WAY" IS '定位方式(1=ip自动定位，2=设备定位，3=自定义)';
COMMENT ON COLUMN "IOT_DEVICE"."THINGS_MODEL_VALUE" IS '物模型值';
COMMENT ON COLUMN "IOT_DEVICE"."NETWORK_ADDRESS" IS '设备所在地址';
COMMENT ON COLUMN "IOT_DEVICE"."NETWORK_IP" IS '设备入网IP';
COMMENT ON COLUMN "IOT_DEVICE"."LONGITUDE" IS '设备经度';
COMMENT ON COLUMN "IOT_DEVICE"."LATITUDE" IS '设备纬度';
COMMENT ON COLUMN "IOT_DEVICE"."ACTIVE_TIME" IS '激活时间';
COMMENT ON COLUMN "IOT_DEVICE"."SUMMARY" IS '设备摘要，格式[{"name":"device"},{"chip":"esp8266"}]';
COMMENT ON COLUMN "IOT_DEVICE"."IMG_URL" IS '图片地址';
COMMENT ON COLUMN "IOT_DEVICE"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "IOT_DEVICE"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_DEVICE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_DEVICE"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_DEVICE"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_DEVICE"."REMARK" IS '备注';
COMMENT ON COLUMN "IOT_DEVICE"."IS_SIMULATE" IS '是否是模拟设备';
COMMENT ON COLUMN "IOT_DEVICE"."SLAVE_ID" IS '从机id';
COMMENT ON TABLE "IOT_DEVICE" IS '设备表';

-- ----------------------------
-- Records of IOT_DEVICE
-- ----------------------------
INSERT INTO "IOT_DEVICE" VALUES (108, '温湿度开关', 41, '智能开关', 1, 'admin', 'D1ELV3A5TOJS', NULL, 1.00, 4, -51, 1, 1, '[{\"id\": \"irc\", \"name\": \"射频遥控\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"switch\", \"name\": \"设备开关\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"report_monitor\", \"name\": \"上报数据\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"humidity\", \"name\": \"空气湿度\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"co2\", \"name\": \"二氧化碳\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"light_color\", \"name\": \"灯光色值\", \"value\": \" , , , \", \"shadow\": \" , , , \", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"gear\", \"name\": \"运行档位\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"reset\", \"name\": \"设备重启\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"status\", \"name\": \"上报状态\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"temperature\", \"name\": \"空气温度\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"message\", \"name\": \"屏显消息\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"brightness\", \"name\": \"室内亮度\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}]', '内网IP', '127.0.0.1', 113.128512, 23.027759, TO_TIMESTAMP('2023-02-26 00:00:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '{\"chip\": \"esp8266\", \"name\": \"wumei-smart\", \"author\": \"kerwincui\", \"create\": \"2022-06-06\", \"version\": 1.6}', NULL, '0', '', TO_TIMESTAMP('2025-02-25 23:15:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '', TO_TIMESTAMP('2024-02-07 02:12:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_DEVICE" VALUES (109, '网关设备', 96, '网关产品', 1, 'admin', 'D1PGLPG58KZ2', NULL, 1.00, 3, -53, 1, 3, '[{\"id\": \"category_gear\", \"name\": \"运行档位\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"switch\", \"name\": \"设备开关\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"category_switch\", \"name\": \"设备开关\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"category_light\", \"ts\": \"2023-09-25 17:56:08.848\", \"name\": \"光照\", \"value\": \"68\", \"shadow\": \"68\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"device_report_monitor\", \"name\": \"上报监测数据\", \"value\": \" , , , , , , \", \"shadow\": \" , , , , , , \", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"light_color\", \"name\": \"灯光色值\", \"value\": \" , , , \", \"shadow\": \" , , , \", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"gear\", \"name\": \"运行档位\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"message\", \"name\": \"屏显消息\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"temperature\", \"ts\": \"2023-09-25 17:56:08.582\", \"name\": \"空气温度\", \"value\": \"23.69\", \"shadow\": \"23.69\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"device_irc\", \"name\": \"射频遥控\", \"value\": \" , , , , , , \", \"shadow\": \" , , , , , , \", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"brightness\", \"ts\": \"2023-09-25 17:56:08.671\", \"name\": \"室内亮度\", \"value\": \"5387\", \"shadow\": \"5387\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"report_monitor\", \"name\": \"上报监测数据\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"device_switch\", \"ts\": \"2023-09-25 17:56:26.188\", \"name\": \"设备开关\", \"value\": \"1,1,1, ,1,1, \", \"shadow\": \"1,1,1, ,1,1, \", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"category_temperature\", \"ts\": \"2023-09-25 17:56:09.203\", \"name\": \"空气温度-只读\", \"value\": \"95\", \"shadow\": \"95\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"device_co2\", \"ts\": \"2023-09-25 17:56:11.229\", \"name\": \"二氧化碳\", \"value\": \"3780,2612,2145,3988,5697, , \", \"shadow\": \"3780,2612,2145,3988,5697, , \", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"device_gear\", \"ts\": \"2023-09-25 17:56:28.066\", \"name\": \"运行档位\", \"value\": \"0,0,0, ,0,0, \", \"shadow\": \"0,0,0, ,0,0, \", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"category_humidity\", \"ts\": \"2023-09-25 17:56:09.025\", \"name\": \"空气湿度\", \"value\": \"90\", \"shadow\": \"90\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"category_report_monitor\", \"name\": \"上报监测数据\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"category_irc\", \"name\": \"射频遥控\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"reset\", \"name\": \"设备重启\", \"value\": \"\", \"shadow\": \"\", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"device_temperature\", \"ts\": \"2023-09-25 17:56:11.45\", \"name\": \"空气温度-只读\", \"value\": \"86,39,4,80,52, , \", \"shadow\": \"86,39,4,80,52, , \", \"isChart\": 0, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}]', '云南省曲靖市 移通', '183.225.206.92', 104.802435, 26.496407, TO_TIMESTAMP('2023-02-26 00:00:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '{\"chip\": \"esp8266\", \"name\": \"wumei-smart\", \"author\": \"kerwincui\", \"create\": \"2022-06-06\", \"version\": 1.6}', NULL, '0', '', TO_TIMESTAMP('2025-02-25 23:17:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '', TO_TIMESTAMP('2024-02-07 01:47:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_DEVICE" VALUES (228, '★网关产品10', 96, '★网关产品', 1, 'admin', 'D1PGLPG58K77', NULL, 1.00, 3, 0, 0, 1, NULL, '中国', '183.225.43.216', 115.918972, 29.213654, TO_TIMESTAMP('2024-02-07 15:27:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, '0', '', TO_TIMESTAMP('2024-02-07 15:27:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '', NULL, NULL, 0, NULL);
-- ----------------------------
-- Primary Key structure for table IOT_DEVICE
-- ----------------------------
ALTER TABLE "IOT_DEVICE" ADD CONSTRAINT "SYS_C0012494" PRIMARY KEY ("DEVICE_ID");

-- ----------------------------
-- Checks structure for table IOT_DEVICE
-- ----------------------------
ALTER TABLE "IOT_DEVICE" ADD CONSTRAINT "SYS_C0011996" CHECK ("DEVICE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE" ADD CONSTRAINT "SYS_C0011997" CHECK ("DEVICE_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE" ADD CONSTRAINT "SYS_C0011998" CHECK ("PRODUCT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE" ADD CONSTRAINT "SYS_C0011999" CHECK ("PRODUCT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE" ADD CONSTRAINT "SYS_C0012000" CHECK ("TENANT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE" ADD CONSTRAINT "SYS_C0012001" CHECK ("TENANT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE" ADD CONSTRAINT "SYS_C0012002" CHECK ("SERIAL_NUMBER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE" ADD CONSTRAINT "SYS_C0012003" CHECK ("FIRMWARE_VERSION" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE" ADD CONSTRAINT "SYS_C0012004" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_DEVICE
-- ----------------------------
CREATE TRIGGER "IOT_DEVICE_DEVICE_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_DEVICE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.device_id IS NULL THEN
SELECT  iot_device_device_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(device_id),0) INTO v_newVal FROM iot_device;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_device_device_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.device_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_DEVICE_ALERT_USER
-- ----------------------------
DROP TABLE "IOT_DEVICE_ALERT_USER";
CREATE TABLE "IOT_DEVICE_ALERT_USER" (
   "DEVICE_ID" NUMBER(38,0) NOT NULL,
   "USER_ID" NUMBER(38,0) NOT NULL
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_DEVICE_ALERT_USER"."DEVICE_ID" IS '设备id';
COMMENT ON COLUMN "IOT_DEVICE_ALERT_USER"."USER_ID" IS '用户id';
COMMENT ON TABLE "IOT_DEVICE_ALERT_USER" IS '设备告警用户表';

-- ----------------------------
-- Records of IOT_DEVICE_ALERT_USER
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_DEVICE_ALERT_USER
-- ----------------------------
ALTER TABLE "IOT_DEVICE_ALERT_USER" ADD CONSTRAINT "SYS_C0012495" PRIMARY KEY ("DEVICE_ID", "USER_ID");

-- ----------------------------
-- Checks structure for table IOT_DEVICE_ALERT_USER
-- ----------------------------
ALTER TABLE "IOT_DEVICE_ALERT_USER" ADD CONSTRAINT "SYS_C0012005" CHECK ("DEVICE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE_ALERT_USER" ADD CONSTRAINT "SYS_C0012006" CHECK ("USER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for IOT_DEVICE_GROUP
-- ----------------------------
DROP TABLE "IOT_DEVICE_GROUP";
CREATE TABLE "IOT_DEVICE_GROUP" (
   "DEVICE_ID" NUMBER(38,0) NOT NULL,
   "GROUP_ID" NUMBER(38,0) NOT NULL
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_DEVICE_GROUP"."DEVICE_ID" IS '设备ID';
COMMENT ON COLUMN "IOT_DEVICE_GROUP"."GROUP_ID" IS '分组ID';
COMMENT ON TABLE "IOT_DEVICE_GROUP" IS '设备分组表';

-- ----------------------------
-- Records of IOT_DEVICE_GROUP
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_DEVICE_GROUP
-- ----------------------------
ALTER TABLE "IOT_DEVICE_GROUP" ADD CONSTRAINT "SYS_C0012496" PRIMARY KEY ("DEVICE_ID", "GROUP_ID");

-- ----------------------------
-- Checks structure for table IOT_DEVICE_GROUP
-- ----------------------------
ALTER TABLE "IOT_DEVICE_GROUP" ADD CONSTRAINT "SYS_C0012007" CHECK ("DEVICE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE_GROUP" ADD CONSTRAINT "SYS_C0012008" CHECK ("GROUP_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for IOT_DEVICE_JOB
-- ----------------------------
DROP TABLE "IOT_DEVICE_JOB";
CREATE TABLE "IOT_DEVICE_JOB" (
  "JOB_ID" NUMBER(38,0) NOT NULL,
  "JOB_NAME" VARCHAR2(85 CHAR) NOT NULL,
  "JOB_GROUP" VARCHAR2(85 CHAR) NOT NULL,
  "CRON_EXPRESSION" VARCHAR2(340 CHAR),
  "MISFIRE_POLICY" VARCHAR2(26 CHAR) DEFAULT '3',
  "CONCURRENT" CHAR(1 CHAR) DEFAULT '1',
  "STATUS" NUMBER(10,0),
  "CREATE_BY" VARCHAR2(85 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(85 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(666 CHAR),
  "DEVICE_ID" NUMBER(38,0),
  "SERIAL_NUMBER" VARCHAR2(64 CHAR),
  "DEVICE_NAME" VARCHAR2(85 CHAR),
  "IS_ADVANCE" NUMBER(10,0),
  "ACTIONS" CLOB,
  "JOB_TYPE" NUMBER(10,0),
  "PRODUCT_ID" NUMBER(38,0),
  "PRODUCT_NAME" VARCHAR2(64 CHAR),
  "SCENE_ID" NUMBER(38,0),
  "ALERT_ID" NUMBER(38,0),
  "ALERT_TRIGGER" CLOB,
  "DATASOURCE_ID" NUMBER(38,0)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_DEVICE_JOB"."JOB_ID" IS '任务ID';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."JOB_NAME" IS '任务名称';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."JOB_GROUP" IS '任务组名';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."CRON_EXPRESSION" IS 'cron执行表达式';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."MISFIRE_POLICY" IS '计划执行错误策略（1立即执行 2执行一次 3放弃执行）';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."CONCURRENT" IS '是否并发执行（0允许 1禁止）';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."STATUS" IS '状态（0正常 1暂停）';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."REMARK" IS '备注信息';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."DEVICE_ID" IS '设备ID';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."SERIAL_NUMBER" IS '设备编号';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."DEVICE_NAME" IS '设备名称';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."IS_ADVANCE" IS '是否详细corn表达式（1=是，0=否）';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."ACTIONS" IS '执行的动作集合';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."JOB_TYPE" IS '任务类型（1=设备定时，2=设备告警，3=场景联动）';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."PRODUCT_ID" IS '产品ID';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."PRODUCT_NAME" IS '产品名称';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."SCENE_ID" IS '场景联动ID';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."ALERT_ID" IS '告警ID';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."ALERT_TRIGGER" IS '定时告警触发器';
COMMENT ON COLUMN "IOT_DEVICE_JOB"."DATASOURCE_ID" IS '执行id,可共用，通过jobType区分';
COMMENT ON TABLE "IOT_DEVICE_JOB" IS '设备定时';

-- ----------------------------
-- Records of IOT_DEVICE_JOB
-- ----------------------------
INSERT INTO "iot_device_job" VALUES (1, 'P', 'DEFAULT', '0 08 11 ? * 1,2,3,4,5,6,7', '2', '1', 0, 'admin', TO_TIMESTAMP('2023-04-15 11:08:37.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '', NULL, '', 108, 'D1ELV3A5TOJS', '★温湿度开关', 0, '[{\"id\": \"gear\", \"name\": \"运行档位\", \"type\": 2, \"value\": \"2\", \"deviceId\": 108, \"deviceName\": \"★温湿度开关\"}]', 1, 41, '★智能开关产品', NULL, NULL, NULL, NULL);

-- ----------------------------
-- Primary Key structure for table IOT_DEVICE_JOB
-- ----------------------------
ALTER TABLE "IOT_DEVICE_JOB" ADD CONSTRAINT "SYS_C0012497" PRIMARY KEY ("JOB_ID", "JOB_NAME", "JOB_GROUP");

-- ----------------------------
-- Checks structure for table IOT_DEVICE_JOB
-- ----------------------------
ALTER TABLE "IOT_DEVICE_JOB" ADD CONSTRAINT "SYS_C0012009" CHECK ("JOB_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE_JOB" ADD CONSTRAINT "SYS_C0012010" CHECK ("JOB_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE_JOB" ADD CONSTRAINT "SYS_C0012011" CHECK ("JOB_GROUP" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_DEVICE_JOB
-- ----------------------------
CREATE TRIGGER "IOT_DEVICE_JOB_JOB_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_DEVICE_JOB" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.job_id IS NULL THEN
SELECT  iot_device_job_job_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(job_id),0) INTO v_newVal FROM iot_device_job;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_device_job_job_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.job_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_DEVICE_LOG
-- ----------------------------
DROP TABLE "IOT_DEVICE_LOG";
CREATE TABLE "IOT_DEVICE_LOG" (
   "LOG_ID" NUMBER(38,0) NOT NULL,
   "IDENTIFY" VARCHAR2(64 CHAR) NOT NULL,
   "MODEL_NAME" VARCHAR2(255 CHAR),
   "LOG_TYPE" NUMBER(10,0) NOT NULL,
   "LOG_VALUE" VARCHAR2(64 CHAR) NOT NULL,
   "DEVICE_ID" NUMBER(38,0),
   "DEVICE_NAME" VARCHAR2(64 CHAR),
   "SERIAL_NUMBER" VARCHAR2(64 CHAR),
   "IS_MONITOR" NUMBER(10,0) NOT NULL DEFAULT 0,
   "MODE" NUMBER(10,0) NOT NULL DEFAULT 0,
   "USER_ID" NUMBER(38,0),
   "USER_NAME" VARCHAR2(30 CHAR),
   "TENANT_ID" NUMBER(38,0),
   "TENANT_NAME" VARCHAR2(30 CHAR),
   "CREATE_BY" VARCHAR2(64 CHAR),
   "CREATE_TIME" TIMESTAMP(6),
   "REMARK" VARCHAR2(200 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_DEVICE_LOG"."LOG_ID" IS '设备监测信息ID';
COMMENT ON COLUMN "IOT_DEVICE_LOG"."IDENTIFY" IS '标识符';
COMMENT ON COLUMN "IOT_DEVICE_LOG"."MODEL_NAME" IS '物模型名称';
COMMENT ON COLUMN "IOT_DEVICE_LOG"."LOG_TYPE" IS '类型（1=属性上报，2=调用功能，3=事件上报，4=设备升级，5=设备上线，6=设备离线）';
COMMENT ON COLUMN "IOT_DEVICE_LOG"."LOG_VALUE" IS '日志值';
COMMENT ON COLUMN "IOT_DEVICE_LOG"."DEVICE_ID" IS '设备ID';
COMMENT ON COLUMN "IOT_DEVICE_LOG"."DEVICE_NAME" IS '设备名称';
COMMENT ON COLUMN "IOT_DEVICE_LOG"."SERIAL_NUMBER" IS '设备编号';
COMMENT ON COLUMN "IOT_DEVICE_LOG"."IS_MONITOR" IS '是否监测数据（1=是，0=否）';
COMMENT ON COLUMN "IOT_DEVICE_LOG"."MODE_" IS '模式(1=影子模式，2=在线模式，3=其他)';
COMMENT ON COLUMN "IOT_DEVICE_LOG"."USER_ID" IS '用户ID';
COMMENT ON COLUMN "IOT_DEVICE_LOG"."USER_NAME" IS '用户昵称';
COMMENT ON COLUMN "IOT_DEVICE_LOG"."TENANT_ID" IS '租户ID';
COMMENT ON COLUMN "IOT_DEVICE_LOG"."TENANT_NAME" IS '租户名称';
COMMENT ON COLUMN "IOT_DEVICE_LOG"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_DEVICE_LOG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_DEVICE_LOG"."REMARK" IS '备注';
COMMENT ON TABLE "IOT_DEVICE_LOG" IS '设备日志';

-- ----------------------------
-- Records of IOT_DEVICE_LOG
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_DEVICE_LOG
-- ----------------------------
ALTER TABLE "IOT_DEVICE_LOG" ADD CONSTRAINT "SYS_C0012498" PRIMARY KEY ("LOG_ID");

-- ----------------------------
-- Checks structure for table IOT_DEVICE_LOG
-- ----------------------------
ALTER TABLE "IOT_DEVICE_LOG" ADD CONSTRAINT "SYS_C0012012" CHECK ("LOG_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE_LOG" ADD CONSTRAINT "SYS_C0012013" CHECK ("IDENTIFY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE_LOG" ADD CONSTRAINT "SYS_C0012014" CHECK ("LOG_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE_LOG" ADD CONSTRAINT "SYS_C0012015" CHECK ("LOG_VALUE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE_LOG" ADD CONSTRAINT "SYS_C0012016" CHECK ("IS_MONITOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE_LOG" ADD CONSTRAINT "SYS_C0012017" CHECK ("MODE_" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_DEVICE_LOG
-- ----------------------------
CREATE TRIGGER "IOT_DEVICE_LOG_LOG_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_DEVICE_LOG" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.log_id IS NULL THEN
SELECT  iot_device_log_log_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(log_id),0) INTO v_newVal FROM iot_device_log;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_device_log_log_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.log_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_DEVICE_RECORD
-- ----------------------------
DROP TABLE "IOT_DEVICE_RECORD";
CREATE TABLE "IOT_DEVICE_RECORD" (
   "ID" NUMBER(38,0) NOT NULL,
   "OPERATE_DEPT_ID" NUMBER(38,0),
   "TARGET_DEPT_ID" NUMBER(38,0),
   "PRODUCT_ID" NUMBER(38,0),
   "DEVICE_ID" NUMBER(38,0),
   "SERIAL_NUMBER" VARCHAR2(50 CHAR),
   "PARENT_ID" NUMBER(38,0),
   "TYPE" NUMBER(10,0) NOT NULL,
   "DISTRIBUTE_TYPE" NUMBER(10,0),
   "TOTAL" NUMBER(10,0),
   "SUCCESS_QUANTITY" NUMBER(10,0),
   "FAIL_QUANTITY" NUMBER(10,0),
   "STATUS" NUMBER(10,0),
   "TENANT_ID" NUMBER(38,0),
   "TENANT_NAME" VARCHAR2(30 CHAR),
   "CREATE_BY" VARCHAR2(50 CHAR),
   "CREATE_TIME" TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
   "UPDATE_BY" VARCHAR2(50 CHAR),
   "UPDATE_TIME" TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
   "DEL_FLAG" NUMBER(10,0) NOT NULL DEFAULT 0
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."ID" IS '主键id';
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."OPERATE_DEPT_ID" IS '操作者机构id';
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."TARGET_DEPT_ID" IS '目标机构id';
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."PRODUCT_ID" IS '产品id';
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."DEVICE_ID" IS '设备id';
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."SERIAL_NUMBER" IS '设备编号';
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."PARENT_ID" IS '父id';
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."TYPE" IS '设备记录类型（1-导入记录；2-回收记录；3-分配记录；4-分配详细记录）';
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."DISTRIBUTE_TYPE" IS '分配类型（1-选择分配；2-导入分配）';
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."TOTAL" IS '总数';
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."SUCCESS_QUANTITY" IS '成功数量';
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."FAIL_QUANTITY" IS '失败数量';
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."STATUS" IS '状态（0-失败；1-成功）';
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."TENANT_ID" IS '租户id';
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."TENANT_NAME" IS '租户名称';
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_DEVICE_RECORD"."DEL_FLAG" IS '逻辑删除标识';
COMMENT ON TABLE "IOT_DEVICE_RECORD" IS '设备记录';

-- ----------------------------
-- Records of IOT_DEVICE_RECORD
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_DEVICE_RECORD
-- ----------------------------
ALTER TABLE "IOT_DEVICE_RECORD" ADD CONSTRAINT "SYS_C0012499" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table IOT_DEVICE_RECORD
-- ----------------------------
ALTER TABLE "IOT_DEVICE_RECORD" ADD CONSTRAINT "SYS_C0012018" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE_RECORD" ADD CONSTRAINT "SYS_C0012019" CHECK ("TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE_RECORD" ADD CONSTRAINT "SYS_C0012020" CHECK ("CREATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE_RECORD" ADD CONSTRAINT "SYS_C0012021" CHECK ("UPDATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE_RECORD" ADD CONSTRAINT "SYS_C0012022" CHECK ("DEL_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_DEVICE_RECORD
-- ----------------------------
CREATE TRIGGER "IOT_DEVICE_RECORD_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_DEVICE_RECORD" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  iot_device_record_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM iot_device_record;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_device_record_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_DEVICE_SHARE
-- ----------------------------
DROP TABLE "IOT_DEVICE_SHARE";
CREATE TABLE "IOT_DEVICE_SHARE" (
  "DEVICE_ID" NUMBER(38,0) NOT NULL,
  "USER_ID" NUMBER(38,0) NOT NULL,
  "PHONENUMBER" VARCHAR2(20 CHAR),
  "PERMS" VARCHAR2(255 CHAR),
  "DEL_FLAG" CHAR(1 CHAR) DEFAULT '0',
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_DEVICE_SHARE"."DEVICE_ID" IS '设备id';
COMMENT ON COLUMN "IOT_DEVICE_SHARE"."USER_ID" IS '用户id';
COMMENT ON COLUMN "IOT_DEVICE_SHARE"."PHONENUMBER" IS '手机';
COMMENT ON COLUMN "IOT_DEVICE_SHARE"."PERMS" IS '用户物模型权限，多个以英文逗号分隔';
COMMENT ON COLUMN "IOT_DEVICE_SHARE"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "IOT_DEVICE_SHARE"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_DEVICE_SHARE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_DEVICE_SHARE"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_DEVICE_SHARE"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_DEVICE_SHARE"."REMARK" IS '备注';
COMMENT ON TABLE "IOT_DEVICE_SHARE" IS '设备分享';

-- ----------------------------
-- Records of IOT_DEVICE_SHARE
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_DEVICE_SHARE
-- ----------------------------
ALTER TABLE "IOT_DEVICE_SHARE" ADD CONSTRAINT "SYS_C0012500" PRIMARY KEY ("DEVICE_ID", "USER_ID");

-- ----------------------------
-- Checks structure for table IOT_DEVICE_SHARE
-- ----------------------------
ALTER TABLE "IOT_DEVICE_SHARE" ADD CONSTRAINT "SYS_C0012023" CHECK ("DEVICE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE_SHARE" ADD CONSTRAINT "SYS_C0012024" CHECK ("USER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for IOT_DEVICE_TEMPLATE
-- ----------------------------
DROP TABLE "IOT_DEVICE_TEMPLATE";
CREATE TABLE "IOT_DEVICE_TEMPLATE" (
   "ID" NUMBER(38,0) NOT NULL,
   "PRODUCT_ID" NUMBER(38,0),
   "TEMPLATE_ID" NUMBER(38,0)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_DEVICE_TEMPLATE"."ID" IS '自增id';
COMMENT ON COLUMN "IOT_DEVICE_TEMPLATE"."PRODUCT_ID" IS '产品id';
COMMENT ON COLUMN "IOT_DEVICE_TEMPLATE"."TEMPLATE_ID" IS '采集点模板id';
COMMENT ON TABLE "IOT_DEVICE_TEMPLATE" IS '设备采集点模板关联对象';

-- ----------------------------
-- Records of IOT_DEVICE_TEMPLATE
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_DEVICE_TEMPLATE
-- ----------------------------
ALTER TABLE "IOT_DEVICE_TEMPLATE" ADD CONSTRAINT "SYS_C0012501" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table IOT_DEVICE_TEMPLATE
-- ----------------------------
ALTER TABLE "IOT_DEVICE_TEMPLATE" ADD CONSTRAINT "SYS_C0012025" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_DEVICE_TEMPLATE
-- ----------------------------
CREATE TRIGGER "IOT_DEVICE_TEMPLATE_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_DEVICE_TEMPLATE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  iot_device_template_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM iot_device_template;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_device_template_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_DEVICE_USER
-- ----------------------------
DROP TABLE "IOT_DEVICE_USER";
CREATE TABLE "IOT_DEVICE_USER" (
  "DEVICE_ID" NUMBER(38,0) NOT NULL,
  "USER_ID" NUMBER(38,0) NOT NULL,
  "PHONENUMBER" VARCHAR2(11 CHAR),
  "DEL_FLAG" CHAR(1 CHAR) DEFAULT '0',
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_DEVICE_USER"."DEVICE_ID" IS '设备ID';
COMMENT ON COLUMN "IOT_DEVICE_USER"."USER_ID" IS '用户ID';
COMMENT ON COLUMN "IOT_DEVICE_USER"."PHONENUMBER" IS '手机号码';
COMMENT ON COLUMN "IOT_DEVICE_USER"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "IOT_DEVICE_USER"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_DEVICE_USER"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_DEVICE_USER"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_DEVICE_USER"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_DEVICE_USER"."REMARK" IS '备注';
COMMENT ON TABLE "IOT_DEVICE_USER" IS '设备用户';

-- ----------------------------
-- Records of IOT_DEVICE_USER
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_DEVICE_USER
-- ----------------------------
ALTER TABLE "IOT_DEVICE_USER" ADD CONSTRAINT "SYS_C0012502" PRIMARY KEY ("DEVICE_ID", "USER_ID");

-- ----------------------------
-- Checks structure for table IOT_DEVICE_USER
-- ----------------------------
ALTER TABLE "IOT_DEVICE_USER" ADD CONSTRAINT "SYS_C0012026" CHECK ("DEVICE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_DEVICE_USER" ADD CONSTRAINT "SYS_C0012027" CHECK ("USER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for IOT_EVENT_LOG
-- ----------------------------
DROP TABLE "IOT_EVENT_LOG";
CREATE TABLE "IOT_EVENT_LOG" (
   "LOG_ID" NUMBER(38,0) NOT NULL,
   "IDENTIFY" VARCHAR2(64 CHAR) NOT NULL,
   "MODEL_NAME" VARCHAR2(255 CHAR),
   "LOG_TYPE" NUMBER(10,0) NOT NULL,
   "LOG_VALUE" VARCHAR2(64 CHAR) NOT NULL,
   "DEVICE_ID" NUMBER(38,0),
   "DEVICE_NAME" VARCHAR2(64 CHAR),
   "SERIAL_NUMBER" VARCHAR2(64 CHAR),
   "IS_MONITOR" NUMBER(10,0) NOT NULL DEFAULT 0,
   "MODE_" NUMBER(10,0) NOT NULL DEFAULT 0,
   "USER_ID" NUMBER(38,0),
   "USER_NAME" VARCHAR2(30 CHAR),
   "TENANT_ID" NUMBER(38,0),
   "TENANT_NAME" VARCHAR2(30 CHAR),
   "CREATE_BY" VARCHAR2(64 CHAR),
   "CREATE_TIME" TIMESTAMP(6),
   "REMARK" VARCHAR2(200 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_EVENT_LOG"."LOG_ID" IS '设备事件日志ID';
COMMENT ON COLUMN "IOT_EVENT_LOG"."IDENTIFY" IS '标识符';
COMMENT ON COLUMN "IOT_EVENT_LOG"."MODEL_NAME" IS '物模型名称';
COMMENT ON COLUMN "IOT_EVENT_LOG"."LOG_TYPE" IS '类型（3=事件上报，5=设备上线，6=设备离线）';
COMMENT ON COLUMN "IOT_EVENT_LOG"."LOG_VALUE" IS '日志值';
COMMENT ON COLUMN "IOT_EVENT_LOG"."DEVICE_ID" IS '设备ID';
COMMENT ON COLUMN "IOT_EVENT_LOG"."DEVICE_NAME" IS '设备名称';
COMMENT ON COLUMN "IOT_EVENT_LOG"."SERIAL_NUMBER" IS '设备编号';
COMMENT ON COLUMN "IOT_EVENT_LOG"."IS_MONITOR" IS '是否监测数据（1=是，0=否）';
COMMENT ON COLUMN "IOT_EVENT_LOG"."MODE_" IS '模式(1=影子模式，2=在线模式，3=其他)';
COMMENT ON COLUMN "IOT_EVENT_LOG"."USER_ID" IS '用户ID';
COMMENT ON COLUMN "IOT_EVENT_LOG"."USER_NAME" IS '用户昵称';
COMMENT ON COLUMN "IOT_EVENT_LOG"."TENANT_ID" IS '租户ID';
COMMENT ON COLUMN "IOT_EVENT_LOG"."TENANT_NAME" IS '租户名称';
COMMENT ON COLUMN "IOT_EVENT_LOG"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_EVENT_LOG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_EVENT_LOG"."REMARK" IS '备注';
COMMENT ON TABLE "IOT_EVENT_LOG" IS '事件日志';

-- ----------------------------
-- Records of IOT_EVENT_LOG
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_EVENT_LOG
-- ----------------------------
ALTER TABLE "IOT_EVENT_LOG" ADD CONSTRAINT "SYS_C0012482" PRIMARY KEY ("LOG_ID");

-- ----------------------------
-- Checks structure for table IOT_EVENT_LOG
-- ----------------------------
ALTER TABLE "IOT_EVENT_LOG" ADD CONSTRAINT "SYS_C0012028" CHECK ("LOG_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_EVENT_LOG" ADD CONSTRAINT "SYS_C0012029" CHECK ("IDENTIFY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_EVENT_LOG" ADD CONSTRAINT "SYS_C0012030" CHECK ("LOG_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_EVENT_LOG" ADD CONSTRAINT "SYS_C0012031" CHECK ("LOG_VALUE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_EVENT_LOG" ADD CONSTRAINT "SYS_C0012032" CHECK ("IS_MONITOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_EVENT_LOG" ADD CONSTRAINT "SYS_C0012033" CHECK ("MODE_" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_EVENT_LOG
-- ----------------------------
CREATE TRIGGER "IOT_EVENT_LOG_LOG_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_EVENT_LOG" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.log_id IS NULL THEN
SELECT  iot_event_log_log_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(log_id),0) INTO v_newVal FROM iot_event_log;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_event_log_log_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.log_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_FIRMWARE
-- ----------------------------
DROP TABLE "IOT_FIRMWARE";
CREATE TABLE "IOT_FIRMWARE" (
  "FIRMWARE_ID" NUMBER(38,0) NOT NULL,
  "FIRMWARE_NAME" VARCHAR2(64 CHAR) NOT NULL,
  "FIRMWARE_TYPE" NUMBER(10,0),
  "PRODUCT_ID" NUMBER(38,0) NOT NULL,
  "PRODUCT_NAME" VARCHAR2(64 CHAR) NOT NULL,
  "TENANT_ID" NUMBER(38,0) NOT NULL,
  "TENANT_NAME" VARCHAR2(30 CHAR) NOT NULL,
  "IS_SYS" NUMBER(10,0) NOT NULL DEFAULT 0,
  "IS_LATEST" NUMBER(10,0) NOT NULL,
  "VERSION" NUMBER NOT NULL DEFAULT 0.10,
  "BYTE_SIZE" NUMBER(10,0),
  "FILE_PATH" VARCHAR2(255 CHAR) NOT NULL,
  "DEL_FLAG" CHAR(1 CHAR) DEFAULT '0',
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_FIRMWARE"."FIRMWARE_ID" IS '固件ID';
COMMENT ON COLUMN "IOT_FIRMWARE"."FIRMWARE_NAME" IS '固件名称';
COMMENT ON COLUMN "IOT_FIRMWARE"."FIRMWARE_TYPE" IS '1,二进制包升级2.http升级';
COMMENT ON COLUMN "IOT_FIRMWARE"."PRODUCT_ID" IS '产品ID';
COMMENT ON COLUMN "IOT_FIRMWARE"."PRODUCT_NAME" IS '产品名称';
COMMENT ON COLUMN "IOT_FIRMWARE"."TENANT_ID" IS '租户ID';
COMMENT ON COLUMN "IOT_FIRMWARE"."TENANT_NAME" IS '租户名称';
COMMENT ON COLUMN "IOT_FIRMWARE"."IS_SYS" IS '是否系统通用（0-否，1-是）';
COMMENT ON COLUMN "IOT_FIRMWARE"."IS_LATEST" IS '是否最新版本（0-否，1-是）';
COMMENT ON COLUMN "IOT_FIRMWARE"."VERSION" IS '固件版本';
COMMENT ON COLUMN "IOT_FIRMWARE"."BYTE_SIZE" IS '分包字节大小';
COMMENT ON COLUMN "IOT_FIRMWARE"."FILE_PATH" IS '文件路径';
COMMENT ON COLUMN "IOT_FIRMWARE"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "IOT_FIRMWARE"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_FIRMWARE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_FIRMWARE"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_FIRMWARE"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_FIRMWARE"."REMARK" IS '备注';
COMMENT ON TABLE "IOT_FIRMWARE" IS '产品固件';

-- ----------------------------
-- Records of IOT_FIRMWARE
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_FIRMWARE
-- ----------------------------
ALTER TABLE "IOT_FIRMWARE" ADD CONSTRAINT "SYS_C0012503" PRIMARY KEY ("FIRMWARE_ID");

-- ----------------------------
-- Checks structure for table IOT_FIRMWARE
-- ----------------------------
ALTER TABLE "IOT_FIRMWARE" ADD CONSTRAINT "SYS_C0012034" CHECK ("FIRMWARE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE" ADD CONSTRAINT "SYS_C0012035" CHECK ("FIRMWARE_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE" ADD CONSTRAINT "SYS_C0012036" CHECK ("PRODUCT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE" ADD CONSTRAINT "SYS_C0012037" CHECK ("PRODUCT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE" ADD CONSTRAINT "SYS_C0012038" CHECK ("TENANT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE" ADD CONSTRAINT "SYS_C0012039" CHECK ("TENANT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE" ADD CONSTRAINT "SYS_C0012040" CHECK ("IS_SYS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE" ADD CONSTRAINT "SYS_C0012041" CHECK ("IS_LATEST" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE" ADD CONSTRAINT "SYS_C0012042" CHECK ("VERSION" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE" ADD CONSTRAINT "SYS_C0012043" CHECK ("FILE_PATH" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_FIRMWARE
-- ----------------------------
CREATE TRIGGER "IOT_FIRMWARE_FIRMWARE_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_FIRMWARE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.firmware_id IS NULL THEN
SELECT  iot_firmware_firmware_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(firmware_id),0) INTO v_newVal FROM iot_firmware;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_firmware_firmware_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.firmware_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_FIRMWARE_TASK
-- ----------------------------
DROP TABLE "IOT_FIRMWARE_TASK";
CREATE TABLE "IOT_FIRMWARE_TASK" (
  "ID" NUMBER(38,0) NOT NULL,
  "TASK_NAME" VARCHAR2(80 CHAR) NOT NULL,
  "FIRMWARE_ID" NUMBER(38,0) NOT NULL,
  "UPGRADE_TYPE" NUMBER(10,0) NOT NULL DEFAULT 1,
  "TASK_DESC" VARCHAR2(340 CHAR) NOT NULL,
  "DEVICE_AMOUNT" NUMBER(10,0) NOT NULL DEFAULT 0,
  "DEL_FLAG" NUMBER(10,0) NOT NULL DEFAULT 0,
  "UPDATE_TIME" TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
  "CREATE_TIME" TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
  "BOOK_TIME" TIMESTAMP(6)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_FIRMWARE_TASK"."ID" IS '主键';
COMMENT ON COLUMN "IOT_FIRMWARE_TASK"."TASK_NAME" IS '任务名称';
COMMENT ON COLUMN "IOT_FIRMWARE_TASK"."FIRMWARE_ID" IS '关联固件ID';
COMMENT ON COLUMN "IOT_FIRMWARE_TASK"."UPGRADE_TYPE" IS '1:指定设备 2:产品级别';
COMMENT ON COLUMN "IOT_FIRMWARE_TASK"."TASK_DESC" IS '任务描述';
COMMENT ON COLUMN "IOT_FIRMWARE_TASK"."DEVICE_AMOUNT" IS '选中的设备总数';
COMMENT ON COLUMN "IOT_FIRMWARE_TASK"."DEL_FLAG" IS '删除标志';
COMMENT ON COLUMN "IOT_FIRMWARE_TASK"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_FIRMWARE_TASK"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_FIRMWARE_TASK"."BOOK_TIME" IS '预定时间升级';
COMMENT ON TABLE "IOT_FIRMWARE_TASK" IS '固件升级任务对象';

-- ----------------------------
-- Records of IOT_FIRMWARE_TASK
-- ----------------------------
INSERT INTO "IOT_FIRMWARE_TASK" VALUES ('1', '测试任务0227', '1', '2', '测试', '1', '0', TO_TIMESTAMP('2023-02-28 08:23:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-02-28 08:23:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-02-28 08:23:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "IOT_FIRMWARE_TASK" VALUES ('2', '测试任务227', '1', '2', '1', '1', '0', TO_TIMESTAMP('2023-03-01 02:04:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-02-28 08:58:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-02-28 08:58:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "IOT_FIRMWARE_TASK" VALUES ('3', '111', '1', '1', ' ', '1', '0', TO_TIMESTAMP('2023-09-25 09:02:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-09-25 09:02:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-09-25 09:02:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "IOT_FIRMWARE_TASK" VALUES ('4', '99888', '1', '1', ' ', '1', '0', TO_TIMESTAMP('2023-09-25 09:02:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-09-25 09:02:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-09-29 09:02:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));

-- ----------------------------
-- Primary Key structure for table IOT_FIRMWARE_TASK
-- ----------------------------
ALTER TABLE "IOT_FIRMWARE_TASK" ADD CONSTRAINT "SYS_C0012504" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table IOT_FIRMWARE_TASK
-- ----------------------------
ALTER TABLE "IOT_FIRMWARE_TASK" ADD CONSTRAINT "SYS_C0012044" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE_TASK" ADD CONSTRAINT "SYS_C0012045" CHECK ("TASK_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE_TASK" ADD CONSTRAINT "SYS_C0012046" CHECK ("FIRMWARE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE_TASK" ADD CONSTRAINT "SYS_C0012047" CHECK ("UPGRADE_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE_TASK" ADD CONSTRAINT "SYS_C0012048" CHECK ("TASK_DESC" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE_TASK" ADD CONSTRAINT "SYS_C0012049" CHECK ("DEVICE_AMOUNT" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE_TASK" ADD CONSTRAINT "SYS_C0012050" CHECK ("DEL_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE_TASK" ADD CONSTRAINT "SYS_C0012051" CHECK ("UPDATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE_TASK" ADD CONSTRAINT "SYS_C0012052" CHECK ("CREATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_FIRMWARE_TASK
-- ----------------------------
CREATE TRIGGER "IOT_FIRMWARE_TASK_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_FIRMWARE_TASK" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  iot_firmware_task_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM iot_firmware_task;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_firmware_task_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_FIRMWARE_TASK_DETAIL
-- ----------------------------
DROP TABLE "IOT_FIRMWARE_TASK_DETAIL";
CREATE TABLE "IOT_FIRMWARE_TASK_DETAIL" (
   "ID" NUMBER(38,0) NOT NULL,
   "TASK_ID" NUMBER(38,0) NOT NULL DEFAULT 0,
   "SERIAL_NUMBER" VARCHAR2(85 CHAR) NOT NULL,
   "UPGRADE_STATUS" NUMBER(10,0) NOT NULL DEFAULT 0,
   "DETAIL_MSG" VARCHAR2(133 CHAR) NOT NULL,
   "CREATE_TIME" TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
   "MESSAGE_ID" VARCHAR2(133 CHAR),
   "UPDATE_TIME" TIMESTAMP(6)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_FIRMWARE_TASK_DETAIL"."ID" IS '主键';
COMMENT ON COLUMN "IOT_FIRMWARE_TASK_DETAIL"."SERIAL_NUMBER" IS '设备编码';
COMMENT ON COLUMN "IOT_FIRMWARE_TASK_DETAIL"."UPGRADE_STATUS" IS '0:等待升级 1:已发送设备 2:设备收到  3:升级成功 4:升级失败';
COMMENT ON COLUMN "IOT_FIRMWARE_TASK_DETAIL"."DETAIL_MSG" IS '描述';
COMMENT ON COLUMN "IOT_FIRMWARE_TASK_DETAIL"."MESSAGE_ID" IS '消息ID';
COMMENT ON TABLE "IOT_FIRMWARE_TASK_DETAIL" IS '固件升级任务详细对象';

-- ----------------------------
-- Records of IOT_FIRMWARE_TASK_DETAIL
-- ----------------------------
INSERT INTO "IOT_FIRMWARE_TASK_DETAIL" VALUES ('1', '1', 'D1ELV3A5TOJS', '0', '等待升级-未推送固件到设备', TO_TIMESTAMP('2023-02-28 08:24:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-03-01 02:34:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "IOT_FIRMWARE_TASK_DETAIL" VALUES ('2', '2', 'D1ELV3A5TOJH', '3', '升级成功', TO_TIMESTAMP('2023-02-28 08:58:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1677550503', TO_TIMESTAMP('2023-03-01 02:34:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "IOT_FIRMWARE_TASK_DETAIL" VALUES ('3', '3', 'D1ELV3A5TOJH', '1', '已发送', TO_TIMESTAMP('2023-03-01 02:09:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1677550501', TO_TIMESTAMP('2023-03-01 02:34:38.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "IOT_FIRMWARE_TASK_DETAIL" VALUES ('4', '3', 'D1ELV3A5TORG', '2', '设备OTA升级中', TO_TIMESTAMP('2023-03-01 02:09:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1677550502', TO_TIMESTAMP('2023-03-01 02:34:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "IOT_FIRMWARE_TASK_DETAIL" VALUES ('5', '4', 'D1ELV3A5TOJS', '3', '升级成功', TO_TIMESTAMP('2023-03-01 02:11:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1677550504', TO_TIMESTAMP('2023-03-01 02:34:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "IOT_FIRMWARE_TASK_DETAIL" VALUES ('6', '4', 'D1ELV3A523RG', '0', '等待升级-未推送固件到设备', TO_TIMESTAMP('2023-03-01 02:11:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-03-01 02:34:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "IOT_FIRMWARE_TASK_DETAIL" VALUES ('7', '4', 'D1ELV3A576RG', '2', '设备OTA升级中', TO_TIMESTAMP('2023-03-01 02:11:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1677550505', TO_TIMESTAMP('2023-03-01 02:34:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "IOT_FIRMWARE_TASK_DETAIL" VALUES ('11', '5', 'D1ELV3A562RG', '4', '失败', TO_TIMESTAMP('2023-03-01 02:12:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1677550509', TO_TIMESTAMP('2023-03-01 02:33:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "IOT_FIRMWARE_TASK_DETAIL" VALUES ('12', '9', 'D1ELV3A576RG', '1', '已发送', TO_TIMESTAMP('2023-03-01 02:28:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2023-03-01 02:28:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "IOT_FIRMWARE_TASK_DETAIL" VALUES ('17', '9', 'D1ELV3A5TORG', '5', '停止', TO_TIMESTAMP('2023-03-01 02:28:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2023-03-01 02:33:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "IOT_FIRMWARE_TASK_DETAIL" VALUES ('18', '10', 'D1ELV3A562RG', '0', '等待升级', TO_TIMESTAMP('2023-03-29 16:29:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2023-03-29 16:30:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "IOT_FIRMWARE_TASK_DETAIL" VALUES ('19', '3', 'D1ELV3A5TOJS', '0', '等待升级', TO_TIMESTAMP('2023-09-25 09:02:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2023-09-25 09:02:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "IOT_FIRMWARE_TASK_DETAIL" VALUES ('20', '4', 'D1ELV3A5TOJS', '0', '等待升级', TO_TIMESTAMP('2023-09-25 09:02:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2023-09-25 09:02:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));

-- ----------------------------
-- Primary Key structure for table IOT_FIRMWARE_TASK_DETAIL
-- ----------------------------
ALTER TABLE "IOT_FIRMWARE_TASK_DETAIL" ADD CONSTRAINT "SYS_C0012505" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table IOT_FIRMWARE_TASK_DETAIL
-- ----------------------------
ALTER TABLE "IOT_FIRMWARE_TASK_DETAIL" ADD CONSTRAINT "SYS_C0012053" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE_TASK_DETAIL" ADD CONSTRAINT "SYS_C0012054" CHECK ("TASK_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE_TASK_DETAIL" ADD CONSTRAINT "SYS_C0012055" CHECK ("SERIAL_NUMBER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE_TASK_DETAIL" ADD CONSTRAINT "SYS_C0012056" CHECK ("UPGRADE_STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE_TASK_DETAIL" ADD CONSTRAINT "SYS_C0012057" CHECK ("DETAIL_MSG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FIRMWARE_TASK_DETAIL" ADD CONSTRAINT "SYS_C0012058" CHECK ("CREATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_FIRMWARE_TASK_DETAIL
-- ----------------------------
CREATE TRIGGER "IOT_FIRMWARE_TASK_DETAIL__TRIG" BEFORE INSERT OR UPDATE ON "IOT_FIRMWARE_TASK_DETAIL" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  iot_firmware_task_detail_i_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM iot_firmware_task_detail;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_firmware_task_detail_i_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_FUNCTION_LOG
-- ----------------------------
DROP TABLE "IOT_FUNCTION_LOG";
CREATE TABLE "IOT_FUNCTION_LOG" (
  "ID" NUMBER(38,0) NOT NULL,
  "IDENTIFY" VARCHAR2(64 CHAR) NOT NULL,
  "FUN_TYPE" NUMBER(10,0) NOT NULL,
  "FUN_VALUE" VARCHAR2(64 CHAR) NOT NULL,
  "MESSAGE_ID" VARCHAR2(64 CHAR),
  "DEVICE_NAME" VARCHAR2(64 CHAR),
  "SERIAL_NUMBER" VARCHAR2(64 CHAR) NOT NULL,
  "MODE_" NUMBER(10,0),
  "USER_ID" NUMBER(38,0),
  "RESULT_MSG" VARCHAR2(128 CHAR),
  "RESULT_CODE" NUMBER(10,0),
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(128 CHAR),
  "SHOW_VALUE" VARCHAR2(255 CHAR),
  "MODEL_NAME" VARCHAR2(64 CHAR),
  "REPLY_TIME" TIMESTAMP(6)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_FUNCTION_LOG"."ID" IS '设备功能日志ID';
COMMENT ON COLUMN "IOT_FUNCTION_LOG"."IDENTIFY" IS '标识符';
COMMENT ON COLUMN "IOT_FUNCTION_LOG"."FUN_TYPE" IS '1==服务下发，2=属性获取，3.OTA升级';
COMMENT ON COLUMN "IOT_FUNCTION_LOG"."FUN_VALUE" IS '日志值';
COMMENT ON COLUMN "IOT_FUNCTION_LOG"."MESSAGE_ID" IS '消息id';
COMMENT ON COLUMN "IOT_FUNCTION_LOG"."DEVICE_NAME" IS '设备名称';
COMMENT ON COLUMN "IOT_FUNCTION_LOG"."SERIAL_NUMBER" IS '设备编号';
COMMENT ON COLUMN "IOT_FUNCTION_LOG"."MODE_" IS '模式(1=影子模式，2=在线模式，3=其他)';
COMMENT ON COLUMN "IOT_FUNCTION_LOG"."USER_ID" IS '用户id';
COMMENT ON COLUMN "IOT_FUNCTION_LOG"."RESULT_MSG" IS '下发结果描述';
COMMENT ON COLUMN "IOT_FUNCTION_LOG"."RESULT_CODE" IS '下发结果代码';
COMMENT ON COLUMN "IOT_FUNCTION_LOG"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_FUNCTION_LOG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_FUNCTION_LOG"."REMARK" IS '备注';
COMMENT ON COLUMN "IOT_FUNCTION_LOG"."SHOW_VALUE" IS '显示值';
COMMENT ON COLUMN "IOT_FUNCTION_LOG"."MODEL_NAME" IS '物模型名称';
COMMENT ON COLUMN "IOT_FUNCTION_LOG"."REPLY_TIME" IS '设备回复时间';
COMMENT ON TABLE "IOT_FUNCTION_LOG" IS '设备服务下发日志';

-- ----------------------------
-- Records of IOT_FUNCTION_LOG
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_FUNCTION_LOG
-- ----------------------------
ALTER TABLE "IOT_FUNCTION_LOG" ADD CONSTRAINT "SYS_C0012506" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table IOT_FUNCTION_LOG
-- ----------------------------
ALTER TABLE "IOT_FUNCTION_LOG" ADD CONSTRAINT "SYS_C0012059" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FUNCTION_LOG" ADD CONSTRAINT "SYS_C0012060" CHECK ("IDENTIFY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FUNCTION_LOG" ADD CONSTRAINT "SYS_C0012061" CHECK ("FUN_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FUNCTION_LOG" ADD CONSTRAINT "SYS_C0012062" CHECK ("FUN_VALUE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_FUNCTION_LOG" ADD CONSTRAINT "SYS_C0012063" CHECK ("SERIAL_NUMBER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_FUNCTION_LOG
-- ----------------------------
CREATE TRIGGER "IOT_FUNCTION_LOG_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_FUNCTION_LOG" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  iot_function_log_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM iot_function_log;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_function_log_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_GOVIEW_PROJECT
-- ----------------------------
DROP TABLE "IOT_GOVIEW_PROJECT";
CREATE TABLE "IOT_GOVIEW_PROJECT" (
   "ID" VARCHAR2(66 CHAR) NOT NULL,
   "PROJECT_NAME" VARCHAR2(340 CHAR) NOT NULL,
   "STATE" NUMBER(10,0) NOT NULL DEFAULT 0,
   "INDEX_IMAGE" VARCHAR2(340 CHAR),
   "DEL_FLAG" NUMBER(10,0) NOT NULL DEFAULT 0,
   "CREATE_TIME" TIMESTAMP(6) NOT NULL,
   "CREATE_BY" VARCHAR2(66 CHAR),
   "UPDATE_TIME" TIMESTAMP(6),
   "REMARKS" VARCHAR2(340 CHAR),
   "TENANT_ID" NUMBER(38,0),
   "TENANT_NAME" VARCHAR2(30 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_GOVIEW_PROJECT"."ID" IS '主键';
COMMENT ON COLUMN "IOT_GOVIEW_PROJECT"."PROJECT_NAME" IS '项目名称';
COMMENT ON COLUMN "IOT_GOVIEW_PROJECT"."STATE" IS '项目状态[0未发布,1发布]';
COMMENT ON COLUMN "IOT_GOVIEW_PROJECT"."INDEX_IMAGE" IS '首页图片';
COMMENT ON COLUMN "IOT_GOVIEW_PROJECT"."DEL_FLAG" IS '删除状态[1删除,-1未删除]';
COMMENT ON COLUMN "IOT_GOVIEW_PROJECT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_GOVIEW_PROJECT"."CREATE_BY" IS '创建人id';
COMMENT ON COLUMN "IOT_GOVIEW_PROJECT"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_GOVIEW_PROJECT"."REMARKS" IS '项目介绍';
COMMENT ON COLUMN "IOT_GOVIEW_PROJECT"."TENANT_ID" IS '租户id';
COMMENT ON COLUMN "IOT_GOVIEW_PROJECT"."TENANT_NAME" IS '租户名称';
COMMENT ON TABLE "IOT_GOVIEW_PROJECT" IS '项目表';

-- ----------------------------
-- Records of IOT_GOVIEW_PROJECT
-- ----------------------------
INSERT INTO "IOT_GOVIEW_PROJECT" VALUES ('02d4e08586b34867b0e274faf0625049', 'FastBee可视化大屏', '1', '/profile/goview/6/02d4e08586b34867b0e274faf0625049_index_preview.png', '0', TO_TIMESTAMP('2024-04-18 08:43:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '6', TO_TIMESTAMP('2024-04-26 16:41:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, '1', 'admin');

-- ----------------------------
-- Primary Key structure for table IOT_GOVIEW_PROJECT
-- ----------------------------
ALTER TABLE "IOT_GOVIEW_PROJECT" ADD CONSTRAINT "SYS_C0012507" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table IOT_GOVIEW_PROJECT
-- ----------------------------
ALTER TABLE "IOT_GOVIEW_PROJECT" ADD CONSTRAINT "SYS_C0012064" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_GOVIEW_PROJECT" ADD CONSTRAINT "SYS_C0012065" CHECK ("PROJECT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_GOVIEW_PROJECT" ADD CONSTRAINT "SYS_C0012066" CHECK ("STATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_GOVIEW_PROJECT" ADD CONSTRAINT "SYS_C0012067" CHECK ("DEL_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_GOVIEW_PROJECT" ADD CONSTRAINT "SYS_C0012068" CHECK ("CREATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for IOT_GOVIEW_PROJECT_DATA
-- ----------------------------
DROP TABLE "IOT_GOVIEW_PROJECT_DATA";
CREATE TABLE "IOT_GOVIEW_PROJECT_DATA" (
  "ID" VARCHAR2(66 CHAR) NOT NULL,
  "PROJECT_ID" VARCHAR2(66 CHAR) NOT NULL,
  "CONTENT" BLOB,
  "CREATE_TIME" TIMESTAMP(6) NOT NULL,
  "CREATE_BY" VARCHAR2(66 CHAR),
  "UPDATE_TIME" TIMESTAMP(6)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_GOVIEW_PROJECT_DATA"."ID" IS '主键';
COMMENT ON COLUMN "IOT_GOVIEW_PROJECT_DATA"."PROJECT_ID" IS '项目id';
COMMENT ON COLUMN "IOT_GOVIEW_PROJECT_DATA"."CONTENT" IS '存储数据';
COMMENT ON COLUMN "IOT_GOVIEW_PROJECT_DATA"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_GOVIEW_PROJECT_DATA"."CREATE_BY" IS '创建人id';
COMMENT ON COLUMN "IOT_GOVIEW_PROJECT_DATA"."UPDATE_TIME" IS '更新时间';
COMMENT ON TABLE "IOT_GOVIEW_PROJECT_DATA" IS '项目数据关联表';

-- ----------------------------
-- Records of IOT_GOVIEW_PROJECT_DATA
-- ----------------------------
INSERT INTO "IOT_GOVIEW_PROJECT_DATA" VALUES ('78c00730666a4525896fc37a7d0fcce9', '02d4e08586b34867b0e274faf0625049', HEXTORAW(' '), TO_TIMESTAMP('2024-04-18 11:09:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1', TO_TIMESTAMP('2024-04-26 16:41:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));

-- ----------------------------
-- Primary Key structure for table IOT_GOVIEW_PROJECT_DATA
-- ----------------------------
ALTER TABLE "IOT_GOVIEW_PROJECT_DATA" ADD CONSTRAINT "SYS_C0012508" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table IOT_GOVIEW_PROJECT_DATA
-- ----------------------------
ALTER TABLE "IOT_GOVIEW_PROJECT_DATA" ADD CONSTRAINT "SYS_C0012069" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_GOVIEW_PROJECT_DATA" ADD CONSTRAINT "SYS_C0012070" CHECK ("PROJECT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_GOVIEW_PROJECT_DATA" ADD CONSTRAINT "SYS_C0012071" CHECK ("CREATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for IOT_GROUP
-- ----------------------------
DROP TABLE "IOT_GROUP";
CREATE TABLE "IOT_GROUP" (
  "GROUP_ID" NUMBER(38,0) NOT NULL,
  "GROUP_NAME" VARCHAR2(64 CHAR) NOT NULL,
  "GROUP_ORDER" NUMBER(10,0) NOT NULL DEFAULT 0,
  "USER_ID" NUMBER(38,0) NOT NULL,
  "USER_NAME" VARCHAR2(30 CHAR) NOT NULL DEFAULT '',
  "DEL_FLAG" CHAR(1 CHAR) DEFAULT '0',
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_GROUP"."GROUP_ID" IS '分组ID';
COMMENT ON COLUMN "IOT_GROUP"."GROUP_NAME" IS '分组名称';
COMMENT ON COLUMN "IOT_GROUP"."GROUP_ORDER" IS '分组排序';
COMMENT ON COLUMN "IOT_GROUP"."USER_ID" IS '用户ID';
COMMENT ON COLUMN "IOT_GROUP"."USER_NAME" IS '用户昵称';
COMMENT ON COLUMN "IOT_GROUP"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "IOT_GROUP"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_GROUP"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_GROUP"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_GROUP"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_GROUP"."REMARK" IS '备注';
COMMENT ON TABLE "IOT_GROUP" IS '设备分组';

-- ----------------------------
-- Records of IOT_GROUP
-- ----------------------------
INSERT INTO "IOT_GROUP" VALUES ('2', '卧室', '2', '1', 'admin', '0', ' ', TO_TIMESTAMP('2021-12-29 13:12:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-04-09 22:37:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '卧室设备');
INSERT INTO "IOT_GROUP" VALUES ('3', '厨房', '3', '1', 'admin', '0', ' ', TO_TIMESTAMP('2021-12-29 13:12:59.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2021-12-29 13:13:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '厨房设备');
INSERT INTO "IOT_GROUP" VALUES ('4', '书房', '4', '1', 'admin', '0', ' ', TO_TIMESTAMP('2021-12-29 13:13:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2021-12-29 13:13:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '书房设备');
INSERT INTO "IOT_GROUP" VALUES ('5', '卫生间', '5', '1', 'admin', '0', ' ', TO_TIMESTAMP('2021-12-29 13:13:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2021-12-29 13:14:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '卫生间设备');
INSERT INTO "IOT_GROUP" VALUES ('6', '走道', '6', '1', 'admin', '0', ' ', TO_TIMESTAMP('2021-12-29 13:13:26.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2021-12-29 13:14:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '走道设备');

-- ----------------------------
-- Primary Key structure for table IOT_GROUP
-- ----------------------------
ALTER TABLE "IOT_GROUP" ADD CONSTRAINT "SYS_C0012509" PRIMARY KEY ("GROUP_ID");

-- ----------------------------
-- Checks structure for table IOT_GROUP
-- ----------------------------
ALTER TABLE "IOT_GROUP" ADD CONSTRAINT "SYS_C0012072" CHECK ("GROUP_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_GROUP" ADD CONSTRAINT "SYS_C0012073" CHECK ("GROUP_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_GROUP" ADD CONSTRAINT "SYS_C0012074" CHECK ("GROUP_ORDER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_GROUP" ADD CONSTRAINT "SYS_C0012075" CHECK ("USER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_GROUP" ADD CONSTRAINT "SYS_C0012076" CHECK ("USER_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_GROUP
-- ----------------------------
CREATE TRIGGER "IOT_GROUP_GROUP_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_GROUP" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.group_id IS NULL THEN
SELECT  iot_group_group_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(group_id),0) INTO v_newVal FROM iot_group;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_group_group_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.group_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_MODBUS_CONFIG
-- ----------------------------
DROP TABLE "IOT_MODBUS_CONFIG";
CREATE TABLE "IOT_MODBUS_CONFIG" (
  "ID" NUMBER(38,0) NOT NULL,
  "PRODUCT_ID" NUMBER(38,0) NOT NULL,
  "IDENTIFIER" VARCHAR2(64 CHAR) NOT NULL,
  "SLAVE" NUMBER(10,0),
  "ADDRESS" NUMBER(10,0) NOT NULL,
  "IS_READONLY" NUMBER(10,0) NOT NULL,
  "DATA_TYPE" VARCHAR2(20 CHAR),
  "QUANTITY" NUMBER(10,0),
  "TYPE" NUMBER(10,0) NOT NULL,
  "BIT_ORDER" NUMBER(10,0),
  "SORT" NUMBER(10,0),
  "DEL_FLAG" CHAR(1 CHAR) DEFAULT '0',
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_MODBUS_CONFIG"."ID" IS '业务id';
COMMENT ON COLUMN "IOT_MODBUS_CONFIG"."PRODUCT_ID" IS '所属产品id';
COMMENT ON COLUMN "IOT_MODBUS_CONFIG"."IDENTIFIER" IS '关联属性';
COMMENT ON COLUMN "IOT_MODBUS_CONFIG"."SLAVE" IS '从机地址';
COMMENT ON COLUMN "IOT_MODBUS_CONFIG"."ADDRESS" IS '寄存器地址';
COMMENT ON COLUMN "IOT_MODBUS_CONFIG"."IS_READONLY" IS '是否只读(0-否，1-是)';
COMMENT ON COLUMN "IOT_MODBUS_CONFIG"."DATA_TYPE" IS 'modbus数据类型';
COMMENT ON COLUMN "IOT_MODBUS_CONFIG"."QUANTITY" IS '读取个数';
COMMENT ON COLUMN "IOT_MODBUS_CONFIG"."TYPE" IS '寄存器类型 1-IO寄存器 2-数据寄存器';
COMMENT ON COLUMN "IOT_MODBUS_CONFIG"."BIT_ORDER" IS 'bit位排序';
COMMENT ON COLUMN "IOT_MODBUS_CONFIG"."SORT" IS '排序';
COMMENT ON COLUMN "IOT_MODBUS_CONFIG"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "IOT_MODBUS_CONFIG"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_MODBUS_CONFIG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_MODBUS_CONFIG"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_MODBUS_CONFIG"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_MODBUS_CONFIG"."REMARK" IS '备注';
COMMENT ON TABLE "IOT_MODBUS_CONFIG" IS 'modbus配置表';

-- ----------------------------
-- Records of IOT_MODBUS_CONFIG
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_MODBUS_CONFIG
-- ----------------------------
ALTER TABLE "IOT_MODBUS_CONFIG" ADD CONSTRAINT "SYS_C0012510" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table IOT_MODBUS_CONFIG
-- ----------------------------
ALTER TABLE "IOT_MODBUS_CONFIG" ADD CONSTRAINT "SYS_C0012077" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_MODBUS_CONFIG" ADD CONSTRAINT "SYS_C0012078" CHECK ("PRODUCT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_MODBUS_CONFIG" ADD CONSTRAINT "SYS_C0012079" CHECK ("IDENTIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_MODBUS_CONFIG" ADD CONSTRAINT "SYS_C0012080" CHECK ("ADDRESS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_MODBUS_CONFIG" ADD CONSTRAINT "SYS_C0012081" CHECK ("IS_READONLY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_MODBUS_CONFIG" ADD CONSTRAINT "SYS_C0012082" CHECK ("TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_MODBUS_CONFIG
-- ----------------------------
CREATE TRIGGER "IOT_MODBUS_CONFIG_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_MODBUS_CONFIG" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  iot_modbus_config_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM iot_modbus_config;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_modbus_config_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_MODBUS_JOB
-- ----------------------------
DROP TABLE "IOT_MODBUS_JOB";
CREATE TABLE "IOT_MODBUS_JOB" (
  "TASK_ID" NUMBER(38,0) NOT NULL,
  "JOB_NAME" VARCHAR2(64 CHAR),
  "SUB_DEVICE_ID" NUMBER(38,0) NOT NULL,
  "SUB_SERIAL_NUMBER" VARCHAR2(64 CHAR) NOT NULL,
  "DEVICE_TYPE" NUMBER(10,0),
  "COMMAND" VARCHAR2(255 CHAR) NOT NULL,
  "JOB_ID" NUMBER(38,0) NOT NULL,
  "STATUS" NUMBER(10,0) NOT NULL,
  "CREATE_BY" VARCHAR2(85 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(666 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_MODBUS_JOB"."TASK_ID" IS '任务id';
COMMENT ON COLUMN "IOT_MODBUS_JOB"."JOB_NAME" IS '任务名称';
COMMENT ON COLUMN "IOT_MODBUS_JOB"."SUB_DEVICE_ID" IS '子设备id';
COMMENT ON COLUMN "IOT_MODBUS_JOB"."SUB_SERIAL_NUMBER" IS '子设备编号';
COMMENT ON COLUMN "IOT_MODBUS_JOB"."DEVICE_TYPE" IS '设备类型';
COMMENT ON COLUMN "IOT_MODBUS_JOB"."COMMAND" IS '指令';
COMMENT ON COLUMN "IOT_MODBUS_JOB"."JOB_ID" IS '任务id';
COMMENT ON COLUMN "IOT_MODBUS_JOB"."STATUS" IS '状态（0正常 1暂停）';
COMMENT ON COLUMN "IOT_MODBUS_JOB"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_MODBUS_JOB"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_MODBUS_JOB"."REMARK" IS '备注信息';
COMMENT ON TABLE "IOT_MODBUS_JOB" IS '轮训任务列表';

-- ----------------------------
-- Records of IOT_MODBUS_JOB
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_MODBUS_JOB
-- ----------------------------
ALTER TABLE "IOT_MODBUS_JOB" ADD CONSTRAINT "SYS_C0012511" PRIMARY KEY ("TASK_ID");

-- ----------------------------
-- Checks structure for table IOT_MODBUS_JOB
-- ----------------------------
ALTER TABLE "IOT_MODBUS_JOB" ADD CONSTRAINT "SYS_C0012083" CHECK ("TASK_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_MODBUS_JOB" ADD CONSTRAINT "SYS_C0012084" CHECK ("SUB_DEVICE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_MODBUS_JOB" ADD CONSTRAINT "SYS_C0012085" CHECK ("SUB_SERIAL_NUMBER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_MODBUS_JOB" ADD CONSTRAINT "SYS_C0012086" CHECK ("COMMAND" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_MODBUS_JOB" ADD CONSTRAINT "SYS_C0012087" CHECK ("JOB_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_MODBUS_JOB" ADD CONSTRAINT "SYS_C0012088" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_MODBUS_JOB
-- ----------------------------
CREATE TRIGGER "IOT_MODBUS_JOB_TASK_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_MODBUS_JOB" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.task_id IS NULL THEN
SELECT  iot_modbus_job_task_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(task_id),0) INTO v_newVal FROM iot_modbus_job;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_modbus_job_task_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.task_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_MODBUS_PARAMS
-- ----------------------------
DROP TABLE "IOT_MODBUS_PARAMS";
CREATE TABLE "IOT_MODBUS_PARAMS" (
  "ID" NUMBER(38,0) NOT NULL,
  "PRODUCT_ID" NUMBER(38,0) NOT NULL,
  "POLL_TYPE" NUMBER(10,0) NOT NULL,
  "SLAVE_ID" NUMBER(10,0),
  "STATUS_DETER" NUMBER(10,0),
  "DETER_TIMER" VARCHAR2(20 CHAR),
  "POLL_LENGTH" NUMBER(10,0),
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_MODBUS_PARAMS"."ID" IS '业务id';
COMMENT ON COLUMN "IOT_MODBUS_PARAMS"."PRODUCT_ID" IS '产品id';
COMMENT ON COLUMN "IOT_MODBUS_PARAMS"."POLL_TYPE" IS '是否启动云端轮训(1-云端轮训,2-边缘采集)';
COMMENT ON COLUMN "IOT_MODBUS_PARAMS"."SLAVE_ID" IS '默认的子设备地址';
COMMENT ON COLUMN "IOT_MODBUS_PARAMS"."STATUS_DETER" IS '子设备状态判断方式 1-设备数据 2- 网关';
COMMENT ON COLUMN "IOT_MODBUS_PARAMS"."DETER_TIMER" IS '设备数据来判断子设备状态的时长(s)';
COMMENT ON COLUMN "IOT_MODBUS_PARAMS"."POLL_LENGTH" IS '批量读取的个数';
COMMENT ON COLUMN "IOT_MODBUS_PARAMS"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_MODBUS_PARAMS"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_MODBUS_PARAMS"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_MODBUS_PARAMS"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_MODBUS_PARAMS"."REMARK" IS '备注';
COMMENT ON TABLE "IOT_MODBUS_PARAMS" IS '产品modbus配置参数';

-- ----------------------------
-- Records of IOT_MODBUS_PARAMS
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_MODBUS_PARAMS
-- ----------------------------
ALTER TABLE "IOT_MODBUS_PARAMS" ADD CONSTRAINT "SYS_C0012512" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table IOT_MODBUS_PARAMS
-- ----------------------------
ALTER TABLE "IOT_MODBUS_PARAMS" ADD CONSTRAINT "SYS_C0012089" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_MODBUS_PARAMS" ADD CONSTRAINT "SYS_C0012090" CHECK ("PRODUCT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_MODBUS_PARAMS" ADD CONSTRAINT "SYS_C0012091" CHECK ("POLL_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_MODBUS_PARAMS
-- ----------------------------
CREATE TRIGGER "IOT_MODBUS_PARAMS_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_MODBUS_PARAMS" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  iot_modbus_params_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM iot_modbus_params;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_modbus_params_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_PRODUCT
-- ----------------------------
DROP TABLE "IOT_PRODUCT";
CREATE TABLE "IOT_PRODUCT" (
  "PRODUCT_ID" NUMBER(38,0) NOT NULL,
  "PRODUCT_NAME" VARCHAR2(64 CHAR) NOT NULL,
  "PROTOCOL_CODE" VARCHAR2(64 CHAR),
  "CATEGORY_ID" NUMBER(38,0) NOT NULL,
  "CATEGORY_NAME" VARCHAR2(64 CHAR) NOT NULL,
  "TENANT_ID" NUMBER(38,0) NOT NULL,
  "TENANT_NAME" VARCHAR2(30 CHAR) NOT NULL DEFAULT '',
  "IS_SYS" NUMBER(10,0) NOT NULL DEFAULT 0,
  "IS_AUTHORIZE" NUMBER(10,0) NOT NULL DEFAULT 0,
  "MQTT_ACCOUNT" VARCHAR2(64 CHAR),
  "MQTT_PASSWORD" VARCHAR2(64 CHAR),
  "MQTT_SECRET" VARCHAR2(64 CHAR),
  "STATUS" NUMBER(10,0),
  "THINGS_MODELS_JSON" CLOB,
  "DEVICE_TYPE" NUMBER(10,0) DEFAULT 1,
  "NETWORK_METHOD" NUMBER(10,0) DEFAULT 1,
  "VERTIFICATE_METHOD" NUMBER(10,0) DEFAULT 1,
  "IMG_URL" VARCHAR2(255 CHAR),
  "DEL_FLAG" CHAR(1 CHAR) default 0,
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR),
  "TRANSPORT" VARCHAR2(64 CHAR),
  "LOCATION_WAY" NUMBER(10,0) DEFAULT 1,
  "GUID" VARCHAR2(64 CHAR),
  "FIRMWARE_TYPE" NUMBER(10,0) DEFAULT NULL
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_PRODUCT"."PRODUCT_ID" IS '产品ID';
COMMENT ON COLUMN "IOT_PRODUCT"."PRODUCT_NAME" IS '产品名称';
COMMENT ON COLUMN "IOT_PRODUCT"."PROTOCOL_CODE" IS '协议编号';
COMMENT ON COLUMN "IOT_PRODUCT"."CATEGORY_ID" IS '产品分类ID';
COMMENT ON COLUMN "IOT_PRODUCT"."CATEGORY_NAME" IS '产品分类名称';
COMMENT ON COLUMN "IOT_PRODUCT"."TENANT_ID" IS '租户ID';
COMMENT ON COLUMN "IOT_PRODUCT"."TENANT_NAME" IS '租户名称';
COMMENT ON COLUMN "IOT_PRODUCT"."IS_SYS" IS '是否系统通用（0-否，1-是）';
COMMENT ON COLUMN "IOT_PRODUCT"."IS_AUTHORIZE" IS '是否启用授权码（0-否，1-是）';
COMMENT ON COLUMN "IOT_PRODUCT"."MQTT_ACCOUNT" IS 'mqtt账号';
COMMENT ON COLUMN "IOT_PRODUCT"."MQTT_PASSWORD" IS 'mqtt密码';
COMMENT ON COLUMN "IOT_PRODUCT"."MQTT_SECRET" IS '产品秘钥';
COMMENT ON COLUMN "IOT_PRODUCT"."STATUS" IS '状态（1-未发布，2-已发布）';
COMMENT ON COLUMN "IOT_PRODUCT"."THINGS_MODELS_JSON" IS '物模型JSON（属性、功能、事件）';
COMMENT ON COLUMN "IOT_PRODUCT"."DEVICE_TYPE" IS '设备类型（1-直连设备、2-网关设备、3-监控设备）';
COMMENT ON COLUMN "IOT_PRODUCT"."NETWORK_METHOD" IS '联网方式（1=wifi、2=蜂窝(2G/3G/4G/5G)、3=以太网、4=其他）';
COMMENT ON COLUMN "IOT_PRODUCT"."VERTIFICATE_METHOD" IS '认证方式（1-简单认证、2-加密认证、3-简单+加密）';
COMMENT ON COLUMN "IOT_PRODUCT"."IMG_URL" IS '图片地址';
COMMENT ON COLUMN "IOT_PRODUCT"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "IOT_PRODUCT"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_PRODUCT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_PRODUCT"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_PRODUCT"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_PRODUCT"."REMARK" IS '备注';
COMMENT ON COLUMN "IOT_PRODUCT"."TRANSPORT" IS '产品支持的传输协议';
COMMENT ON COLUMN "IOT_PRODUCT"."LOCATION_WAY" IS '定位方式(1=ip自动定位，2=设备定位，3=自定义)';
COMMENT ON COLUMN "IOT_PRODUCT"."GUID" IS '产品关联的组态id';
COMMENT ON COLUMN "IOT_PRODUCT"."FIRMWARE_TYPE" IS '1,二进制包升级2.http升级';
COMMENT ON TABLE "IOT_PRODUCT" IS '产品表';

-- ----------------------------
-- Records of IOT_PRODUCT
-- ----------------------------
INSERT INTO "IOT_PRODUCT" VALUES (41, '★智能开关产品', 'JSON', 1, '电工照明', 1, 'admin', 1, 0, 'FastBee', 'P47T6OD5IPFWHUM6', 'KX3TSH4Q4OS835DO', 2, '{\"events\": [{\"id\": \"exception\", \"name\": \"设备发生异常\", \"type\": 3, \"order\": 0, \"regId\": \"exception\", \"isChart\": 0, \"datatype\": {\"type\": \"string\", \"maxLength\": 1024}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"height_temperature\", \"name\": \"环境温度过高\", \"type\": 3, \"order\": 0, \"regId\": \"height_temperature\", \"isChart\": 0, \"datatype\": {\"max\": 100, \"min\": 0, \"step\": 0.1, \"type\": \"decimal\", \"unit\": \"℃\"}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0}], \"functions\": [{\"id\": \"report_monitor\", \"name\": \"上报数据\", \"type\": 2, \"order\": 10, \"regId\": \"report_monitor\", \"isChart\": 0, \"datatype\": {\"max\": 10, \"min\": 1, \"step\": 1, \"type\": \"integer\", \"unit\": \"次数\"}, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"message\", \"name\": \"屏显消息\", \"type\": 2, \"order\": 7, \"regId\": \"message\", \"isChart\": 0, \"datatype\": {\"type\": \"string\", \"maxLength\": 1024}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"light_color\", \"name\": \"灯光色值\", \"type\": 2, \"order\": 5, \"regId\": \"light_color\", \"isChart\": 0, \"datatype\": {\"type\": \"array\", \"arrayType\": \"integer\", \"arrayCount\": \"3\"}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"switch\", \"name\": \"设备开关\", \"type\": 2, \"order\": 9, \"regId\": \"switch\", \"isChart\": 0, \"datatype\": {\"type\": \"bool\", \"trueText\": \"打开\", \"falseText\": \"关闭\"}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"reset\", \"name\": \"设备重启\", \"type\": 2, \"order\": 6, \"regId\": \"reset\", \"isChart\": 0, \"datatype\": {\"type\": \"enum\", \"showWay\": \"button\", \"enumList\": [{\"text\": \"重启\", \"value\": \"restart\"}]}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"irc\", \"name\": \"射频遥控\", \"type\": 2, \"order\": 11, \"regId\": \"irc\", \"isChart\": 0, \"datatype\": {\"type\": \"enum\", \"showWay\": \"button\", \"enumList\": [{\"text\": \"遥控学习\", \"value\": \"FFXX01\"}, {\"text\": \"遥控清码\", \"value\": \"FFXX02\"}, {\"text\": \"打开开关\", \"value\": \"FFXX03\"}, {\"text\": \"关闭开关\", \"value\": \"FFXX04\"}, {\"text\": \"暂停\", \"value\": \"FFXX05\"}, {\"text\": \"锁定\", \"value\": \"FFXX06\"}]}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"gear\", \"name\": \"运行档位\", \"type\": 2, \"order\": 8, \"regId\": \"gear\", \"isChart\": 0, \"datatype\": {\"type\": \"enum\", \"showWay\": \"select\", \"enumList\": [{\"text\": \"低速档位\", \"value\": \"0\"}, {\"text\": \"中速档位\", \"value\": \"1\"}, {\"text\": \"中高速档位\", \"value\": \"2\"}, {\"text\": \"高速档位\", \"value\": \"3\"}]}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"status\", \"name\": \"上报状态\", \"type\": 2, \"order\": 12, \"regId\": \"status\", \"isChart\": 0, \"datatype\": {\"type\": \"enum\", \"showWay\": \"button\", \"enumList\": [{\"text\": \"更新状态\", \"value\": \"update_status\"}]}, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}], \"properties\": [{\"id\": \"co2\", \"name\": \"二氧化碳\", \"type\": 1, \"order\": 2, \"regId\": \"co2\", \"isChart\": 1, \"datatype\": {\"max\": 6000, \"min\": 100, \"step\": 1, \"type\": \"integer\", \"unit\": \"ppm\"}, \"isHistory\": 1, \"isMonitor\": 1, \"isReadonly\": 1}, {\"id\": \"brightness\", \"name\": \"室内亮度\", \"type\": 1, \"order\": 4, \"regId\": \"brightness\", \"isChart\": 1, \"datatype\": {\"max\": 10000, \"min\": 0, \"step\": 1, \"type\": \"integer\", \"unit\": \"cd/m2\"}, \"isHistory\": 1, \"isMonitor\": 1, \"isReadonly\": 1}, {\"id\": \"temperature\", \"name\": \"空气温度\", \"type\": 1, \"order\": 1, \"regId\": \"temperature\", \"isChart\": 1, \"datatype\": {\"max\": 120, \"min\": -20, \"step\": 0.1, \"type\": \"decimal\", \"unit\": \"℃\"}, \"isHistory\": 1, \"isMonitor\": 1, \"isReadonly\": 1}, {\"id\": \"humidity\", \"name\": \"空气湿度\", \"type\": 1, \"order\": 3, \"regId\": \"humidity\", \"isChart\": 1, \"datatype\": {\"max\": 100, \"min\": 0, \"step\": 0.1, \"type\": \"decimal\", \"unit\": \"%\"}, \"isHistory\": 1, \"isMonitor\": 1, \"isReadonly\": 1}]}', 1, 1, 3, NULL, '0', '', TO_TIMESTAMP('2025-08-14 00:06:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '', TO_TIMESTAMP('2023-09-25 22:58:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, 'MQTT', 1, NULL,2);
INSERT INTO "IOT_PRODUCT" VALUES (96, '★网关产品', 'JSON', 1, '电工照明', 1, 'admin', 1, 0, 'FastBee', 'P467433O1MT8MXS2', 'KWF32S3H95LH14LO', 2, '{\"events\": [{\"id\": \"exception\", \"name\": \"设备发生异常\", \"type\": 3, \"order\": 0, \"regId\": \"exception\", \"isChart\": 0, \"datatype\": {\"type\": \"string\", \"maxLength\": 1024}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"height_temperature\", \"name\": \"环境温度过高\", \"type\": 3, \"order\": 0, \"regId\": \"height_temperature\", \"isChart\": 0, \"datatype\": {\"max\": 100, \"min\": 0, \"step\": 0.1, \"type\": \"decimal\", \"unit\": \"℃\"}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0}], \"functions\": [{\"id\": \"report_monitor\", \"name\": \"上报监测数据\", \"type\": 2, \"order\": 11, \"regId\": \"report_monitor\", \"isChart\": 0, \"datatype\": {\"max\": 10, \"min\": 1, \"step\": 1, \"type\": \"integer\", \"unit\": \"次数\"}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"reset\", \"name\": \"设备重启\", \"type\": 2, \"order\": 0, \"regId\": \"reset\", \"isChart\": 0, \"datatype\": {\"type\": \"enum\", \"showWay\": \"button\", \"enumList\": [{\"text\": \"重启\", \"value\": \"restart\"}]}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"message\", \"name\": \"屏显消息\", \"type\": 2, \"order\": 0, \"regId\": \"message\", \"isChart\": 0, \"datatype\": {\"type\": \"string\", \"maxLength\": 1024}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"light_color\", \"name\": \"灯光色值\", \"type\": 2, \"order\": 0, \"regId\": \"light_color\", \"isChart\": 0, \"datatype\": {\"type\": \"array\", \"arrayType\": \"integer\", \"arrayCount\": \"3\"}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"gear\", \"name\": \"运行档位\", \"type\": 2, \"order\": 7, \"regId\": \"gear\", \"isChart\": 0, \"datatype\": {\"type\": \"enum\", \"showWay\": \"select\", \"enumList\": [{\"text\": \"低速档位\", \"value\": \"0\"}, {\"text\": \"中速档位\", \"value\": \"1\"}, {\"text\": \"中高速档位\", \"value\": \"2\"}, {\"text\": \"高速档位\", \"value\": \"3\"}]}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"switch\", \"name\": \"设备开关\", \"type\": 2, \"order\": 8, \"regId\": \"switch\", \"isChart\": 0, \"datatype\": {\"type\": \"bool\", \"trueText\": \"打开\", \"falseText\": \"关闭\"}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0}], \"properties\": [{\"id\": \"brightness\", \"name\": \"室内亮度\", \"type\": 1, \"order\": 0, \"regId\": \"brightness\", \"isChart\": 1, \"datatype\": {\"max\": 10000, \"min\": 0, \"step\": 1, \"type\": \"integer\", \"unit\": \"cd/m2\"}, \"isHistory\": 1, \"isMonitor\": 1, \"isReadonly\": 1}, {\"id\": \"temperature\", \"name\": \"空气温度\", \"type\": 1, \"order\": 0, \"regId\": \"temperature\", \"isChart\": 1, \"datatype\": {\"max\": 120, \"min\": -20, \"step\": 0.1, \"type\": \"decimal\", \"unit\": \"℃\"}, \"isHistory\": 1, \"isMonitor\": 1, \"isReadonly\": 1}, {\"id\": \"category\", \"name\": \"功能分组\", \"type\": 1, \"order\": 9, \"regId\": \"category\", \"isChart\": 0, \"datatype\": {\"type\": \"object\", \"params\": [{\"id\": \"category_light\", \"name\": \"光照\", \"order\": 1, \"isChart\": 1, \"datatype\": {\"max\": 100, \"min\": 0, \"step\": 1, \"type\": \"decimal\", \"unit\": \"mm\"}, \"isHistory\": 1, \"isMonitor\": 1, \"isReadonly\": 1}, {\"id\": \"category_humidity\", \"name\": \"空气湿度\", \"order\": 2, \"isChart\": 1, \"datatype\": {\"max\": 100, \"min\": 0, \"step\": 0.1, \"type\": \"decimal\", \"unit\": \"%\"}, \"isHistory\": 0, \"isMonitor\": 1, \"isReadonly\": 1}, {\"id\": \"category_temperature\", \"name\": \"空气温度-只读\", \"order\": 3, \"isChart\": 0, \"datatype\": {\"max\": 120, \"min\": -20, \"step\": 0.1, \"type\": \"decimal\", \"unit\": \"℃\"}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 1}, {\"id\": \"category_report_monitor\", \"name\": \"上报监测数据\", \"order\": 7, \"isChart\": 0, \"datatype\": {\"max\": 10, \"min\": 1, \"step\": 1, \"type\": \"integer\", \"unit\": \"次数\"}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0, \"isSharePerm\": 1}, {\"id\": \"category_gear\", \"name\": \"运行档位\", \"order\": 5, \"isChart\": 0, \"datatype\": {\"type\": \"enum\", \"enumList\": [{\"text\": \"低速档位\", \"value\": \"0\"}, {\"text\": \"中速档位\", \"value\": \"1\"}, {\"text\": \"中高速档位\", \"value\": \"2\"}, {\"text\": \"高速档位\", \"value\": \"3\"}]}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0, \"isSharePerm\": 1}, {\"id\": \"category_switch\", \"name\": \"设备开关\", \"order\": 4, \"isChart\": 0, \"datatype\": {\"type\": \"bool\", \"trueText\": \"打开\", \"falseText\": \"关闭\"}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0, \"isSharePerm\": 1}, {\"id\": \"category_irc\", \"name\": \"射频遥控\", \"order\": 6, \"isChart\": 0, \"datatype\": {\"type\": \"enum\", \"showWay\": \"button\", \"enumList\": [{\"text\": \"遥控配对\", \"value\": \"FFXX01\"}, {\"text\": \"遥控清码\", \"value\": \"FFXX02\"}, {\"text\": \"打开开关\", \"value\": \"FFXX03\"}, {\"text\": \"关闭开关\", \"value\": \"FFXX04\"}, {\"text\": \"暂停\", \"value\": \"FFXX05\"}, {\"text\": \"锁定\", \"value\": \"FFXX06\"}]}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0, \"isSharePerm\": 1}]}, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}, {\"id\": \"device\", \"name\": \"子设备\", \"type\": 1, \"order\": 10, \"regId\": \"device\", \"isChart\": 0, \"datatype\": {\"type\": \"array\", \"params\": [{\"id\": \"device_co2\", \"name\": \"二氧化碳\", \"order\": 0, \"isChart\": 1, \"datatype\": {\"max\": 6000, \"min\": 100, \"step\": 1, \"type\": \"integer\", \"unit\": \"ppm\", \"enumList\": [{\"text\": \"\", \"value\": \"\"}], \"arrayType\": \"int\"}, \"isHistory\": 1, \"isMonitor\": 1, \"isReadonly\": 1, \"isSharePerm\": 0}, {\"id\": \"device_temperature\", \"name\": \"空气温度-只读\", \"order\": 4, \"datatype\": {\"max\": 120, \"min\": -20, \"step\": 0.1, \"type\": \"decimal\", \"unit\": \"℃\"}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 1}, {\"id\": \"device_gear\", \"name\": \"运行档位\", \"order\": 6, \"isChart\": 0, \"datatype\": {\"type\": \"enum\", \"enumList\": [{\"text\": \"低速档位\", \"value\": \"0\"}, {\"text\": \"中速档位\", \"value\": \"1\"}, {\"text\": \"中高速档位\", \"value\": \"2\"}, {\"text\": \"高速档位\", \"value\": \"3\"}]}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0, \"isSharePerm\": 1}, {\"id\": \"device_switch\", \"name\": \"设备开关\", \"order\": 5, \"isChart\": 0, \"datatype\": {\"type\": \"bool\", \"trueText\": \"打开\", \"falseText\": \"关闭\"}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0, \"isSharePerm\": 1}, {\"id\": \"device_report_monitor\", \"name\": \"上报监测数据\", \"order\": 9, \"isChart\": 0, \"datatype\": {\"max\": 10, \"min\": 1, \"step\": 1, \"type\": \"integer\", \"unit\": \"次数\"}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0, \"isSharePerm\": 1}, {\"id\": \"device_irc\", \"name\": \"射频遥控\", \"order\": 1, \"isChart\": 0, \"datatype\": {\"type\": \"enum\", \"showWay\": \"button\", \"enumList\": [{\"text\": \"遥控学习\", \"value\": \"FFXX01\"}, {\"text\": \"遥控清码\", \"value\": \"FFXX02\"}, {\"text\": \"打开开关\", \"value\": \"FFXX03\"}, {\"text\": \"关闭开关\", \"value\": \"FFXX04\"}, {\"text\": \"暂停\", \"value\": \"FFXX05\"}, {\"text\": \"锁定\", \"value\": \"FFXX06\"}]}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0, \"isSharePerm\": 1}], \"arrayType\": \"object\", \"arrayCount\": \"5\"}, \"isHistory\": 0, \"isMonitor\": 0, \"isReadonly\": 0}]}', 2, 2, 3, NULL, '0', '', TO_TIMESTAMP('2025-02-25 22:51:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '', TO_TIMESTAMP('2023-09-16 11:46:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, 'MQTT', 1, NULL,2);
INSERT INTO "IOT_PRODUCT" VALUES (135, '视频监控', 'JSON', 2, '家居安防', 1, 'admin', 1, 0, 'FastBee', 'P0JY568MA1P45JUT', 'K7B1377M8CVY5ZFX', 2, '{}', 3, 1, 3, '', '0', '', TO_TIMESTAMP('2024-01-08 22:14:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '', NULL, NULL, 'GB28181', 1, NULL,2);

-- ----------------------------
-- Primary Key structure for table IOT_PRODUCT
-- ----------------------------
ALTER TABLE "IOT_PRODUCT" ADD CONSTRAINT "SYS_C0012513" PRIMARY KEY ("PRODUCT_ID");

-- ----------------------------
-- Checks structure for table IOT_PRODUCT
-- ----------------------------
ALTER TABLE "IOT_PRODUCT" ADD CONSTRAINT "SYS_C0012092" CHECK ("PRODUCT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PRODUCT" ADD CONSTRAINT "SYS_C0012093" CHECK ("PRODUCT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PRODUCT" ADD CONSTRAINT "SYS_C0012094" CHECK ("CATEGORY_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PRODUCT" ADD CONSTRAINT "SYS_C0012095" CHECK ("CATEGORY_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PRODUCT" ADD CONSTRAINT "SYS_C0012096" CHECK ("TENANT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PRODUCT" ADD CONSTRAINT "SYS_C0012097" CHECK ("TENANT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PRODUCT" ADD CONSTRAINT "SYS_C0012098" CHECK ("IS_SYS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PRODUCT" ADD CONSTRAINT "SYS_C0012099" CHECK ("IS_AUTHORIZE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_PRODUCT
-- ----------------------------
CREATE TRIGGER "IOT_PRODUCT_PRODUCT_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_PRODUCT" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.product_id IS NULL THEN
SELECT  iot_product_product_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(product_id),0) INTO v_newVal FROM iot_product;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_product_product_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.product_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_PRODUCT_AUTHORIZE
-- ----------------------------
DROP TABLE "IOT_PRODUCT_AUTHORIZE";
CREATE TABLE "IOT_PRODUCT_AUTHORIZE" (
  "AUTHORIZE_ID" NUMBER(38,0) NOT NULL,
  "AUTHORIZE_CODE" VARCHAR2(42 CHAR) NOT NULL,
  "PRODUCT_ID" NUMBER(38,0) NOT NULL,
  "DEVICE_ID" NUMBER(38,0),
  "SERIAL_NUMBER" VARCHAR2(85 CHAR),
  "USER_ID" NUMBER(38,0),
  "USER_NAME" VARCHAR2(40 CHAR),
  "STATUS" NUMBER(10,0),
  "DEL_FLAG" CHAR(1 CHAR) NOT NULL DEFAULT '0',
  "CREATE_BY" VARCHAR2(64 CHAR) NOT NULL,
  "CREATE_TIME" TIMESTAMP(6) NOT NULL,
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_PRODUCT_AUTHORIZE"."AUTHORIZE_ID" IS '授权码ID';
COMMENT ON COLUMN "IOT_PRODUCT_AUTHORIZE"."AUTHORIZE_CODE" IS '授权码';
COMMENT ON COLUMN "IOT_PRODUCT_AUTHORIZE"."PRODUCT_ID" IS '产品ID';
COMMENT ON COLUMN "IOT_PRODUCT_AUTHORIZE"."DEVICE_ID" IS '设备ID';
COMMENT ON COLUMN "IOT_PRODUCT_AUTHORIZE"."SERIAL_NUMBER" IS '设备编号';
COMMENT ON COLUMN "IOT_PRODUCT_AUTHORIZE"."USER_ID" IS '用户ID';
COMMENT ON COLUMN "IOT_PRODUCT_AUTHORIZE"."USER_NAME" IS '用户名称';
COMMENT ON COLUMN "IOT_PRODUCT_AUTHORIZE"."STATUS" IS '状态（1-未使用，2-使用中）';
COMMENT ON COLUMN "IOT_PRODUCT_AUTHORIZE"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "IOT_PRODUCT_AUTHORIZE"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_PRODUCT_AUTHORIZE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_PRODUCT_AUTHORIZE"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_PRODUCT_AUTHORIZE"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_PRODUCT_AUTHORIZE"."REMARK" IS '备注';
COMMENT ON TABLE "IOT_PRODUCT_AUTHORIZE" IS '产品授权码表';

-- ----------------------------
-- Records of IOT_PRODUCT_AUTHORIZE
-- ----------------------------
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('11', 'FD42B9A208E54FC39511939385CE7D28', '135', NULL, NULL, NULL, NULL, '1', '0', '18926529123', TO_TIMESTAMP('2023-11-10 09:38:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('12', '2AD0EEF05A5D404EB23571E709641B77', '135', NULL, NULL, NULL, NULL, '1', '0', '18926529123', TO_TIMESTAMP('2023-11-10 09:38:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('13', '8ED19205FE7E469B97FE8540D065BD1B', '135', NULL, NULL, NULL, NULL, '1', '0', '18926529123', TO_TIMESTAMP('2023-11-10 09:38:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('14', 'EEDDE2452473445EAE02EC25B85B8DBA', '135', NULL, NULL, NULL, NULL, '1', '0', '18926529123', TO_TIMESTAMP('2023-11-10 09:38:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('15', '71B8676112B64605AA0236A1ED1A96E5', '135', NULL, NULL, NULL, NULL, '1', '0', '18926529123', TO_TIMESTAMP('2023-11-10 09:38:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('16', 'C941FA610E474186B0DFD3C4BBA51D83', '135', NULL, NULL, NULL, NULL, '1', '0', '18926529123', TO_TIMESTAMP('2023-11-10 09:38:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('17', '7B9CFC7FC3504004A52FDCCD92687652', '135', NULL, NULL, NULL, NULL, '1', '0', '18926529123', TO_TIMESTAMP('2023-11-10 09:38:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('18', '15A881D5CA4B4455BC125F1A0B098441', '135', NULL, NULL, NULL, NULL, '1', '0', '18926529123', TO_TIMESTAMP('2023-11-10 09:38:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('19', '55CA60FD59254548A2523D8B9E117C1F', '135', NULL, NULL, NULL, NULL, '1', '0', '18926529123', TO_TIMESTAMP('2023-11-10 09:38:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('20', '747168F3E7F24E9C8F95D8E6D3ABECD3', '135', NULL, NULL, NULL, NULL, '1', '0', '18926529123', TO_TIMESTAMP('2023-11-10 09:38:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('31', 'A3B8B7D00F794604B2F8C6FD8CC7E6C1', '41', NULL, NULL, NULL, NULL, '1', '0', 'admin', TO_TIMESTAMP('2023-12-28 23:53:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('32', '050D236FD0A447BB8D36A0DD39A03B4B', '41', NULL, NULL, NULL, NULL, '1', '0', 'admin', TO_TIMESTAMP('2023-12-28 23:53:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('33', 'E2B55DBCBF5947C4AFB48F1DA978E5A0', '41', NULL, NULL, NULL, NULL, '1', '0', 'admin', TO_TIMESTAMP('2023-12-28 23:53:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('34', 'D514624CAA3C42AE969B8FF27DBDDD90', '41', NULL, NULL, NULL, NULL, '1', '0', 'admin', TO_TIMESTAMP('2023-12-28 23:53:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('35', '27BF166DABCF43C3923181AE4303ABFC', '41', NULL, NULL, NULL, NULL, '1', '0', 'admin', TO_TIMESTAMP('2023-12-28 23:53:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('36', 'E13394F2E300432D91F4BA1B6C88378E', '41', NULL, NULL, NULL, NULL, '1', '0', 'admin', TO_TIMESTAMP('2023-12-28 23:53:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('37', '79ED51A333A341AEB8AD78843406B058', '41', NULL, NULL, NULL, NULL, '1', '0', 'admin', TO_TIMESTAMP('2023-12-28 23:53:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('38', '4C8740A967E34B64AFDBD34FBF57018F', '41', NULL, NULL, NULL, NULL, '1', '0', 'admin', TO_TIMESTAMP('2023-12-28 23:53:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('39', '398E38DF7F9744B4BA9302EA2A984DCD', '41', NULL, NULL, NULL, NULL, '1', '0', 'admin', TO_TIMESTAMP('2023-12-28 23:53:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "IOT_PRODUCT_AUTHORIZE" VALUES ('40', '77991DC7F5FA4EEE8DFFCC33C50037EE', '41', NULL, NULL, NULL, NULL, '1', '0', 'admin', TO_TIMESTAMP('2023-12-28 23:53:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);

-- ----------------------------
-- Primary Key structure for table IOT_PRODUCT_AUTHORIZE
-- ----------------------------
ALTER TABLE "IOT_PRODUCT_AUTHORIZE" ADD CONSTRAINT "SYS_C0012514" PRIMARY KEY ("AUTHORIZE_ID");

-- ----------------------------
-- Checks structure for table IOT_PRODUCT_AUTHORIZE
-- ----------------------------
ALTER TABLE "IOT_PRODUCT_AUTHORIZE" ADD CONSTRAINT "SYS_C0012100" CHECK ("AUTHORIZE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PRODUCT_AUTHORIZE" ADD CONSTRAINT "SYS_C0012101" CHECK ("AUTHORIZE_CODE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PRODUCT_AUTHORIZE" ADD CONSTRAINT "SYS_C0012102" CHECK ("PRODUCT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PRODUCT_AUTHORIZE" ADD CONSTRAINT "SYS_C0012103" CHECK ("DEL_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PRODUCT_AUTHORIZE" ADD CONSTRAINT "SYS_C0012104" CHECK ("CREATE_BY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PRODUCT_AUTHORIZE" ADD CONSTRAINT "SYS_C0012105" CHECK ("CREATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_PRODUCT_AUTHORIZE
-- ----------------------------
CREATE TRIGGER "IOT_PRODUCT_AUTHORIZE_AUT_TRIG" BEFORE INSERT OR UPDATE ON "IOT_PRODUCT_AUTHORIZE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.authorize_id IS NULL THEN
SELECT  iot_product_authorize_auth_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(authorize_id),0) INTO v_newVal FROM iot_product_authorize;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_product_authorize_auth_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.authorize_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_PRODUCT_MODBUS_JOB
-- ----------------------------
DROP TABLE "IOT_PRODUCT_MODBUS_JOB";
CREATE TABLE "IOT_PRODUCT_MODBUS_JOB" (
  "TASK_ID" NUMBER(38,0) NOT NULL,
  "JOB_NAME" VARCHAR2(64 CHAR),
  "PRODUCT_ID" NUMBER(38,0) NOT NULL,
  "COMMAND" VARCHAR2(255 CHAR) NOT NULL,
  "STATUS" NUMBER(10,0) NOT NULL,
  "CREATE_BY" VARCHAR2(85 CHAR),
  "CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
  "REMARK" VARCHAR2(666 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_PRODUCT_MODBUS_JOB"."TASK_ID" IS '任务id';
COMMENT ON COLUMN "IOT_PRODUCT_MODBUS_JOB"."JOB_NAME" IS '任务名称';
COMMENT ON COLUMN "IOT_PRODUCT_MODBUS_JOB"."PRODUCT_ID" IS '产品id';
COMMENT ON COLUMN "IOT_PRODUCT_MODBUS_JOB"."COMMAND" IS '指令';
COMMENT ON COLUMN "IOT_PRODUCT_MODBUS_JOB"."STATUS" IS '状态（0正常 1暂停）';
COMMENT ON COLUMN "IOT_PRODUCT_MODBUS_JOB"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_PRODUCT_MODBUS_JOB"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_PRODUCT_MODBUS_JOB"."REMARK" IS '备注信息';
COMMENT ON TABLE "IOT_PRODUCT_MODBUS_JOB" IS '产品轮训任务列表';

-- ----------------------------
-- Records of IOT_PRODUCT_MODBUS_JOB
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_PRODUCT_MODBUS_JOB
-- ----------------------------
ALTER TABLE "IOT_PRODUCT_MODBUS_JOB" ADD CONSTRAINT "SYS_C0012515" PRIMARY KEY ("TASK_ID");

-- ----------------------------
-- Checks structure for table IOT_PRODUCT_MODBUS_JOB
-- ----------------------------
ALTER TABLE "IOT_PRODUCT_MODBUS_JOB" ADD CONSTRAINT "SYS_C0012106" CHECK ("TASK_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PRODUCT_MODBUS_JOB" ADD CONSTRAINT "SYS_C0012107" CHECK ("PRODUCT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PRODUCT_MODBUS_JOB" ADD CONSTRAINT "SYS_C0012108" CHECK ("COMMAND" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PRODUCT_MODBUS_JOB" ADD CONSTRAINT "SYS_C0012109" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_PRODUCT_MODBUS_JOB
-- ----------------------------
CREATE TRIGGER "IOT_PRODUCT_MODBUS_JOB_TA_TRIG" BEFORE INSERT OR UPDATE ON "IOT_PRODUCT_MODBUS_JOB" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.task_id IS NULL THEN
SELECT  iot_product_modbus_job_tas_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(task_id),0) INTO v_newVal FROM iot_product_modbus_job;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_product_modbus_job_tas_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.task_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_PRODUCT_SUB_GATEWAY
-- ----------------------------
DROP TABLE "IOT_PRODUCT_SUB_GATEWAY";
CREATE TABLE "IOT_PRODUCT_SUB_GATEWAY" (
  "ID" NUMBER(38,0) NOT NULL,
  "GW_PRODUCT_ID" NUMBER(38,0) NOT NULL,
  "SUB_PRODUCT_ID" NUMBER(38,0) NOT NULL,
  "SLAVE_ID" NUMBER(10,0),
  "CREATE_BY" VARCHAR2(85 CHAR),
  "CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
  "UPDATE_BY" VARCHAR2(85 CHAR),
  "UPDATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
  "REMARK" VARCHAR2(666 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_PRODUCT_SUB_GATEWAY"."ID" IS '业务id';
COMMENT ON COLUMN "IOT_PRODUCT_SUB_GATEWAY"."GW_PRODUCT_ID" IS '网关产品id';
COMMENT ON COLUMN "IOT_PRODUCT_SUB_GATEWAY"."SUB_PRODUCT_ID" IS '子产品id';
COMMENT ON COLUMN "IOT_PRODUCT_SUB_GATEWAY"."SLAVE_ID" IS '从机地址';
COMMENT ON COLUMN "IOT_PRODUCT_SUB_GATEWAY"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_PRODUCT_SUB_GATEWAY"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_PRODUCT_SUB_GATEWAY"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_PRODUCT_SUB_GATEWAY"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_PRODUCT_SUB_GATEWAY"."REMARK" IS '备注';
COMMENT ON TABLE "IOT_PRODUCT_SUB_GATEWAY" IS '网关与子产品关联表';

-- ----------------------------
-- Records of IOT_PRODUCT_SUB_GATEWAY
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_PRODUCT_SUB_GATEWAY
-- ----------------------------
ALTER TABLE "IOT_PRODUCT_SUB_GATEWAY" ADD CONSTRAINT "SYS_C0012516" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table IOT_PRODUCT_SUB_GATEWAY
-- ----------------------------
ALTER TABLE "IOT_PRODUCT_SUB_GATEWAY" ADD CONSTRAINT "SYS_C0012110" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PRODUCT_SUB_GATEWAY" ADD CONSTRAINT "SYS_C0012111" CHECK ("GW_PRODUCT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PRODUCT_SUB_GATEWAY" ADD CONSTRAINT "SYS_C0012112" CHECK ("SUB_PRODUCT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_PRODUCT_SUB_GATEWAY
-- ----------------------------
CREATE TRIGGER "IOT_PRODUCT_SUB_GATEWAY_I_TRIG" BEFORE INSERT OR UPDATE ON "IOT_PRODUCT_SUB_GATEWAY" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  iot_product_sub_gateway_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM iot_product_sub_gateway;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_product_sub_gateway_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_PROTOCOL
-- ----------------------------
DROP TABLE "IOT_PROTOCOL";
CREATE TABLE "IOT_PROTOCOL" (
  "ID" NUMBER(38,0) NOT NULL,
  "PROTOCOL_CODE" VARCHAR2(80 CHAR) NOT NULL DEFAULT '',
  "PROTOCOL_NAME" VARCHAR2(80 CHAR) NOT NULL DEFAULT '',
  "PROTOCOL_FILE_URL" VARCHAR2(666 CHAR) NOT NULL DEFAULT '',
  "PROTOCOL_TYPE" NUMBER(10,0) NOT NULL DEFAULT 0,
  "JAR_SIGN" VARCHAR2(133 CHAR) NOT NULL DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
  "UPDATE_TIME" TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
  "PROTOCOL_STATUS" NUMBER(10,0) NOT NULL DEFAULT 0,
  "DISPLAY" NUMBER(10,0) NOT NULL DEFAULT 1,
  "DATA_FORMAT" CLOB,
  "DEL_FLAG" NUMBER(10,0) NOT NULL DEFAULT 0
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_PROTOCOL"."ID" IS '自增id';
COMMENT ON COLUMN "IOT_PROTOCOL"."PROTOCOL_CODE" IS '协议编码';
COMMENT ON COLUMN "IOT_PROTOCOL"."PROTOCOL_NAME" IS '协议名称';
COMMENT ON COLUMN "IOT_PROTOCOL"."PROTOCOL_FILE_URL" IS '协议jar包,js包，c程序上传地址';
COMMENT ON COLUMN "IOT_PROTOCOL"."PROTOCOL_TYPE" IS '协议类型 0:未知 1:jar，2.js,3.c';
COMMENT ON COLUMN "IOT_PROTOCOL"."JAR_SIGN" IS '协议文件摘要(文件的md5)';
COMMENT ON COLUMN "IOT_PROTOCOL"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_PROTOCOL"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_PROTOCOL"."PROTOCOL_STATUS" IS '0:草稿 1:启用 2:停用';
COMMENT ON COLUMN "IOT_PROTOCOL"."DISPLAY" IS '显示，1-显示；0-不显示';
COMMENT ON COLUMN "IOT_PROTOCOL"."DATA_FORMAT" IS '协议数据格式';
COMMENT ON COLUMN "IOT_PROTOCOL"."DEL_FLAG" IS '0:正常 1:删除';
COMMENT ON TABLE "IOT_PROTOCOL" IS '协议表';

-- ----------------------------
-- Records of IOT_PROTOCOL
-- ----------------------------
INSERT INTO "IOT_PROTOCOL" VALUES ('1', 'JSON', 'JSON解析协议', '/', '0', '系统内置JSON解析协议', TO_TIMESTAMP('2023-03-01 13:46:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-04-10 22:42:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1', '1', '', '0');
INSERT INTO "IOT_PROTOCOL" VALUES ('2', 'MODBUS-RTU', 'ModbusRtu协议', '/', '0', '系统内置ModbusRtu解析协议', TO_TIMESTAMP('2023-03-01 13:52:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-04-09 23:58:59.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1', '1', '', '0');
INSERT INTO "IOT_PROTOCOL" VALUES ('3', 'MODBUS-RTU-PAK', '包装Modbus-rtu协议', '/', '0', '系统内置包装后的modbus-rtu协议', TO_TIMESTAMP('2023-03-01 13:53:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-03-01 16:10:47.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1', '1', '', '0');
INSERT INTO "IOT_PROTOCOL" VALUES ('4', 'JSONOBJECT-CHENYI', 'JSON-Data解析协议', ' ', '0', '系统内置JSONObject解析协议', TO_TIMESTAMP('2023-08-23 09:31:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-08-23 09:31:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1', '1', '', '0');
INSERT INTO "IOT_PROTOCOL" VALUES ('5', 'RJ45', 'RJ45解析协议', ' ', '0', '系统内置RJ45解析协议', TO_TIMESTAMP('2023-08-23 09:31:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-08-23 09:31:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1', '1', '', '0');
INSERT INTO "IOT_PROTOCOL" VALUES ('6', 'FlowMeter', '流量计解析协议', ' ', '0', '流量计解析协议', TO_TIMESTAMP('2023-08-23 09:31:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-08-23 09:31:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1', '1', '', '0');
INSERT INTO "IOT_PROTOCOL" VALUES ('7', 'JSONOBJECT', 'JSONObject解析协议', ' ', '0', '系统内置JSONObject解析协议', TO_TIMESTAMP('2023-08-23 09:31:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-08-23 09:31:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1', '1', '', '0');
INSERT INTO "IOT_PROTOCOL" VALUES ('8', 'MODBUS-JSON', 'Modbus转Json解析协议', ' ', '0', 'modbus转json解析协议', TO_TIMESTAMP('2023-08-23 09:31:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-08-23 09:31:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1', '1', '', '0');
INSERT INTO "IOT_PROTOCOL" VALUES ('9', 'MODBUS-JSON-ZQWL', '8路继电器+Modbus转Json-智嵌物联', ' ', '0', '8路继电器+Modbus转Json-智嵌物联', TO_TIMESTAMP('2024-03-14 15:29:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2024-03-14 23:53:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1', '1', '', '0');
INSERT INTO "IOT_PROTOCOL" VALUES ('10', 'MODBUS-JSON-FY', 'Modbus转Json解析协议-繁易', ' ', '0', 'modbus转json解析协议-繁易', TO_TIMESTAMP('2023-08-23 09:33:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-08-23 09:33:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1', '1', '', '0');
INSERT INTO "IOT_PROTOCOL" VALUES ('11', 'MODBUS-JSON-HP', 'Modbus转Json解析协议-华普物联', ' ', '0', 'modbus转json解析协议-华普物联', TO_TIMESTAMP('2024-02-03 21:02:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2024-02-03 21:02:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1', '1', '', '0');
INSERT INTO "IOT_PROTOCOL" VALUES ('13', 'YinErDa', 'YinErDa解析协议', ' ', '0', 'YinErDa解析协议', TO_TIMESTAMP('2023-08-23 09:31:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2024-03-14 23:53:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1', '1', '', '0');
INSERT INTO "IOT_PROTOCOL" VALUES ('14', 'SGZ', '数码灌装解析协议', ' ', '0', '数码灌装解析协议', TO_TIMESTAMP('2024-04-03 16:14:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2024-04-03 16:14:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1', '1', '', '0');
INSERT INTO "IOT_PROTOCOL" VALUES ('15', 'GEC6100D', 'GEC6100D发电机控制器协议', ' ', '0', 'GEC6100D发电机控制器协议-繁易', TO_TIMESTAMP('2024-04-26 10:00:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2024-04-26 10:00:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1', '1', '', '0');
INSERT INTO "IOT_PROTOCOL" VALUES ('16', 'MODBUS-JSON-GEC6100D', 'GEC6100D发电机控制器协议', ' ', '0', 'GEC6100D发电机控制器协议-繁易', TO_TIMESTAMP('2024-04-26 17:18:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2024-04-26 17:18:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1', '1', '', '0');
INSERT INTO "IOT_PROTOCOL" VALUES ('17', 'CH', '水质监测协议', ' ', '0', '水质监测协议', TO_TIMESTAMP('2024-11-12 11:11:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2024-11-12 11:11:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1', '1', NULL, '0');
INSERT INTO "IOT_PROTOCOL" VALUES ('18', 'MODBUS-TCP', 'ModbusTcp协议', ' ', '0', '系统内置ModbusTcp解析协议', TO_TIMESTAMP('2024-11-12 11:11:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2024-11-12 11:11:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1', '1', NULL, '0');
INSERT INTO "IOT_PROTOCOL" VALUES ('19', 'OTA-NET', 'OTA升级协议', ' ', '0', 'OTA升级协议', TO_TIMESTAMP('2024-11-12 11:11:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2024-11-12 11:11:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1', '1', NULL, '0');

-- ----------------------------
-- Primary Key structure for table IOT_PROTOCOL
-- ----------------------------
ALTER TABLE "IOT_PROTOCOL" ADD CONSTRAINT "SYS_C0012517" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table IOT_PROTOCOL
-- ----------------------------
ALTER TABLE "IOT_PROTOCOL" ADD CONSTRAINT "SYS_C0012113" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PROTOCOL" ADD CONSTRAINT "SYS_C0012114" CHECK ("PROTOCOL_CODE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PROTOCOL" ADD CONSTRAINT "SYS_C0012115" CHECK ("PROTOCOL_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PROTOCOL" ADD CONSTRAINT "SYS_C0012116" CHECK ("PROTOCOL_FILE_URL" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PROTOCOL" ADD CONSTRAINT "SYS_C0012117" CHECK ("PROTOCOL_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PROTOCOL" ADD CONSTRAINT "SYS_C0012118" CHECK ("JAR_SIGN" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PROTOCOL" ADD CONSTRAINT "SYS_C0012119" CHECK ("CREATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PROTOCOL" ADD CONSTRAINT "SYS_C0012120" CHECK ("UPDATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PROTOCOL" ADD CONSTRAINT "SYS_C0012121" CHECK ("PROTOCOL_STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PROTOCOL" ADD CONSTRAINT "SYS_C0012122" CHECK ("DISPLAY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_PROTOCOL" ADD CONSTRAINT "SYS_C0012123" CHECK ("DEL_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_PROTOCOL
-- ----------------------------
CREATE TRIGGER "IOT_PROTOCOL_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_PROTOCOL" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  iot_protocol_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM iot_protocol;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_protocol_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_SCENE
-- ----------------------------
DROP TABLE "IOT_SCENE";
CREATE TABLE "IOT_SCENE" (
  "SCENE_ID" NUMBER(38,0) NOT NULL,
  "SCENE_NAME" VARCHAR2(64 CHAR) NOT NULL,
  "CHAIN_NAME" VARCHAR2(32 CHAR),
  "ENABLE" NUMBER(10,0),
  "USER_ID" NUMBER(38,0) NOT NULL,
  "USER_NAME" VARCHAR2(64 CHAR) NOT NULL,
  "SILENT_PERIOD" NUMBER(10,0),
  "COND" NUMBER(10,0),
  "EXECUTE_MODE" NUMBER(10,0),
  "EXECUTE_DELAY" NUMBER(10,0),
  "HAS_ALERT" NUMBER(10,0) DEFAULT 0,
  "APPLICATION_NAME" VARCHAR2(32 CHAR) NOT NULL DEFAULT '',
  "EL_DATA" CLOB,
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR),
  "TERMINAL_USER" NUMBER(10,0) DEFAULT 0,
  "CHECK_DELAY" NUMBER(10,0) DEFAULT 0,
  "RECOVER_ID" NUMBER(38,0) DEFAULT 0
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_SCENE"."SCENE_ID" IS '场景ID';
COMMENT ON COLUMN "IOT_SCENE"."SCENE_NAME" IS '场景名称';
COMMENT ON COLUMN "IOT_SCENE"."CHAIN_NAME" IS '规则名称';
COMMENT ON COLUMN "IOT_SCENE"."ENABLE" IS '场景状态（1-启动，2-停止）';
COMMENT ON COLUMN "IOT_SCENE"."USER_ID" IS '用户ID';
COMMENT ON COLUMN "IOT_SCENE"."USER_NAME" IS '用户名称';
COMMENT ON COLUMN "IOT_SCENE"."SILENT_PERIOD" IS '静默周期（分钟）';
COMMENT ON COLUMN "IOT_SCENE"."COND" IS '执行条件（1=或、任意条件，2=且、所有条件，3=非，不满足）';
COMMENT ON COLUMN "IOT_SCENE"."EXECUTE_MODE" IS '执行方式（1=串行，顺序执行，2=并行，同时执行）';
COMMENT ON COLUMN "IOT_SCENE"."EXECUTE_DELAY" IS '延时执行（秒钟）';
COMMENT ON COLUMN "IOT_SCENE"."HAS_ALERT" IS '是否包含告警推送（1=包含，2=不包含）';
COMMENT ON COLUMN "IOT_SCENE"."APPLICATION_NAME" IS '应用名称';
COMMENT ON COLUMN "IOT_SCENE"."EL_DATA" IS '规则数据';
COMMENT ON COLUMN "IOT_SCENE"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_SCENE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_SCENE"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_SCENE"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_SCENE"."REMARK" IS '备注';
COMMENT ON COLUMN "IOT_SCENE"."TERMINAL_USER" IS '是否终端用户（1-是，0-不是）';
COMMENT ON COLUMN "IOT_SCENE"."CHECK_DELAY" IS '延时匹配（秒钟）';
COMMENT ON COLUMN "IOT_SCENE"."RECOVER_ID" IS '恢复告警场景ID';
COMMENT ON TABLE "IOT_SCENE" IS '场景联动';

-- ----------------------------
-- Records of IOT_SCENE
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_SCENE
-- ----------------------------
ALTER TABLE "IOT_SCENE" ADD CONSTRAINT "SYS_C0012518" PRIMARY KEY ("SCENE_ID");

-- ----------------------------
-- Checks structure for table IOT_SCENE
-- ----------------------------
ALTER TABLE "IOT_SCENE" ADD CONSTRAINT "SYS_C0012124" CHECK ("SCENE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCENE" ADD CONSTRAINT "SYS_C0012125" CHECK ("SCENE_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCENE" ADD CONSTRAINT "SYS_C0012126" CHECK ("USER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCENE" ADD CONSTRAINT "SYS_C0012127" CHECK ("USER_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCENE" ADD CONSTRAINT "SYS_C0012128" CHECK ("APPLICATION_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_SCENE
-- ----------------------------
CREATE TRIGGER "IOT_SCENE_SCENE_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_SCENE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.scene_id IS NULL THEN
SELECT  iot_scene_scene_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(scene_id),0) INTO v_newVal FROM iot_scene;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_scene_scene_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.scene_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_SCENE_DEVICE
-- ----------------------------
DROP TABLE "IOT_SCENE_DEVICE";
CREATE TABLE "IOT_SCENE_DEVICE" (
  "SCENE_DEVICE_ID" NUMBER(38,0) NOT NULL,
  "SERIAL_NUMBER" VARCHAR2(32 CHAR) NOT NULL,
  "PRODUCT_ID" NUMBER(38,0) NOT NULL,
  "PRODUCT_NAME" VARCHAR2(64 CHAR) NOT NULL,
  "SOURCE" NUMBER(10,0) NOT NULL,
  "SCENE_ID" NUMBER(38,0) NOT NULL,
  "SCRIPT_ID" VARCHAR2(32 CHAR) NOT NULL,
  "TYPE" NUMBER(10,0)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_SCENE_DEVICE"."SCENE_DEVICE_ID" IS '场景设备ID';
COMMENT ON COLUMN "IOT_SCENE_DEVICE"."SERIAL_NUMBER" IS '设备编号（产品触发的没有设备编号）';
COMMENT ON COLUMN "IOT_SCENE_DEVICE"."PRODUCT_ID" IS '产品ID';
COMMENT ON COLUMN "IOT_SCENE_DEVICE"."PRODUCT_NAME" IS '产品名称';
COMMENT ON COLUMN "IOT_SCENE_DEVICE"."SOURCE" IS '触发源（1=设备触发，3=产品触发）';
COMMENT ON COLUMN "IOT_SCENE_DEVICE"."SCENE_ID" IS '场景ID';
COMMENT ON COLUMN "IOT_SCENE_DEVICE"."SCRIPT_ID" IS '场景脚本ID';
COMMENT ON COLUMN "IOT_SCENE_DEVICE"."TYPE" IS '类型（2=触发器，3=执行动作）';
COMMENT ON TABLE "IOT_SCENE_DEVICE" IS '场景设备表';

-- ----------------------------
-- Records of IOT_SCENE_DEVICE
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_SCENE_DEVICE
-- ----------------------------
ALTER TABLE "IOT_SCENE_DEVICE" ADD CONSTRAINT "SYS_C0012519" PRIMARY KEY ("SCENE_DEVICE_ID");

-- ----------------------------
-- Checks structure for table IOT_SCENE_DEVICE
-- ----------------------------
ALTER TABLE "IOT_SCENE_DEVICE" ADD CONSTRAINT "SYS_C0012129" CHECK ("SCENE_DEVICE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCENE_DEVICE" ADD CONSTRAINT "SYS_C0012130" CHECK ("SERIAL_NUMBER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCENE_DEVICE" ADD CONSTRAINT "SYS_C0012131" CHECK ("PRODUCT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCENE_DEVICE" ADD CONSTRAINT "SYS_C0012132" CHECK ("PRODUCT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCENE_DEVICE" ADD CONSTRAINT "SYS_C0012133" CHECK ("SOURCE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCENE_DEVICE" ADD CONSTRAINT "SYS_C0012134" CHECK ("SCENE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCENE_DEVICE" ADD CONSTRAINT "SYS_C0012135" CHECK ("SCRIPT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_SCENE_DEVICE
-- ----------------------------
CREATE TRIGGER "IOT_SCENE_DEVICE_SCENE_DE_TRIG" BEFORE INSERT OR UPDATE ON "IOT_SCENE_DEVICE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.scene_device_id IS NULL THEN
SELECT  iot_scene_device_scene_dev_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(scene_device_id),0) INTO v_newVal FROM iot_scene_device;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_scene_device_scene_dev_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.scene_device_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_SCENE_SCRIPT
-- ----------------------------
DROP TABLE "IOT_SCENE_SCRIPT";
CREATE TABLE "IOT_SCENE_SCRIPT" (
   "SCRIPT_ID" VARCHAR2(32 CHAR) NOT NULL,
   "SCENE_ID" NUMBER(38,0) NOT NULL,
   "SOURCE" NUMBER(10,0) NOT NULL,
   "SCRIPT_PURPOSE" NUMBER(10,0) NOT NULL,
   "PRODUCT_ID" NUMBER(38,0),
   "PRODUCT_NAME" VARCHAR2(64 CHAR),
   "ID" VARCHAR2(64 CHAR),
   "NAME" VARCHAR2(64 CHAR),
   "VALUE" VARCHAR2(64 CHAR),
   "OPERATOR" VARCHAR2(16 CHAR),
   "TYPE" NUMBER(10,0),
   "DEVICE_COUNT" NUMBER(10,0),
   "JOB_ID" NUMBER(38,0),
   "CRON_EXPRESSION" VARCHAR2(340 CHAR),
   "IS_ADVANCE" NUMBER(10,0),
   "PARENT_ID" VARCHAR2(32 CHAR),
   "PARENT_NAME" VARCHAR2(32 CHAR),
   "ARRAY_INDEX" VARCHAR2(20 CHAR),
   "ARRAY_INDEX_NAME" VARCHAR2(20 CHAR),
   "CREATE_BY" VARCHAR2(64 CHAR),
   "CREATE_TIME" TIMESTAMP(6)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."SCRIPT_ID" IS '脚本ID';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."SCENE_ID" IS '场景ID';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."SOURCE" IS '触发源（1=设备触发，2=定时触发，3=产品触发,4=告警执行）';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."SCRIPT_PURPOSE" IS '脚本用途(1=数据流，2=触发器，3=执行动作)';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."PRODUCT_ID" IS '产品ID（用于获取对应物模型）';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."PRODUCT_NAME" IS '产品名称';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."ID" IS '物模型标识符';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."NAME" IS '物模型名称';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."VALUE" IS '物模型值';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."OPERATOR" IS '操作符';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."TYPE" IS '物模型类别（1=属性，2=功能，3=事件，4=设备升级，5=设备上线，6=设备下线）';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."DEVICE_COUNT" IS '设备数量';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."JOB_ID" IS '任务ID';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."CRON_EXPRESSION" IS 'cron执行表达式';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."IS_ADVANCE" IS '是否详细corn表达式（1=是，0=否）';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."PARENT_ID" IS '父物模id';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."PARENT_NAME" IS '父物模名称';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."ARRAY_INDEX" IS '数组索引';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."ARRAY_INDEX_NAME" IS '数组索引名称';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_SCENE_SCRIPT"."CREATE_TIME" IS '创建时间';
COMMENT ON TABLE "IOT_SCENE_SCRIPT" IS '场景脚本';

-- ----------------------------
-- Records of IOT_SCENE_SCRIPT
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_SCENE_SCRIPT
-- ----------------------------
ALTER TABLE "IOT_SCENE_SCRIPT" ADD CONSTRAINT "SYS_C0012520" PRIMARY KEY ("SCRIPT_ID");

-- ----------------------------
-- Checks structure for table IOT_SCENE_SCRIPT
-- ----------------------------
ALTER TABLE "IOT_SCENE_SCRIPT" ADD CONSTRAINT "SYS_C0012136" CHECK ("SCRIPT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCENE_SCRIPT" ADD CONSTRAINT "SYS_C0012137" CHECK ("SCENE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCENE_SCRIPT" ADD CONSTRAINT "SYS_C0012138" CHECK ("SOURCE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCENE_SCRIPT" ADD CONSTRAINT "SYS_C0012139" CHECK ("SCRIPT_PURPOSE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for IOT_SCRIPT
-- ----------------------------
DROP TABLE "IOT_SCRIPT";
CREATE TABLE "IOT_SCRIPT" (
  "SCRIPT_ID" VARCHAR2(32 CHAR) NOT NULL,
  "USER_ID" NUMBER(38,0) NOT NULL,
  "USER_NAME" VARCHAR2(30 CHAR) NOT NULL,
  "SCENE_ID" NUMBER(38,0) DEFAULT 0 NOT NULL,
  "PRODUCT_ID" NUMBER(38,0),
  "PRODUCT_NAME" VARCHAR2(64 CHAR),
  "SCRIPT_EVENT" NUMBER(10,0) NOT NULL,
  "SCRIPT_ACTION" NUMBER(10,0) NOT NULL,
  "SCRIPT_PURPOSE" NUMBER(10,0) NOT NULL,
  "SCRIPT_ORDER" NUMBER(10,0) DEFAULT 0 NOT NULL,
  "APPLICATION_NAME" VARCHAR2(32 CHAR) NOT NULL DEFAULT '',
  "SCRIPT_NAME" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
  "SCRIPT_DATA" CLOB NOT NULL,
  "SCRIPT_TYPE" VARCHAR2(16 CHAR) NOT NULL DEFAULT '',
  "SCRIPT_LANGUAGE" VARCHAR2(16 CHAR) NOT NULL DEFAULT '',
  "ENABLE" NUMBER(10,0) DEFAULT 1 NOT NULL,
  "DEL_FLAG" CHAR(1 CHAR) DEFAULT 0,
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_SCRIPT"."SCRIPT_ID" IS '脚本ID';
COMMENT ON COLUMN "IOT_SCRIPT"."USER_ID" IS '用户ID';
COMMENT ON COLUMN "IOT_SCRIPT"."USER_NAME" IS '用户昵称';
COMMENT ON COLUMN "IOT_SCRIPT"."SCENE_ID" IS '关联场景ID';
COMMENT ON COLUMN "IOT_SCRIPT"."PRODUCT_ID" IS '产品ID';
COMMENT ON COLUMN "IOT_SCRIPT"."PRODUCT_NAME" IS '产品名称';
COMMENT ON COLUMN "IOT_SCRIPT"."SCRIPT_EVENT" IS '脚本事件(1=设备上报，2=平台下发，3=设备上线，4=设备离线)';
COMMENT ON COLUMN "IOT_SCRIPT"."SCRIPT_ACTION" IS '脚本动作(1=消息重发，2=消息通知，3=Http推送，4=Mqtt桥接，5=数据库存储)';
COMMENT ON COLUMN "IOT_SCRIPT"."SCRIPT_PURPOSE" IS '脚本用途(1=数据流，2=触发器，3=执行动作)';
COMMENT ON COLUMN "IOT_SCRIPT"."SCRIPT_ORDER" IS '脚本执行顺序，值越大优先级越高';
COMMENT ON COLUMN "IOT_SCRIPT"."APPLICATION_NAME" IS '应用名，后端、规则和脚本要统一';
COMMENT ON COLUMN "IOT_SCRIPT"."SCRIPT_NAME" IS '脚本名';
COMMENT ON COLUMN "IOT_SCRIPT"."SCRIPT_DATA" IS '脚本数据';
COMMENT ON COLUMN "IOT_SCRIPT"."SCRIPT_TYPE" IS '"脚本类型：
script=普通脚本，
switch_script=选择脚本，
boolean_script=条件脚本，
for_script=数量循环脚本"';
COMMENT ON COLUMN "IOT_SCRIPT"."SCRIPT_LANGUAGE" IS '脚本语言（groovy | qlexpress | js | python | lua | aviator | java）';
COMMENT ON COLUMN "IOT_SCRIPT"."ENABLE" IS '是否生效（0-不生效，1-生效）';
COMMENT ON COLUMN "IOT_SCRIPT"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "IOT_SCRIPT"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_SCRIPT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_SCRIPT"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_SCRIPT"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_SCRIPT"."REMARK" IS '备注';
COMMENT ON TABLE "IOT_SCRIPT" IS '规则引擎脚本';

-- ----------------------------
-- Records of IOT_SCRIPT
-- ----------------------------
INSERT INTO "IOT_SCRIPT" VALUES ('D1751532166174609408', '1', 'admin', '0', '41', '★智能开关产品', '1', '1', '1', '1', 'fastbee', '消息转发', 'import cn.hutool.json.JSONArray;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import cn.hutool.core.util.NumberUtil;

//系统主题
String sysTopic = '''';
//系统数据格式
String sysPayload = '''';

// 1. 获取主题和内容(必要)
String name = msgContext.getTopic();
Long productId = msgContext.getProductId();
String serialNumber = msgContext.getSerialNumber();
String protocolCode = msgContext.getProtocolCode();
String payload = msgContext.getPayload();
System.out.println("产品id/协议编号：" + productId + " / " + protocolCode);
// 2. 转换为系统主题 /60/DEVICE555/property/post
sysTopic = "/" + productId + "/" + serialNumber + "/property/post"

if("JSON".equals(protocolCode)){
    // 3. 内容格式转换
    JSONArray newArray = new JSONArray();
    JSONObject jsonObject = JSONUtil.parseObj(payload);
    jsonObject.keySet().forEach(key -> {
        JSONObject newObject =new JSONObject();
        newObject.put("id" , key);
        newObject.put("value" , jsonObject.getStr(key));
        newArray.add(newObject);
    });
    sysPayload = newArray.toString();
}else{
    //其他协议处理
}


// 4.打印
System.out.println("新主题：" + sysTopic);
System.out.println("新内容：" + sysPayload);

// 5. 返回新的数据（必要）
msgContext.setTopic(sysTopic)
msgContext.setPayload(sysPayload);', 'script', 'groovy', '1', '0', ' ', TO_TIMESTAMP('2024-01-28 17:06:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2024-04-28 14:14:38.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "IOT_SCRIPT" VALUES ('D1753673875549458432', '1', 'admin', '0', '96', '★网关产品', '1', '1', '1', '1', 'fastbee', '平台下发转发', 'import cn.hutool.json.JSONArray;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import cn.hutool.core.util.NumberUtil;


//系统主题
String tranTopic = '''';
//系统数据格式
String tranPayload = '''';


// 1. 获取主题和内容(必要)
String topic = msgContext.getTopic();
String payload = msgContext.getPayload();
Long productId = msgContext.getProductId();
String serialNumber = msgContext.getSerialNumber();
String protocolCode = msgContext.getProtocolCode();


// 2. topic转换
tranTopic = serialNumber+ "/set";


//这里根据系统内置的协议类型来做数据转换

if("JSON".equals(protocolCode)){

    // 3. 转发的数据  {"temperature":26.5,"humidity":65.8}
    JSONArray jsonArray = JSONUtil.parseArray(payload);
    JSONObject resultObj = new JSONObject();
    jsonArray.forEach(obj -> {
    JSONObject jsonObject = (JSONObject)obj;
    resultObj.put(jsonObject.getStr("id"),jsonObject.getStr("value"));
    });
    tranPayload = JSONUtil.toJsonStr(resultObj);

}else{
    //其他协议处理
}

// 4.打印
System.out.println("转发主题：" + tranTopic);
System.out.println("转发内容：" + tranPayload);


// 3. 返回新的数据（必要）
msgContext.setTopic(tranTopic);
msgContext.setPayload(tranPayload);', 'script', 'groovy', '1', '0', ' ', TO_TIMESTAMP('2024-02-03 14:56:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2024-04-28 14:14:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);

-- ----------------------------
-- Primary Key structure for table IOT_SCRIPT
-- ----------------------------
ALTER TABLE "IOT_SCRIPT" ADD CONSTRAINT "SYS_C0012521" PRIMARY KEY ("SCRIPT_ID");

-- ----------------------------
-- Checks structure for table IOT_SCRIPT
-- ----------------------------
ALTER TABLE "IOT_SCRIPT" ADD CONSTRAINT "SYS_C0012140" CHECK ("SCRIPT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCRIPT" ADD CONSTRAINT "SYS_C0012141" CHECK ("USER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCRIPT" ADD CONSTRAINT "SYS_C0012142" CHECK ("USER_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCRIPT" ADD CONSTRAINT "SYS_C0012143" CHECK ("SCENE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCRIPT" ADD CONSTRAINT "SYS_C0012144" CHECK ("SCRIPT_EVENT" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCRIPT" ADD CONSTRAINT "SYS_C0012145" CHECK ("SCRIPT_ACTION" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCRIPT" ADD CONSTRAINT "SYS_C0012146" CHECK ("SCRIPT_PURPOSE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCRIPT" ADD CONSTRAINT "SYS_C0012147" CHECK ("SCRIPT_ORDER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCRIPT" ADD CONSTRAINT "SYS_C0012148" CHECK ("APPLICATION_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCRIPT" ADD CONSTRAINT "SYS_C0012149" CHECK ("SCRIPT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCRIPT" ADD CONSTRAINT "SYS_C0012150" CHECK ("SCRIPT_DATA" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCRIPT" ADD CONSTRAINT "SYS_C0012151" CHECK ("SCRIPT_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCRIPT" ADD CONSTRAINT "SYS_C0012152" CHECK ("SCRIPT_LANGUAGE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCRIPT" ADD CONSTRAINT "SYS_C0012153" CHECK ("ENABLE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for IOT_SCRIPT_BRIDGE
-- ----------------------------
DROP TABLE "IOT_SCRIPT_BRIDGE";
CREATE TABLE "IOT_SCRIPT_BRIDGE" (
  "SCRIPT_ID" VARCHAR2(32 CHAR) NOT NULL,
  "BRIDGE_ID" NUMBER(38,0) NOT NULL
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_SCRIPT_BRIDGE"."SCRIPT_ID" IS '脚本ID';
COMMENT ON COLUMN "IOT_SCRIPT_BRIDGE"."BRIDGE_ID" IS '桥接配置id';
COMMENT ON TABLE "IOT_SCRIPT_BRIDGE" IS '脚本输入桥接关联表';

-- ----------------------------
-- Records of IOT_SCRIPT_BRIDGE
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_SCRIPT_BRIDGE
-- ----------------------------
ALTER TABLE "IOT_SCRIPT_BRIDGE" ADD CONSTRAINT "SYS_C0012522" PRIMARY KEY ("SCRIPT_ID", "BRIDGE_ID");

-- ----------------------------
-- Checks structure for table IOT_SCRIPT_BRIDGE
-- ----------------------------
ALTER TABLE "IOT_SCRIPT_BRIDGE" ADD CONSTRAINT "SYS_C0012154" CHECK ("SCRIPT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SCRIPT_BRIDGE" ADD CONSTRAINT "SYS_C0012155" CHECK ("BRIDGE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for IOT_SIMULATE_LOG
-- ----------------------------
DROP TABLE "IOT_SIMULATE_LOG";
CREATE TABLE "IOT_SIMULATE_LOG" (
  "LOG_ID" NUMBER(38,0) NOT NULL,
  "SEND_DATA" CLOB,
  "CALLBACK_DATA" CLOB,
  "DEVICE_ID" NUMBER(38,0),
  "DEVICE_NAME" VARCHAR2(64 CHAR),
  "SERIAL_NUMBER" VARCHAR2(64 CHAR) NOT NULL,
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(200 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_SIMULATE_LOG"."LOG_ID" IS '设备模拟日志ID';
COMMENT ON COLUMN "IOT_SIMULATE_LOG"."SEND_DATA" IS '云端发送指令';
COMMENT ON COLUMN "IOT_SIMULATE_LOG"."CALLBACK_DATA" IS '设备回复';
COMMENT ON COLUMN "IOT_SIMULATE_LOG"."DEVICE_ID" IS '设备ID';
COMMENT ON COLUMN "IOT_SIMULATE_LOG"."DEVICE_NAME" IS '设备名称';
COMMENT ON COLUMN "IOT_SIMULATE_LOG"."SERIAL_NUMBER" IS '设备编号';
COMMENT ON COLUMN "IOT_SIMULATE_LOG"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_SIMULATE_LOG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_SIMULATE_LOG"."REMARK" IS '备注';
COMMENT ON TABLE "IOT_SIMULATE_LOG" IS '模拟设备日志';

-- ----------------------------
-- Records of IOT_SIMULATE_LOG
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_SIMULATE_LOG
-- ----------------------------
ALTER TABLE "IOT_SIMULATE_LOG" ADD CONSTRAINT "SYS_C0012523" PRIMARY KEY ("LOG_ID");

-- ----------------------------
-- Checks structure for table IOT_SIMULATE_LOG
-- ----------------------------
ALTER TABLE "IOT_SIMULATE_LOG" ADD CONSTRAINT "SYS_C0012156" CHECK ("LOG_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SIMULATE_LOG" ADD CONSTRAINT "SYS_C0012157" CHECK ("SERIAL_NUMBER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_SIMULATE_LOG
-- ----------------------------
CREATE TRIGGER "IOT_SIMULATE_LOG_LOG_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_SIMULATE_LOG" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.log_id IS NULL THEN
SELECT  iot_simulate_log_log_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(log_id),0) INTO v_newVal FROM iot_simulate_log;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_simulate_log_log_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.log_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_SIP_RELATION
-- ----------------------------
DROP TABLE "IOT_SIP_RELATION";
CREATE TABLE "IOT_SIP_RELATION" (
  "ID" NUMBER(38,0) NOT NULL,
  "CHANNEL_ID" VARCHAR2(64 CHAR) NOT NULL,
  "RE_DEVICE_ID" NUMBER(38,0),
  "RE_SCENE_MODEL_ID" NUMBER(38,0),
  "CREATE_BY" VARCHAR2(50 CHAR),
  "CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
  "UPDATE_BY" VARCHAR2(50 CHAR),
  "UPDATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
  "REMARK" VARCHAR2(800 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_SIP_RELATION"."ID" IS '业务id';
COMMENT ON COLUMN "IOT_SIP_RELATION"."CHANNEL_ID" IS '监控设备编号';
COMMENT ON COLUMN "IOT_SIP_RELATION"."RE_DEVICE_ID" IS '关联的设备id';
COMMENT ON COLUMN "IOT_SIP_RELATION"."RE_SCENE_MODEL_ID" IS '关联的场景id';
COMMENT ON COLUMN "IOT_SIP_RELATION"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "IOT_SIP_RELATION"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_SIP_RELATION"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "IOT_SIP_RELATION"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_SIP_RELATION"."REMARK" IS '备注';
COMMENT ON TABLE "IOT_SIP_RELATION" IS '监控设备关联表';

-- ----------------------------
-- Records of IOT_SIP_RELATION
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_SIP_RELATION
-- ----------------------------
ALTER TABLE "IOT_SIP_RELATION" ADD CONSTRAINT "SYS_C0012524" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table IOT_SIP_RELATION
-- ----------------------------
ALTER TABLE "IOT_SIP_RELATION" ADD CONSTRAINT "SYS_C0012158" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SIP_RELATION" ADD CONSTRAINT "SYS_C0012159" CHECK ("CHANNEL_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_SIP_RELATION
-- ----------------------------
CREATE TRIGGER "IOT_SIP_RELATION_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_SIP_RELATION" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  iot_sip_relation_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM iot_sip_relation;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_sip_relation_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_SOCIAL_PLATFORM
-- ----------------------------
DROP TABLE "IOT_SOCIAL_PLATFORM";
CREATE TABLE "IOT_SOCIAL_PLATFORM" (
  "SOCIAL_PLATFORM_ID" NUMBER(10,0) NOT NULL,
  "PLATFORM" VARCHAR2(42 CHAR) NOT NULL,
  "STATUS" NUMBER(10,0) NOT NULL DEFAULT 0,
  "CLIENT_ID" VARCHAR2(133 CHAR) NOT NULL,
  "SECRET_KEY" VARCHAR2(133 CHAR) NOT NULL,
  "REDIRECT_URI" VARCHAR2(160 CHAR) NOT NULL,
  "DEL_FLAG" CHAR(1 CHAR) NOT NULL DEFAULT '0',
  "CREATE_BY" VARCHAR2(85 CHAR) NOT NULL,
  "CREATE_TIME" TIMESTAMP(6) NOT NULL,
  "UPDATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(85 CHAR),
  "REMARK" VARCHAR2(666 CHAR),
  "BIND_URI" VARCHAR2(170 CHAR) NOT NULL,
  "REDIRECT_LOGIN_URI" VARCHAR2(170 CHAR) NOT NULL,
  "ERROR_MSG_URI" VARCHAR2(170 CHAR) NOT NULL
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_SOCIAL_PLATFORM"."SOCIAL_PLATFORM_ID" IS '第三方登录平台主键';
COMMENT ON COLUMN "IOT_SOCIAL_PLATFORM"."PLATFORM" IS '第三方登录平台';
COMMENT ON COLUMN "IOT_SOCIAL_PLATFORM"."STATUS" IS ' 0:启用 ,1:禁用';
COMMENT ON COLUMN "IOT_SOCIAL_PLATFORM"."CLIENT_ID" IS '第三方平台申请Id';
COMMENT ON COLUMN "IOT_SOCIAL_PLATFORM"."SECRET_KEY" IS '第三方平台密钥';
COMMENT ON COLUMN "IOT_SOCIAL_PLATFORM"."REDIRECT_URI" IS '用户认证后跳转地址';
COMMENT ON COLUMN "IOT_SOCIAL_PLATFORM"."DEL_FLAG" IS '删除标记位(0代表存在，1代表删除)';
COMMENT ON COLUMN "IOT_SOCIAL_PLATFORM"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_SOCIAL_PLATFORM"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_SOCIAL_PLATFORM"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_SOCIAL_PLATFORM"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_SOCIAL_PLATFORM"."REMARK" IS '备注';
COMMENT ON COLUMN "IOT_SOCIAL_PLATFORM"."BIND_URI" IS '绑定注册登录uri,http://localhost/login?bindId=';
COMMENT ON COLUMN "IOT_SOCIAL_PLATFORM"."REDIRECT_LOGIN_URI" IS '跳转登录uri,http://localhost/login?loginId=';
COMMENT ON COLUMN "IOT_SOCIAL_PLATFORM"."ERROR_MSG_URI" IS '错误提示uri,http://localhost/login?errorId=';
COMMENT ON TABLE "IOT_SOCIAL_PLATFORM" IS '第三方登录平台控制';

-- ----------------------------
-- Records of IOT_SOCIAL_PLATFORM
-- ----------------------------
INSERT INTO "IOT_SOCIAL_PLATFORM" VALUES ('1', 'QQ', 0, '102005066', 'PhkaBYgZ99999', 'https://iot.wumei.live/auth/callback/qq', '0', 'admin', TO_TIMESTAMP('2022-04-18 11:21:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2022-04-20 16:29:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', NULL, 'http://localhost/login?bindId=', 'http://localhost/login?loginId=', 'http://localhost/login?errorId=');
INSERT INTO "IOT_SOCIAL_PLATFORM" VALUES ('2', 'wechat_open_web', 0, 'wx906fdc1e0bf6abc8', ' ', 'https://iot.fastbee.cn/prod-api/auth/callback/wechat_open_web', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:41:37.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2024-04-18 11:45:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', NULL, 'https://iot.fastbee.cn/login?bindId=', 'https://iot.fastbee.cn/login?loginId=', 'https://iot.fastbee.cn/login?errorId=');
INSERT INTO "IOT_SOCIAL_PLATFORM" VALUES ('3', 'wechat_open_mobile', 0, 'wx6be3f0d7bf7154e1', ' ', 'http://localhost', '0', 'admin', TO_TIMESTAMP('2023-08-28 14:21:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL, 'http://localhost', 'http://localhost', 'http://localhost');
INSERT INTO "IOT_SOCIAL_PLATFORM" VALUES ('4', 'wechat_open_mini_program', 0, 'wx5bfbadf52adc17f3', ' ', 'http://localhost', '0', 'admin', TO_TIMESTAMP('2023-09-12 15:39:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL, 'http://localhost', 'http://localhost', 'http://localhost');
INSERT INTO "IOT_SOCIAL_PLATFORM" VALUES ('5', 'wechat_open_web_bind', 0, 'wx906fdc1e0bf6abc8', ' ', 'https://iot.fastbee.cn/prod-api/wechat/wxBind/callback?wxBindId=', '0', 'admin', TO_TIMESTAMP('2023-10-09 12:04:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2024-04-22 14:09:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', NULL, 'https://localhost', 'https://iot.fastbee.cn/user/profile?wxBindMsgId=', 'http://localhost');
INSERT INTO "IOT_SOCIAL_PLATFORM" VALUES ('6', 'wechat_open_public_account', 0, 'wx26b1bf6041ab6339', ' ', 'http://localhost', '0', 'admin', TO_TIMESTAMP('2024-04-22 14:04:59.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2024-04-22 14:13:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', '感谢您关注蜂信物联！', 'http://localhost', 'http://localhost', 'http://localhost');

-- ----------------------------
-- Primary Key structure for table IOT_SOCIAL_PLATFORM
-- ----------------------------
ALTER TABLE "IOT_SOCIAL_PLATFORM" ADD CONSTRAINT "SYS_C0012525" PRIMARY KEY ("SOCIAL_PLATFORM_ID");

-- ----------------------------
-- Checks structure for table IOT_SOCIAL_PLATFORM
-- ----------------------------
ALTER TABLE "IOT_SOCIAL_PLATFORM" ADD CONSTRAINT "SYS_C0012160" CHECK ("SOCIAL_PLATFORM_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SOCIAL_PLATFORM" ADD CONSTRAINT "SYS_C0012161" CHECK ("PLATFORM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SOCIAL_PLATFORM" ADD CONSTRAINT "SYS_C0012162" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SOCIAL_PLATFORM" ADD CONSTRAINT "SYS_C0012163" CHECK ("CLIENT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SOCIAL_PLATFORM" ADD CONSTRAINT "SYS_C0012164" CHECK ("SECRET_KEY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SOCIAL_PLATFORM" ADD CONSTRAINT "SYS_C0012165" CHECK ("REDIRECT_URI" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SOCIAL_PLATFORM" ADD CONSTRAINT "SYS_C0012166" CHECK ("DEL_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SOCIAL_PLATFORM" ADD CONSTRAINT "SYS_C0012167" CHECK ("CREATE_BY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SOCIAL_PLATFORM" ADD CONSTRAINT "SYS_C0012168" CHECK ("CREATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SOCIAL_PLATFORM" ADD CONSTRAINT "SYS_C0012169" CHECK ("BIND_URI" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SOCIAL_PLATFORM" ADD CONSTRAINT "SYS_C0012170" CHECK ("REDIRECT_LOGIN_URI" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SOCIAL_PLATFORM" ADD CONSTRAINT "SYS_C0012171" CHECK ("ERROR_MSG_URI" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_SOCIAL_PLATFORM
-- ----------------------------
CREATE TRIGGER "IOT_SOCIAL_PLATFORM_SOCIA_TRIG" BEFORE INSERT OR UPDATE ON "IOT_SOCIAL_PLATFORM" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.social_platform_id IS NULL THEN
SELECT  iot_social_platform_social_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(social_platform_id),0) INTO v_newVal FROM iot_social_platform;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_social_platform_social_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.social_platform_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_SOCIAL_USER
-- ----------------------------
DROP TABLE "IOT_SOCIAL_USER";
CREATE TABLE "IOT_SOCIAL_USER" (
  "SOCIAL_USER_ID" NUMBER(10,0) NOT NULL,
  "UUID" VARCHAR2(85 CHAR) NOT NULL,
  "SOURCE" VARCHAR2(42 CHAR) NOT NULL,
  "ACCESS_TOKEN" VARCHAR2(340 CHAR),
  "EXPIRE_IN" NUMBER(10,0),
  "REFRESH_TOKEN" VARCHAR2(340 CHAR),
  "OPEN_ID" VARCHAR2(133 CHAR),
  "UID_" VARCHAR2(85 CHAR),
  "ACCESS_CODE" VARCHAR2(85 CHAR),
  "UNION_ID" VARCHAR2(133 CHAR),
  "SCOPE" VARCHAR2(85 CHAR),
  "TOKEN_TYPE" VARCHAR2(85 CHAR),
  "ID_TOKEN" VARCHAR2(85 CHAR),
  "MAC_ALGORITHM" VARCHAR2(85 CHAR),
  "MAC_KEY" VARCHAR2(85 CHAR),
  "CODE" VARCHAR2(85 CHAR),
  "OAUTH_TOKEN" VARCHAR2(85 CHAR),
  "OAUTH_TOKEN_SECRET" VARCHAR2(85 CHAR),
  "CREATE_TIME" TIMESTAMP(6) NOT NULL,
  "CREATE_BY" VARCHAR2(85 CHAR) NOT NULL,
  "UPDATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(85 CHAR),
  "DEL_FLAG" CHAR(1 CHAR) NOT NULL DEFAULT '0',
  "STATUS" NUMBER(10,0) NOT NULL DEFAULT 0,
  "SYS_USER_ID" NUMBER(10,0),
  "USERNAME" VARCHAR2(85 CHAR),
  "NICKNAME" VARCHAR2(85 CHAR),
  "AVATAR" VARCHAR2(341 CHAR),
  "GENDER" NUMBER(10,0),
  "SOURCE_CLIENT" VARCHAR2(85 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_SOCIAL_USER"."SOCIAL_USER_ID" IS '第三方系统用户表主键';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."UUID" IS '第三方系统的唯一ID';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."SOURCE" IS '第三方用户来源';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."ACCESS_TOKEN" IS '用户的授权令牌';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."EXPIRE_IN" IS '第三方用户的授权令牌的有效期（部分平台可能没有）';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."REFRESH_TOKEN" IS '刷新令牌(部分平台可能没有)';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."OPEN_ID" IS '第三方用户的 open id（部分平台可能没有）';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."UID_" IS '第三方用户的 ID(部分平台可能没有)';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."ACCESS_CODE" IS '个别平台的授权信息（部分平台可能没有）';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."UNION_ID" IS '第三方用户的 union id(部分平台可能没有)';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."SCOPE" IS '第三方用户授予的权限(部分平台可能没有)';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."TOKEN_TYPE" IS '个别平台的授权信息（部分平台可能没有）';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."ID_TOKEN" IS 'id token（部分平台可能没有）';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."MAC_ALGORITHM" IS '小米平台用户的附带属性（部分平台可能没有）';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."MAC_KEY" IS '小米平台用户的附带属性(部分平台可能没有)';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."CODE" IS '用户的授权code（部分平台可能没有）';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."OAUTH_TOKEN" IS 'Twitter平台用户的附带属性(部分平台可能没有)';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."OAUTH_TOKEN_SECRET" IS 'Twitter平台用户的附带属性(部分平台可能没有)';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."DEL_FLAG" IS '删除标记位(0代表存在,2代表删除)';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."STATUS" IS '绑定状态(0:未绑定,1:绑定)';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."SYS_USER_ID" IS '用户ID';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."USERNAME" IS '用户名';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."NICKNAME" IS '用户昵称';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."AVATAR" IS '用户头像';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."GENDER" IS '用户性别';
COMMENT ON COLUMN "IOT_SOCIAL_USER"."SOURCE_CLIENT" IS '第三方用户来源客户端（web、app、小程序）';
COMMENT ON TABLE "IOT_SOCIAL_USER" IS '第三方登录用户';

-- ----------------------------
-- Records of IOT_SOCIAL_USER
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_SOCIAL_USER
-- ----------------------------
ALTER TABLE "IOT_SOCIAL_USER" ADD CONSTRAINT "SYS_C0012526" PRIMARY KEY ("SOCIAL_USER_ID");

-- ----------------------------
-- Checks structure for table IOT_SOCIAL_USER
-- ----------------------------
ALTER TABLE "IOT_SOCIAL_USER" ADD CONSTRAINT "SYS_C0012172" CHECK ("SOCIAL_USER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SOCIAL_USER" ADD CONSTRAINT "SYS_C0012173" CHECK ("UUID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SOCIAL_USER" ADD CONSTRAINT "SYS_C0012174" CHECK ("SOURCE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SOCIAL_USER" ADD CONSTRAINT "SYS_C0012175" CHECK ("CREATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SOCIAL_USER" ADD CONSTRAINT "SYS_C0012176" CHECK ("CREATE_BY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SOCIAL_USER" ADD CONSTRAINT "SYS_C0012177" CHECK ("DEL_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SOCIAL_USER" ADD CONSTRAINT "SYS_C0012178" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_SOCIAL_USER
-- ----------------------------
CREATE TRIGGER "IOT_SOCIAL_USER_SOCIAL_US_TRIG" BEFORE INSERT OR UPDATE ON "IOT_SOCIAL_USER" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.social_user_id IS NULL THEN
SELECT  iot_social_user_social_use_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(social_user_id),0) INTO v_newVal FROM iot_social_user;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_social_user_social_use_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.social_user_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_SUB_GATEWAY
-- ----------------------------
DROP TABLE "IOT_SUB_GATEWAY";
CREATE TABLE "IOT_SUB_GATEWAY" (
  "ID" NUMBER(38,0) NOT NULL,
  "GW_DEVICE_ID" NUMBER(38,0) NOT NULL,
  "SUB_DEVICE_ID" NUMBER(38,0) NOT NULL,
  "SLAVE_ID" NUMBER(10,0),
  "CREATE_BY" VARCHAR2(85 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(85 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(666 CHAR)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_SUB_GATEWAY"."ID" IS '业务id';
COMMENT ON COLUMN "IOT_SUB_GATEWAY"."GW_DEVICE_ID" IS '网关设备id';
COMMENT ON COLUMN "IOT_SUB_GATEWAY"."SUB_DEVICE_ID" IS '子设备id';
COMMENT ON COLUMN "IOT_SUB_GATEWAY"."SLAVE_ID" IS '从机地址';
COMMENT ON COLUMN "IOT_SUB_GATEWAY"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_SUB_GATEWAY"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_SUB_GATEWAY"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_SUB_GATEWAY"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_SUB_GATEWAY"."REMARK" IS '备注';
COMMENT ON TABLE "IOT_SUB_GATEWAY" IS '网关与子设备关联表';

-- ----------------------------
-- Records of IOT_SUB_GATEWAY
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_SUB_GATEWAY
-- ----------------------------
ALTER TABLE "IOT_SUB_GATEWAY" ADD CONSTRAINT "SYS_C0012527" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table IOT_SUB_GATEWAY
-- ----------------------------
ALTER TABLE "IOT_SUB_GATEWAY" ADD CONSTRAINT "SYS_C0012179" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SUB_GATEWAY" ADD CONSTRAINT "SYS_C0012180" CHECK ("GW_DEVICE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_SUB_GATEWAY" ADD CONSTRAINT "SYS_C0012181" CHECK ("SUB_DEVICE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_SUB_GATEWAY
-- ----------------------------
CREATE TRIGGER "IOT_SUB_GATEWAY_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_SUB_GATEWAY" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  iot_sub_gateway_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM iot_sub_gateway;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_sub_gateway_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_THINGS_MODEL
-- ----------------------------
DROP TABLE "IOT_THINGS_MODEL";
CREATE TABLE "IOT_THINGS_MODEL" (
  "MODEL_ID" NUMBER(38,0) NOT NULL,
  "MODEL_NAME" VARCHAR2(64 CHAR) NOT NULL,
  "PRODUCT_ID" NUMBER(38,0) NOT NULL,
  "PRODUCT_NAME" VARCHAR2(64 CHAR) NOT NULL,
  "TENANT_ID" NUMBER(38,0) NOT NULL,
  "TENANT_NAME" VARCHAR2(30 CHAR) NOT NULL,
  "IDENTIFIER" VARCHAR2(32 CHAR) NOT NULL,
  "TYPE" NUMBER(10,0) NOT NULL,
  "DATATYPE" VARCHAR2(64 CHAR) NOT NULL,
  "SPECS" CLOB,
  "IS_CHART" NUMBER(10,0) NOT NULL DEFAULT 0,
  "IS_MONITOR" NUMBER(10,0) NOT NULL DEFAULT 0,
  "IS_HISTORY" NUMBER(10,0) DEFAULT 0,
  "IS_READONLY" NUMBER(10,0) DEFAULT 0,
  "IS_SHARE_PERM" NUMBER(10,0) DEFAULT 0,
  "MODEL_ORDER" NUMBER(10,0) DEFAULT 0,
  "DEL_FLAG" CHAR(1 CHAR) DEFAULT 0,
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR),
  "FORMULA" VARCHAR2(255 CHAR),
  "IS_APP" NUMBER(10,0)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_THINGS_MODEL"."MODEL_ID" IS '物模型ID';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."MODEL_NAME" IS '物模型名称';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."PRODUCT_ID" IS '产品ID';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."PRODUCT_NAME" IS '产品名称';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."TENANT_ID" IS '租户ID';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."TENANT_NAME" IS '租户名称';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."IDENTIFIER" IS '标识符，产品下唯一';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."TYPE" IS '模型类别（1-属性，2-功能，3-事件）';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."DATATYPE" IS '数据类型（integer、decimal、string、bool、array、enum）';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."SPECS" IS '数据定义';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."IS_CHART" IS '是否图表展示（0-否，1-是）';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."IS_MONITOR" IS '是否实时监测（0-否，1-是）';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."IS_HISTORY" IS '是否历史存储（0-否，1-是）';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."IS_READONLY" IS '是否只读数据(0-否，1-是)';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."IS_SHARE_PERM" IS '是否设备分享权限(0-否，1-是)';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."MODEL_ORDER" IS '排序，值越大，排序越靠前';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."REMARK" IS '备注';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."FORMULA" IS '计算公式';
COMMENT ON COLUMN "IOT_THINGS_MODEL"."IS_APP" IS '是否在APP显示(0-否，1-是)';
COMMENT ON TABLE "IOT_THINGS_MODEL" IS '物模型';

-- ----------------------------
-- Records of IOT_THINGS_MODEL
-- ----------------------------
INSERT INTO "IOT_THINGS_MODEL" VALUES ('866', '54651', '162', 'CAT-T200测试13.19', '1', 'admin', '4', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-19 18:51:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('867', '564', '162', 'CAT-T200测试13.19', '1', 'admin', '5', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-19 18:51:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('868', '1', '163', 'CAT-T200 TCP测试', '1', 'admin', '0', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-20 10:15:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('869', '2', '163', 'CAT-T200 TCP测试', '1', 'admin', '1', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-20 10:15:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('870', '3', '163', 'CAT-T200 TCP测试', '1', 'admin', '2', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-20 10:15:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('871', '4', '163', 'CAT-T200 TCP测试', '1', 'admin', '3', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-20 10:15:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('872', '5', '163', 'CAT-T200 TCP测试', '1', 'admin', '4', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-20 10:15:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('873', '6', '163', 'CAT-T200 TCP测试', '1', 'admin', '5', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-20 10:15:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('875', '111', '165', 'gjz-chanpin', '1', 'admin', 'keystr-1', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '1', '1', '1', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-20 15:47:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-12-20 16:55:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('876', 'DI', '166', 'IO088-12.20', '1', 'admin', '0', '1', 'enum', '{"type": "enum", "showWay": "select", "enumList": [{"text": "0", "value": "DI-1"}, {"text": "1", "value": "DI-2"}, {"text": "2", "value": "DI-3"}, {"text": "3", "value": "DI-4"}, {"text": "4", "value": "DI-5"}, {"text": "5", "value": "DI-6"}, {"text": "6", "value": "DI-7"}, {"text": "7", "value": "DI-8"}]}', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-20 16:01:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('877', 'DI', '167', '088-12.20', '1', 'admin', '0', '1', 'enum', '{"type": "enum", "showWay": "select", "enumList": [{"text": "0", "value": "DI-1"}, {"text": "1", "value": "DI-2"}, {"text": "2", "value": "DI-3"}, {"text": "3", "value": "DI-4"}, {"text": "4", "value": "DI-5"}, {"text": "5", "value": "DI-6"}, {"text": "6", "value": "DI-7"}, {"text": "7", "value": "DI-8"}]}', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-20 16:24:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('878', '222', '165', 'gjz-chanpin', '1', 'admin', 'keystr-2', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '1', '1', '1', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-20 16:56:05.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('879', '111', '168', 'gjz-chanpin2', '1', 'admin', 'keystr-1', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '1', '1', '1', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-20 17:57:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('880', '222', '168', 'gjz-chanpin2', '1', 'admin', 'keystr-2', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '1', '1', '1', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-20 17:58:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('881', '电源管理', '169', 'YK电源控制器', '1', 'admin', 'power', '1', 'string', '{"type": "string", "maxLength": 1024}', '0', '0', '0', '1', '0', '0', '0', 'admin', TO_TIMESTAMP('2023-12-26 13:55:05.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('882', '1', '170', '照明开关', '1', 'admin', '1', '1', 'integer', '{"max": 1, "min": 1, "step": 1, "type": "integer", "unit": "1"}', '1', '1', '1', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2024-01-04 14:55:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('113', '设备开关', '41', '温湿度智能开关', '1', 'admin', 'switch', '1', 'bool', '{\"type\": \"bool\", \"trueText\": \"打开\", \"falseText\": \"关闭\"}', '0', '0', '1', '0', '0', '9', '0', NULL, TO_TIMESTAMP('2022-08-14 00:06:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-03-31 23:43:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('125', '空气温度', '41', '温湿度智能开关', '1', 'admin', 'temperature', '1', 'decimal', '{\"max\": 120, \"min\": -20, \"step\": 0.1, \"type\": \"decimal\", \"unit\": \"℃\"}', '1', '1', '1', '1', '0', '1', '0', NULL, TO_TIMESTAMP('2022-11-05 23:56:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-03-31 23:44:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('126', '空气湿度', '41', '温湿度智能开关', '1', 'admin', 'humidity', '1', 'decimal', '{"max": 100, "min": 0, "step": 0.1, "type": "decimal", "unit": "%"}', '1', '1', '1', '1', '0', '3', '0', NULL, TO_TIMESTAMP('2022-11-05 23:56:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-03-31 23:44:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('127', '二氧化碳', '41', '温湿度智能开关', '1', 'admin', 'co2', '1', 'integer', '{"max": 6000, "min": 100, "step": 1, "type": "integer", "unit": "ppm"}', '1', '1', '1', '1', '0', '2', '0', NULL, TO_TIMESTAMP('2022-11-05 23:56:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-03-31 23:44:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('128', '室内亮度', '41', '温湿度智能开关', '1', 'admin', 'brightness', '1', 'integer', '{"max": 10000, "min": 0, "step": 1, "type": "integer", "unit": "cd/m2"}', '1', '1', '1', '1', '0', '4', '0', NULL, TO_TIMESTAMP('2022-11-05 23:56:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-03-31 23:44:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('129', '运行档位', '41', '温湿度智能开关', '1', 'admin', 'gear', '1', 'enum', '{\"type\": \"enum\", \"showWay\": \"select\", \"enumList\": [{\"text\": \"低速档位\", \"value\": \"0\"}, {\"text\": \"中速档位\", \"value\": \"1\"}, {\"text\": \"中高速档位\", \"value\": \"2\"}, {\"text\": \"高速档位\", \"value\": \"3\"}]}', '0', '0', '1', '0', '0', '8', '0', NULL, TO_TIMESTAMP('2022-11-05 23:56:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-03-31 23:43:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('130', '灯光色值', '41', '温湿度智能开关', '1', 'admin', 'light_color', '1', 'array', '{"type": "array", "arrayType": "integer", "arrayCount": "3"}', '0', '0', '1', '0', '0', '5', '0', NULL, TO_TIMESTAMP('2022-11-05 23:56:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-09-25 22:57:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('131', '屏显消息', '41', '温湿度智能开关', '1', 'admin', 'message', '1', 'string', '{"type": "string", "maxLength": 1024}', '0', '0', '1', '0', '0', '7', '0', NULL, TO_TIMESTAMP('2022-11-05 23:56:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-03-31 23:43:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('132', '上报数据', '41', '温湿度智能开关', '1', 'admin', 'report_monitor', '1', 'integer', '{\"max\": 10, \"min\": 1, \"step\": 1, \"type\": \"integer\", \"unit\": \"次数\"}', '0', '0', '0', '0', '0', '10', '0', NULL, TO_TIMESTAMP('2022-11-05 23:56:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-03-31 23:43:38.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('134', '环境温度过高', '41', '温湿度智能开关', '1', 'admin', 'height_temperature', '1', 'decimal', '{\"max\": 100, \"min\": 0, \"step\": 0.1, \"type\": \"decimal\", \"unit\": \"℃\"}', '0', '0', '1', '0', '0', '0', '0', NULL, TO_TIMESTAMP('2022-11-05 23:56:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-03-31 23:44:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('135', '设备发生异常', '41', '温湿度智能开关', '1', 'admin', 'exception', '1', 'string', '{"type": "string", "maxLength": 1024}', '0', '0', '1', '0', '0', '0', '0', NULL, TO_TIMESTAMP('2022-11-05 23:56:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-03-31 23:44:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('161', '子设备', '96', '网关产品', '1', 'admin', 'device', '1', 'array', '{\"type\": \"array\", \"params\": [{\"id\": \"device_co2\", \"name\": \"二氧化碳\", \"order\": 0, \"isChart\": 1, \"datatype\": {\"max\": 6000, \"min\": 100, \"step\": 1, \"type\": \"integer\", \"unit\": \"ppm\", \"enumList\": [{\"text\": \"\", \"value\": \"\"}], \"arrayType\": \"int\"}, \"isHistory\": 1, \"isMonitor\": 1, \"isReadonly\": 1, \"isSharePerm\": 0}, {\"id\": \"device_temperature\", \"name\": \"空气温度-只读\", \"order\": 4, \"datatype\": {\"max\": 120, \"min\": -20, \"step\": 0.1, \"type\": \"decimal\", \"unit\": \"℃\"}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 1}, {\"id\": \"device_gear\", \"name\": \"运行档位\", \"order\": 6, \"isChart\": 0, \"datatype\": {\"type\": \"enum\", \"enumList\": [{\"text\": \"低速档位\", \"value\": \"0\"}, {\"text\": \"中速档位\", \"value\": \"1\"}, {\"text\": \"中高速档位\", \"value\": \"2\"}, {\"text\": \"高速档位\", \"value\": \"3\"}]}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0, \"isSharePerm\": 1}, {\"id\": \"device_switch\", \"name\": \"设备开关\", \"order\": 5, \"isChart\": 0, \"datatype\": {\"type\": \"bool\", \"trueText\": \"打开\", \"falseText\": \"关闭\"}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0, \"isSharePerm\": 1}, {\"id\": \"device_report_monitor\", \"name\": \"上报监测数据\", \"order\": 9, \"isChart\": 0, \"datatype\": {\"max\": 10, \"min\": 1, \"step\": 1, \"type\": \"integer\", \"unit\": \"次数\"}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0, \"isSharePerm\": 1}, {\"id\": \"device_irc\", \"name\": \"射频遥控\", \"order\": 1, \"isChart\": 0, \"datatype\": {\"type\": \"enum\", \"showWay\": \"button\", \"enumList\": [{\"text\": \"遥控学习\", \"value\": \"FFXX01\"}, {\"text\": \"遥控清码\", \"value\": \"FFXX02\"}, {\"text\": \"打开开关\", \"value\": \"FFXX03\"}, {\"text\": \"关闭开关\", \"value\": \"FFXX04\"}, {\"text\": \"暂停\", \"value\": \"FFXX05\"}, {\"text\": \"锁定\", \"value\": \"FFXX06\"}]}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0, \"isSharePerm\": 1}], \"arrayType\": \"object\", \"arrayCount\": \"5\"}', '0', '0', '0', '0', '1', '10', '0', NULL, TO_TIMESTAMP('2023-02-25 22:51:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-09-25 23:13:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('162', '功能分组', '96', '网关产品', '1', 'admin', 'category', '1', 'object', '{\"type\": \"object\", \"params\": [{\"id\": \"category_light\", \"name\": \"光照\", \"order\": 1, \"isChart\": 1, \"datatype\": {\"max\": 100, \"min\": 0, \"step\": 1, \"type\": \"decimal\", \"unit\": \"mm\"}, \"isHistory\": 1, \"isMonitor\": 1, \"isReadonly\": 1}, {\"id\": \"category_humidity\", \"name\": \"空气湿度\", \"order\": 2, \"isChart\": 1, \"datatype\": {\"max\": 100, \"min\": 0, \"step\": 0.1, \"type\": \"decimal\", \"unit\": \"%\"}, \"isHistory\": 0, \"isMonitor\": 1, \"isReadonly\": 1}, {\"id\": \"category_temperature\", \"name\": \"空气温度-只读\", \"order\": 3, \"isChart\": 0, \"datatype\": {\"max\": 120, \"min\": -20, \"step\": 0.1, \"type\": \"decimal\", \"unit\": \"℃\"}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 1}, {\"id\": \"category_report_monitor\", \"name\": \"上报监测数据\", \"order\": 7, \"isChart\": 0, \"datatype\": {\"max\": 10, \"min\": 1, \"step\": 1, \"type\": \"integer\", \"unit\": \"次数\"}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0, \"isSharePerm\": 1}, {\"id\": \"category_gear\", \"name\": \"运行档位\", \"order\": 5, \"isChart\": 0, \"datatype\": {\"type\": \"enum\", \"enumList\": [{\"text\": \"低速档位\", \"value\": \"0\"}, {\"text\": \"中速档位\", \"value\": \"1\"}, {\"text\": \"中高速档位\", \"value\": \"2\"}, {\"text\": \"高速档位\", \"value\": \"3\"}]}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0, \"isSharePerm\": 1}, {\"id\": \"category_switch\", \"name\": \"设备开关\", \"order\": 4, \"isChart\": 0, \"datatype\": {\"type\": \"bool\", \"trueText\": \"打开\", \"falseText\": \"关闭\"}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0, \"isSharePerm\": 1}, {\"id\": \"category_irc\", \"name\": \"射频遥控\", \"order\": 6, \"isChart\": 0, \"datatype\": {\"type\": \"enum\", \"showWay\": \"button\", \"enumList\": [{\"text\": \"遥控配对\", \"value\": \"FFXX01\"}, {\"text\": \"遥控清码\", \"value\": \"FFXX02\"}, {\"text\": \"打开开关\", \"value\": \"FFXX03\"}, {\"text\": \"关闭开关\", \"value\": \"FFXX04\"}, {\"text\": \"暂停\", \"value\": \"FFXX05\"}, {\"text\": \"锁定\", \"value\": \"FFXX06\"}]}, \"isHistory\": 1, \"isMonitor\": 0, \"isReadonly\": 0, \"isSharePerm\": 1}]}', '0', '0', '0', '0', '1', '9', '0', NULL, TO_TIMESTAMP('2023-02-25 22:51:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-09-03 11:03:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('163', '空气温度', '96', '网关产品', '1', 'admin', 'temperature', '1', 'decimal', '{\"max\": 120, \"min\": -20, \"step\": 0.1, \"type\": \"decimal\", \"unit\": \"℃\"}', '1', '1', '1', '1', '0', '0', '0', NULL, TO_TIMESTAMP('2023-02-25 22:52:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-03-31 16:08:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('164', '设备开关', '96', '网关产品', '1', 'admin', 'switch', '1', 'bool', '{\"type\": \"bool\", \"trueText\": \"打开\", \"falseText\": \"关闭\"}', '0', '0', '1', '0', '1', '8', '0', NULL, TO_TIMESTAMP('2023-02-25 22:52:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-09-03 11:03:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('165', '运行档位', '96', '网关产品', '1', 'admin', 'gear', '1', 'enum', '{\"type\": \"enum\", \"showWay\": \"select\", \"enumList\": [{\"text\": \"低速档位\", \"value\": \"0\"}, {\"text\": \"中速档位\", \"value\": \"1\"}, {\"text\": \"中高速档位\", \"value\": \"2\"}, {\"text\": \"高速档位\", \"value\": \"3\"}]}', '0', '0', '1', '0', '1', '7', '0', NULL, TO_TIMESTAMP('2023-02-25 22:52:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-09-03 11:03:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('166', '灯光色值', '96', '网关产品', '1', 'admin', 'light_color', '1', 'array', '{"type": "array", "arrayType": "integer", "arrayCount": "3"}', '0', '0', '1', '0', '0', '0', '0', NULL, TO_TIMESTAMP('2023-02-25 22:52:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-03-31 16:08:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('167', '上报监测数据', '96', '网关产品', '1', 'admin', 'report_monitor', '1', 'integer', '{\"max\": 10, \"min\": 1, \"step\": 1, \"type\": \"integer\", \"unit\": \"次数\"}', '0', '0', '1', '0', '1', '11', '0', NULL, TO_TIMESTAMP('2023-02-25 22:52:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-09-03 11:03:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('168', '环境温度过高', '96', '网关产品', '1', 'admin', 'height_temperature', '1', 'decimal', '{\"max\": 100, \"min\": 0, \"step\": 0.1, \"type\": \"decimal\", \"unit\": \"℃\"}', '0', '0', '1', '0', '0', '0', '0', NULL, TO_TIMESTAMP('2023-02-25 22:52:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-03-31 16:08:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('169', '设备发生异常', '96', '网关产品', '1', 'admin', 'exception', '1', 'string', '{"type": "string", "maxLength": 1024}', '0', '0', '1', '0', '0', '0', '0', NULL, TO_TIMESTAMP('2023-02-25 22:52:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-03-31 16:08:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('170', '屏显消息', '96', '网关产品', '1', 'admin', 'message', '1', 'string', '{"type": "string", "maxLength": 1024}', '0', '0', '1', '0', '1', '0', '0', NULL, TO_TIMESTAMP('2023-02-25 22:52:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-09-03 11:03:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('171', '设备重启', '96', '网关产品', '1', 'admin', 'reset', '1', 'enum', '{\"type\": \"enum\", \"showWay\": \"button\", \"enumList\": [{\"text\": \"重启\", \"value\": \"restart\"}]}', '0', '0', '1', '0', '1', '0', '0', NULL, TO_TIMESTAMP('2023-02-25 22:52:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-09-03 11:03:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('174', '室内亮度', '96', '网关产品', '1', 'admin', 'brightness', '1', 'integer', '{"max": 10000, "min": 0, "step": 1, "type": "integer", "unit": "cd/m2"}', '1', '1', '1', '1', '0', '0', '0', NULL, TO_TIMESTAMP('2023-02-26 00:56:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-09-03 10:40:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('175', '设备重启', '41', '智能开关', '1', 'admin', 'reset', '1', 'enum', '{\"type\": \"enum\", \"showWay\": \"button\", \"enumList\": [{\"text\": \"重启\", \"value\": \"restart\"}]}', '0', '0', '1', '0', '0', '6', '0', NULL, TO_TIMESTAMP('2023-02-26 02:20:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-04-01 23:40:05.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('385', '射频遥控', '41', '★智能开关', '1', 'admin', 'irc', '1', 'enum', '{\"type\": \"enum\", \"showWay\": \"button\", \"enumList\": [{\"text\": \"遥控学习\", \"value\": \"FFXX01\"}, {\"text\": \"遥控清码\", \"value\": \"FFXX02\"}, {\"text\": \"打开开关\", \"value\": \"FFXX03\"}, {\"text\": \"关闭开关\", \"value\": \"FFXX04\"}, {\"text\": \"暂停\", \"value\": \"FFXX05\"}, {\"text\": \"锁定\", \"value\": \"FFXX06\"}]}', '0', '0', '1', '0', '0', '11', '0', 'admin', TO_TIMESTAMP('2023-03-31 23:46:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-04-13 01:38:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('439', '上报状态', '41', '★智能开关产品', '1', 'admin', 'status', '1', 'enum', '{\"type\": \"enum\", \"showWay\": \"button\", \"enumList\": [{\"text\": \"更新状态\", \"value\": \"update_status\"}]}', '0', '0', '0', '0', '0', '12', '0', 'admin', TO_TIMESTAMP('2023-04-13 01:39:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-04-13 01:39:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('493', '漏水值', '112', '★MODBUS协议产品', '1', 'admin', '0', '1', 'integer', '{\"max\": 100, \"min\": 1, \"step\": 1, \"type\": \"integer\", \"unit\": \"度\"}', '0', '0', '1', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2023-09-13 23:33:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('494', '温度', '112', '★MODBUS协议产品', '1', 'admin', '0', '1', 'integer', '{\"max\": 100, \"min\": 1, \"step\": 1, \"type\": \"integer\", \"unit\": \"°\"}', '0', '0', '1', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2023-09-13 23:33:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('495', '电量', '112', '★MODBUS协议产品', '1', 'admin', '1', '1', 'integer', '{"max": 100, "min": 1, "step": 1, "type": "integer", "unit": ""}', '0', '0', '1', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2023-09-13 23:33:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('499', '上报状态', '130', 'TCP测试设备', '1', 'admin', 'status', '1', 'enum', '{\"type\": \"enum\", \"showWay\": \"button\", \"enumList\": [{\"text\": \"更新状态\", \"value\": \"update_status\"}]}', '0', '0', '0', '0', '1', '0', '0', 'admin', TO_TIMESTAMP('2023-09-19 11:22:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('836', 'DI', '156', 'IO088-12.11.03', '1', 'admin', '0', '1', 'enum', '{"type": "enum", "showWay": "select", "enumList": [{"text": "0", "value": "DI-1"}, {"text": "1", "value": "DI-2"}, {"text": "2", "value": "DI-3"}, {"text": "3", "value": "DI-4"}, {"text": "4", "value": "DI-5"}, {"text": "5", "value": "DI-6"}, {"text": "6", "value": "DI-7"}, {"text": "7", "value": "DI-8"}]}', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-12 10:33:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('837', 'DI', '157', 'IO088-12.11.04', '1', 'admin', '0', '1', 'enum', '{"type": "enum", "showWay": "select", "enumList": [{"text": "0", "value": "DI-1"}, {"text": "1", "value": "DI-2"}, {"text": "2", "value": "DI-3"}, {"text": "3", "value": "DI-4"}, {"text": "4", "value": "DI-5"}, {"text": "5", "value": "DI-6"}, {"text": "6", "value": "DI-7"}, {"text": "7", "value": "DI-8"}]}', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-12 10:33:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('838', 'DI', '158', 'IO088-12.11.05', '1', 'admin', '0', '1', 'enum', '{"type": "enum", "showWay": "select", "enumList": [{"text": "0", "value": "DI-1"}, {"text": "1", "value": "DI-2"}, {"text": "2", "value": "DI-3"}, {"text": "3", "value": "DI-4"}, {"text": "4", "value": "DI-5"}, {"text": "5", "value": "DI-6"}, {"text": "6", "value": "DI-7"}, {"text": "7", "value": "DI-8"}]}', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-12 10:33:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('839', 'DI', '159', 'IO088-12.12.01', '1', 'admin', '0', '1', 'enum', '{"type": "enum", "showWay": "select", "enumList": [{"text": "0", "value": "DI-1"}, {"text": "1", "value": "DI-2"}, {"text": "2", "value": "DI-3"}, {"text": "3", "value": "DI-4"}, {"text": "4", "value": "DI-5"}, {"text": "5", "value": "DI-6"}, {"text": "6", "value": "DI-7"}, {"text": "7", "value": "DI-8"}]}', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-12 14:11:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('840', '上报状态', '160', '智能中控xiaoyue', '31', '564601654', 'status', '1', 'enum', '{\"type\": \"enum\", \"showWay\": \"button\", \"enumList\": [{\"text\": \"更新状态\", \"value\": \"update_status\"}]}', '0', '0', '0', '0', '1', '0', '0', 'admin', TO_TIMESTAMP('2023-12-14 23:33:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('841', '中控ECU', '160', '智能中控xiaoyue', '31', '564601654', 'ECU', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '0', '0', '1', '0', '1', '0', '0', '18926529123', TO_TIMESTAMP('2023-12-14 23:33:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('862', '123', '162', 'CAT-T200测试13.19', '1', 'admin', '0', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-19 18:51:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('863', '54165', '162', 'CAT-T200测试13.19', '1', 'admin', '1', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-19 18:51:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('864', '4651', '162', 'CAT-T200测试13.19', '1', 'admin', '2', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-19 18:51:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL" VALUES ('865', '7894', '162', 'CAT-T200测试13.19', '1', 'admin', '3', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-19 18:51:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);


-- ----------------------------
-- Primary Key structure for table IOT_THINGS_MODEL
-- ----------------------------
ALTER TABLE "IOT_THINGS_MODEL" ADD CONSTRAINT "SYS_C0012528" PRIMARY KEY ("MODEL_ID");

-- ----------------------------
-- Checks structure for table IOT_THINGS_MODEL
-- ----------------------------
ALTER TABLE "IOT_THINGS_MODEL" ADD CONSTRAINT "SYS_C0012182" CHECK ("MODEL_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL" ADD CONSTRAINT "SYS_C0012183" CHECK ("MODEL_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL" ADD CONSTRAINT "SYS_C0012184" CHECK ("PRODUCT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL" ADD CONSTRAINT "SYS_C0012185" CHECK ("PRODUCT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL" ADD CONSTRAINT "SYS_C0012186" CHECK ("TENANT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL" ADD CONSTRAINT "SYS_C0012187" CHECK ("TENANT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL" ADD CONSTRAINT "SYS_C0012188" CHECK ("IDENTIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL" ADD CONSTRAINT "SYS_C0012189" CHECK ("TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL" ADD CONSTRAINT "SYS_C0012190" CHECK ("DATATYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL" ADD CONSTRAINT "SYS_C0012191" CHECK ("IS_CHART" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL" ADD CONSTRAINT "SYS_C0012192" CHECK ("IS_MONITOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_THINGS_MODEL
-- ----------------------------
CREATE TRIGGER "IOT_THINGS_MODEL_MODEL_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_THINGS_MODEL" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.model_id IS NULL THEN
SELECT  iot_things_model_model_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(model_id),0) INTO v_newVal FROM iot_things_model;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_things_model_model_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.model_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_THINGS_MODEL_TEMPLATE
-- ----------------------------
DROP TABLE "IOT_THINGS_MODEL_TEMPLATE";
CREATE TABLE "IOT_THINGS_MODEL_TEMPLATE" (
  "TEMPLATE_ID" NUMBER(38,0) NOT NULL,
  "TEMPLATE_NAME" VARCHAR2(64 CHAR) NOT NULL,
  "TENANT_ID" NUMBER(38,0) NOT NULL,
  "TENANT_NAME" VARCHAR2(30 CHAR) NOT NULL,
  "IDENTIFIER" VARCHAR2(32 CHAR) NOT NULL,
  "TYPE" NUMBER(10,0) NOT NULL,
  "DATATYPE" VARCHAR2(64 CHAR) NOT NULL,
  "SPECS" CLOB,
  "IS_SYS" NUMBER(10,0) NOT NULL DEFAULT 0,
  "IS_CHART" NUMBER(10,0) NOT NULL DEFAULT 0,
  "IS_MONITOR" NUMBER(10,0) NOT NULL DEFAULT 0,
  "IS_HISTORY" NUMBER(10,0) NOT NULL DEFAULT 0,
  "IS_READONLY" NUMBER(10,0) DEFAULT 0,
  "IS_SHARE_PERM" NUMBER(10,0) DEFAULT 0,
  "MODEL_ORDER" NUMBER(10,0) DEFAULT 0,
  "DEL_FLAG" CHAR(1 CHAR) DEFAULT 0,
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR),
  "FORMULA" VARCHAR2(255 CHAR),
  "IS_APP" NUMBER(10,0)
)
LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."TEMPLATE_ID" IS '物模型ID';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."TEMPLATE_NAME" IS '物模型名称';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."TENANT_ID" IS '租户ID';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."TENANT_NAME" IS '租户名称';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."IDENTIFIER" IS '标识符，产品下唯一';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."TYPE" IS '模型类别（1-属性，2-功能，3-事件）';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."DATATYPE" IS '数据类型（integer、decimal、string、bool、array、enum）';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."SPECS" IS '数据定义';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."IS_SYS" IS '是否系统通用（0-否，1-是）';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."IS_CHART" IS '是否图表展示（0-否，1-是）';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."IS_MONITOR" IS '是否实时监测（0-否，1-是）';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."IS_HISTORY" IS '是否历史存储 (0-否，1-是）';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."IS_READONLY" IS '是否只读数据(0-否，1-是)';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."IS_SHARE_PERM" IS '是否设备分享权限(0-否，1-是)';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."MODEL_ORDER" IS '排序，值越大，排序越靠前';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."REMARK" IS '备注';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."FORMULA" IS '计算公式';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TEMPLATE"."IS_APP" IS '是否在APP显示(0-否，1-是)';
COMMENT ON TABLE "IOT_THINGS_MODEL_TEMPLATE" IS '物模型模板';

-- ----------------------------
-- Records of IOT_THINGS_MODEL_TEMPLATE
-- ----------------------------
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('362', '线电压UAB', '1', 'admin', '40', '1', 'integer', '{"max": 500, "min": 0, "step": 1, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '0', '4', '0', ' ', TO_TIMESTAMP('2023-12-06 16:34:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-12-07 18:11:05.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('363', '线电压UBC', '1', 'admin', '41', '1', 'integer', '{"max": 500, "min": 0, "step": 1, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '0', '5', '0', ' ', TO_TIMESTAMP('2023-12-06 16:35:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-12-07 18:11:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('364', '线电压UAC', '1', 'admin', '42', '1', 'integer', '{"max": 500, "min": 0, "step": 1, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '0', '6', '0', ' ', TO_TIMESTAMP('2023-12-06 16:35:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-12-07 18:11:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('365', '电流IA', '1', 'admin', '43', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '1', '0', '7', '0', ' ', TO_TIMESTAMP('2023-12-06 16:36:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-12-07 18:11:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('366', '电流IB', '1', 'admin', '44', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '1', '0', '8', '0', ' ', TO_TIMESTAMP('2023-12-06 16:36:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-12-07 18:11:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('367', '电流IC', '1', 'admin', '45', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '1', '0', '9', '0', ' ', TO_TIMESTAMP('2023-12-06 16:37:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-12-07 18:11:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('368', 'A相有功功率', '1', 'admin', '46', '1', 'integer', '{"max": 1000, "min": 0, "step": 1, "type": "integer", "unit": "W"}', '1', '0', '0', '0', '1', '0', '10', '0', ' ', TO_TIMESTAMP('2023-12-06 16:37:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-12-07 18:11:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('369', 'B相有功功率', '1', 'admin', '47', '1', 'integer', '{"max": 1000, "min": 0, "step": 1, "type": "integer", "unit": "W"}', '1', '0', '0', '0', '1', '0', '11', '0', ' ', TO_TIMESTAMP('2023-12-06 16:38:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-12-07 18:11:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('370', 'C相有功功率', '1', 'admin', '48', '1', 'integer', '{"max": 1000, "min": 0, "step": 1, "type": "integer", "unit": "W"}', '1', '0', '0', '0', '1', '0', '12', '0', ' ', TO_TIMESTAMP('2023-12-06 16:39:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-12-07 18:11:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('371', '总有功功率', '1', 'admin', '49', '1', 'integer', '{"max": 3000, "min": 0, "step": 1, "type": "integer", "unit": "W"}', '1', '0', '0', '0', '1', '0', '13', '0', ' ', TO_TIMESTAMP('2023-12-06 16:39:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-12-07 18:11:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('382', '电压', '1', 'admin', '37', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-07 17:39:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('394', 'A相电压', '1', 'admin', '0', '1', 'integer', '{"max": 220, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-07 19:45:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, '%s*10', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('395', 'B相电压', '1', 'admin', '1', '1', 'integer', '{"max": 220, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-07 19:45:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('396', 'C相电压', '1', 'admin', '2', '1', 'integer', '{"max": 220, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-07 19:45:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('397', 'A相电流', '1', 'admin', '3', '1', 'integer', '{"max": 220, "min": 0, "step": 0, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-07 19:45:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('398', 'B相电流', '1', 'admin', '4', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-07 19:45:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('399', 'C相电流', '1', 'admin', '5', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-07 19:45:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('400', 'A相电压', '1', 'admin', '0', '1', 'integer', '{"max": 220, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-07 19:46:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, '%s*10', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('401', 'B相电压', '1', 'admin', '1', '1', 'integer', '{"max": 220, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-07 19:46:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('402', 'C相电压', '1', 'admin', '2', '1', 'integer', '{"max": 220, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-07 19:46:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('403', 'A相电流', '1', 'admin', '3', '1', 'integer', '{"max": 220, "min": 0, "step": 0, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-07 19:46:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('404', 'B相电流', '1', 'admin', '4', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-07 19:46:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('405', 'C相电流', '1', 'admin', '5', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-07 19:46:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('412', 'A相电压', '1', 'admin', '0', '1', 'integer', '{"max": 220, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-08 08:48:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, '%s*10', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('413', 'B相电压', '1', 'admin', '1', '1', 'integer', '{"max": 220, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-08 08:48:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('414', 'C相电压', '1', 'admin', '2', '1', 'integer', '{"max": 220, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-08 08:48:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('415', 'A相电流', '1', 'admin', '3', '1', 'integer', '{"max": 220, "min": 0, "step": 0, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-08 08:48:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('416', 'B相电流', '1', 'admin', '4', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-08 08:48:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('417', 'C相电流', '1', 'admin', '5', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '1', '1', '0', '0', ' ', TO_TIMESTAMP('2023-12-08 08:48:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('419', 'DI-1', '1', 'admin', '0', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-11 10:39:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-12-11 11:07:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('424', 'DI', '1', 'admin', '0', '1', 'enum', '{"type": "enum", "showWay": "select", "enumList": [{"text": "0", "value": "DI-1"}, {"text": "1", "value": "DI-2"}, {"text": "2", "value": "DI-3"}, {"text": "3", "value": "DI-4"}, {"text": "4", "value": "DI-5"}, {"text": "5", "value": "DI-6"}, {"text": "6", "value": "DI-7"}, {"text": "7", "value": "DI-8"}]}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-11 13:31:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-12-12 09:34:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('425', 'DI', '1', 'admin', '0', '1', 'enum', '{"type": "enum", "showWay": "select", "enumList": [{"text": "0", "value": "DI-1"}, {"text": "1", "value": "DI-2"}, {"text": "2", "value": "DI-3"}, {"text": "3", "value": "DI-4"}, {"text": "4", "value": "DI-5"}, {"text": "5", "value": "DI-6"}, {"text": "6", "value": "DI-7"}, {"text": "7", "value": "DI-8"}]}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-11 13:40:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-12-12 10:33:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('440', 'data-1', '1', 'admin', 'keystr-1', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '1', '1', '1', '1', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-20 15:36:05.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-12-20 15:36:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('441', 'data-2', '1', 'admin', 'keystr-2', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '1', '1', '1', '1', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-12-20 15:36:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('442', '电源管理', '1', 'admin', 'power', '1', 'string', '{"type": "string", "maxLength": 1024}', '1', '0', '0', '0', '1', '0', '0', '0', 'admin', TO_TIMESTAMP('2023-12-26 13:52:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('443', '密码', '1', 'admin', 'k0', '1', 'integer', '{"max": 9999, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('444', '地址', '1', 'admin', 'k1', '1', 'integer', '{"max": 247, "min": 1, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('445', '波特率', '1', 'admin', 'k2', '1', 'integer', '{"max": 38400, "min": 1920, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('446', '5A输入CT变比/10mA输入为一次电流', '1', 'admin', 'k3', '1', 'integer', '{"max": 9999, "min": 1, "step": 0, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('447', 'Pt变比', '1', 'admin', 'k5', '1', 'integer', '{"max": 9999, "min": 1, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('448', '额定电压', '1', 'admin', 'k6', '1', 'integer', '{"max": 220, "min": 100, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('449', '额定电流', '1', 'admin', 'k7', '1', 'integer', '{"max": 100, "min": 1, "step": 0, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('450', '三相回路-总功率因数', '1', 'admin', 'k13', '1', 'integer', '{"max": 1, "min": -1, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('451', 'A相电压', '1', 'admin', 'k17', '1', 'integer', '{"max": 999.9, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('452', 'B相电压', '1', 'admin', 'k18', '1', 'integer', '{"max": 999.9, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('453', 'C相电压', '1', 'admin', 'k19', '1', 'integer', '{"max": 999.9, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('454', 'A相电流', '1', 'admin', 'k20', '1', 'integer', '{"max": 200, "min": 0, "step": 0, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('455', 'B相电流', '1', 'admin', 'k21', '1', 'integer', '{"max": 200, "min": 0, "step": 0, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('456', 'C相电流', '1', 'admin', 'k22', '1', 'integer', '{"max": 200, "min": 0, "step": 0, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('457', 'U12线电压', '1', 'admin', 'k29', '1', 'integer', '{"max": 999.9, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('458', 'U23线电压', '1', 'admin', 'k30', '1', 'integer', '{"max": 999.9, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('459', 'U31线电压', '1', 'admin', 'k31', '1', 'integer', '{"max": 999.9, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('460', '频率', '1', 'admin', 'k32', '1', 'integer', '{"max": 99.99, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('461', '三相回路-总有功功率', '1', 'admin', 'k33', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('1', '空气温度', '1', 'admin', 'temperature', '1', 'decimal', '{\"max\": 120, \"min\": -20, \"step\": 0.1, \"type\": \"decimal\", \"unit\": \"℃\"}', '1', '1', '1', '1', '1', '0', '4', '0', 'admin', TO_TIMESTAMP('2022-03-09 17:41:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:12:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('2', '空气湿度', '1', 'admin', 'humidity', '1', 'decimal', '{"max": 100, "min": 0, "step": 0.1, "type": "decimal", "unit": "%"}', '1', '1', '1', '1', '1', '0', '3', '0', 'admin', TO_TIMESTAMP('2022-03-09 17:41:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:12:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('3', '二氧化碳', '1', 'admin', 'co2', '1', 'integer', '{"max": 6000, "min": 100, "step": 1, "type": "integer", "unit": "ppm"}', '1', '1', '1', '1', '1', '0', '0', '0', 'admin', TO_TIMESTAMP('2022-03-09 17:41:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:11:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('4', '室内亮度', '1', 'admin', 'brightness', '1', 'integer', '{"max": 10000, "min": 0, "step": 1, "type": "integer", "unit": "cd/m2"}', '1', '1', '1', '1', '1', '0', '0', '0', 'admin', TO_TIMESTAMP('2022-03-09 17:41:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:11:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('5', '设备开关', '1', 'admin', 'switch', '1', 'bool', '{\"type\": \"bool\", \"trueText\": \"打开\", \"falseText\": \"关闭\"}', '1', '0', '0', '1', '0', '0', '5', '0', 'admin', TO_TIMESTAMP('2022-03-09 17:41:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:11:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('6', '运行档位', '1', 'admin', 'gear', '1', 'enum', '{\"type\": \"enum\", \"showWay\": \"select\", \"enumList\": [{\"text\": \"低速档位\", \"value\": \"0\"}, {\"text\": \"中速档位\", \"value\": \"1\"}, {\"text\": \"中高速档位\", \"value\": \"2\"}, {\"text\": \"高速档位\", \"value\": \"3\"}]}', '1', '0', '0', '1', '0', '0', '6', '0', 'admin', TO_TIMESTAMP('2022-03-09 17:41:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:11:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('7', '灯光色值', '1', 'admin', 'light_color', '1', 'array', '{"type": "array", "arrayType": "integer", "arrayCount": "3"}', '1', '0', '0', '1', '0', '0', '2', '0', 'admin', TO_TIMESTAMP('2022-03-09 17:41:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:11:38.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('8', '屏显消息', '1', 'admin', 'message', '1', 'string', '{"type": "string", "maxLength": 1024}', '1', '0', '0', '1', '0', '0', '1', '0', 'admin', TO_TIMESTAMP('2022-03-09 17:41:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:11:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('9', '上报监测数据', '1', 'admin', 'report_monitor', '1', 'integer', '{"max": 10, "min": 1, "step": 1, "type": "integer", "unit": "������"}', '1', '0', '0', '0', '0', '0', '9', '0', 'admin', TO_TIMESTAMP('2022-03-09 17:41:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:11:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('10', '环境温度过高', '1', 'admin', 'height_temperature', '1', 'decimal', '{"max": 100, "min": 0, "step": 0.1, "type": "decimal", "unit": "���"}', '1', '0', '0', '1', '0', '0', '8', '0', 'admin', TO_TIMESTAMP('2022-03-09 17:41:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:11:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('11', '设备发生异常', '1', 'admin', 'exception', '1', 'string', '{"type": "string", "maxLength": 1024}', '1', '0', '0', '1', '0', '0', '7', '0', 'admin', TO_TIMESTAMP('2022-03-09 17:41:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:11:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('12', '光照', '1', 'admin', 'light', '1', 'decimal', '{"max": 100, "min": 0, "step": 1, "type": "decimal", "unit": "mm"}', '0', '1', '1', '1', '1', '0', '0', '0', 'wumei', TO_TIMESTAMP('2022-05-07 09:41:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:11:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('13', '压力', '1', 'admin', 'pressure', '1', 'decimal', '{"max": 200, "min": 0, "step": 0.1, "type": "decimal", "unit": "���������"}', '1', '1', '1', '1', '1', '0', '0', '0', 'admin', TO_TIMESTAMP('2023-02-20 22:39:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:11:05.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('14', '设备重启', '1', 'admin', 'reset', '1', 'enum', '{"type": "enum", "showWay": "button", "enumList": [{"text": "������", "value": "restart"}]}', '1', '0', '0', '1', '0', '0', '0', '0', 'admin', TO_TIMESTAMP('2023-02-20 23:15:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:11:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('15', '电池电压', '1', 'admin', 'voltage', '1', 'decimal', '{"max": 5, "min": 0, "step": 0.001, "type": "decimal", "unit": "V"}', '1', '1', '1', '1', '1', '0', '0', '0', 'admin', TO_TIMESTAMP('2023-02-20 23:17:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:10:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('16', '饮水量', '1', 'admin', 'shuiliang', '1', 'integer', '{"max": 500, "min": 80, "step": 1, "type": "integer", "unit": "ML"}', '1', '1', '1', '1', '1', '0', '0', '0', 'admin', TO_TIMESTAMP('2023-02-20 23:18:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:10:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('17', '灯光', '1', 'admin', 'light', '1', 'integer', '{"max": 1000, "min": 0, "step": 1, "type": "integer", "unit": "Lux"}', '1', '1', '1', '1', '1', '0', '0', '0', 'admin', TO_TIMESTAMP('2023-02-20 23:19:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:10:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('18', '长度', '1', 'admin', 'length', '1', 'integer', '{"max": 2000, "min": 1, "step": 5, "type": "integer", "unit": "M"}', '1', '1', '1', '1', '1', '0', '0', '0', 'admin', TO_TIMESTAMP('2023-02-20 23:20:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:10:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('19', '心率', '1', 'admin', 'heart_rate', '1', 'integer', '{"max": 250, "min": 0, "step": 1, "type": "integer", "unit": "������"}', '1', '1', '1', '1', '1', '0', '0', '0', 'admin', TO_TIMESTAMP('2023-02-20 23:21:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:12:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('20', '光照强度', '1', 'admin', 'light_level', '1', 'integer', '{"max": 89.2, "min": 2.5, "step": 0.1, "type": "integer", "unit": "L/g"}', '1', '1', '1', '1', '1', '0', '0', '0', 'admin', TO_TIMESTAMP('2023-02-20 23:24:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:10:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('21', '状态灯色', '1', 'admin', 'color', '1', 'enum', '{"type": "enum", "showWay": "select", "enumList": [{"text": "������", "value": "0"}, {"text": "������", "value": "1"}, {"text": "������", "value": "2"}, {"text": "������", "value": "3"}]}', '1', '0', '0', '1', '0', '0', '0', '0', 'admin', TO_TIMESTAMP('2023-02-20 23:26:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:10:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('22', '子设备', '1', 'admin', 'device', '1', 'array', '{"type": "array", "params": [{"id": "device_co2", "name": "������������", "order": 0, "isChart": 1, "datatype": {"max": 6000, "min": 100, "step": 1, "type": "integer", "unit": "ppm", "enumList": [{"text": "", "value": ""}], "arrayType": "int"}, "isHistory": 1, "isMonitor": 1, "isReadonly": 1}, {"id": "device_temperature", "name": "������������-������", "order": 4, "isChart": 0, "datatype": {"max": 120, "min": -20, "step": 0.1, "type": "decimal", "unit": "���", "enumList": [{"text": "", "value": ""}], "arrayType": "int"}, "isMonitor": 0, "isReadonly": 1}, {"id": "device_gear", "name": "������������", "order": 6, "datatype": {"type": "enum", "showWay": "select", "enumList": [{"text": "������������", "value": "0"}, {"text": "������������", "value": "1"}, {"text": "���������������", "value": "2"}, {"text": "������������", "value": "3"}]}, "isMonitor": 0, "isReadonly": 0}, {"id": "device_switch", "name": "������������", "order": 5, "datatype": {"type": "bool", "enumList": [{"text": "", "value": ""}], "trueText": "������", "arrayType": "int", "falseText": "������"}, "isMonitor": 0, "isReadonly": 0}, {"id": "device_report_monitor", "name": "������������������", "order": 9, "datatype": {"max": 10, "min": 1, "step": 1, "type": "integer", "unit": "������", "enumList": [{"text": "", "value": ""}], "arrayType": "int"}, "isHistory": 0, "isMonitor": 0, "isReadonly": 0}], "arrayType": "object", "arrayCount": 5}', '1', '0', '0', '0', '0', '0', '10', '0', 'admin', TO_TIMESTAMP('2023-02-24 01:10:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-13 01:33:38.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('23', '功能分组', '1', 'admin', 'group', '1', 'object', '{"type": "object", "params": [{"id": "group_light", "name": "������", "order": 1, "isChart": 1, "datatype": {"max": 100, "min": 0, "step": 1, "type": "decimal", "unit": "mm"}, "isHistory": 1, "isMonitor": 1, "isReadonly": 1}, {"id": "group_humidity", "name": "������������", "order": 2, "isChart": 1, "datatype": {"max": 100, "min": 0, "step": 0.1, "type": "decimal", "unit": "%"}, "isMonitor": 1, "isReadonly": 1}, {"id": "group_temperature", "name": "������������-������", "order": 3, "isChart": 0, "datatype": {"max": 120, "min": -20, "step": 0.1, "type": "decimal", "unit": "���"}, "isMonitor": 0, "isReadonly": 1}, {"id": "group_report_monitor", "name": "������������������", "order": 7, "datatype": {"max": 10, "min": 1, "step": 1, "type": "integer", "unit": "������"}, "isHistory": 0, "isMonitor": 0, "isReadonly": 0}, {"id": "group_gear", "name": "������������", "order": 5, "datatype": {"type": "enum", "showWay": "select", "enumList": [{"text": "������������", "value": "0"}, {"text": "������������", "value": "1"}, {"text": "���������������", "value": "2"}, {"text": "������������", "value": "3"}]}, "isHistory": 1, "isMonitor": 0, "isReadonly": 0}, {"id": "group_switch", "name": "������������", "order": 4, "datatype": {"type": "bool", "trueText": "������", "falseText": "������"}, "isMonitor": 0, "isReadonly": 0}, {"id": "group_irc", "name": "������������", "order": 6, "isChart": 0, "datatype": {"type": "enum", "showWay": "button", "enumList": [{"text": "������������", "value": "FFXX01"}, {"text": "������������", "value": "FFXX02"}, {"text": "������������", "value": "FFXX03"}, {"text": "������������", "value": "FFXX04"}, {"text": "������", "value": "FFXX05"}, {"text": "������", "value": "FFXX06"}]}, "isHistory": 1, "isMonitor": 0, "isReadonly": 0}]}', '1', '0', '0', '0', '0', '0', '11', '0', 'admin', TO_TIMESTAMP('2023-02-25 22:41:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-08-30 15:29:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('201', '频率 ', '1', 'admin', 'frequency', '1', 'integer', '{"max": 65535, "min": 0, "step": 1, "type": "integer", "unit": "0.001Hz"}', '1', '0', '0', '1', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2023-02-28 16:08:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 03:37:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, '%s*0.001', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('225', '校验位', '1', 'admin', 'check', '1', 'enum', '{"type": "enum", "showWay": "select", "enumList": [{"text": "N", "value": "0"}, {"text": "O", "value": "1"}, {"text": "E", "value": "2"}]}', '1', '0', '0', '1', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-02-28 16:08:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 21:36:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('226', '波特率', '1', 'admin', 'baud', '1', 'enum', '{"type": "enum", "showWay": "select", "enumList": [{"text": "1200", "value": "0"}, {"text": "2400", "value": "1"}, {"text": "4800", "value": "2"}, {"text": "9600", "value": "3"}, {"text": "19200", "value": "4"}]}', '1', '0', '0', '1', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-02-28 16:08:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 03:37:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('227', '电压', '1', 'admin', 'voltage', '1', 'integer', '{"max": 6, "min": 0.1, "step": 0.1, "type": "integer", "unit": "v"}', '1', '1', '1', '1', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-02-28 16:08:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 03:37:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('236', '射频遥控', '1', 'admin', 'irc', '1', 'enum', '{"type": "enum", "showWay": "button", "enumList": [{"text": "������������", "value": "FFXX01"}, {"text": "������������", "value": "FFXX02"}, {"text": "������������", "value": "FFXX03"}, {"text": "������������", "value": "FFXX04"}, {"text": "������", "value": "FFXX05"}, {"text": "������", "value": "FFXX06"}]}', '1', '0', '0', '1', '0', '0', '0', '0', 'admin', TO_TIMESTAMP('2023-03-31 23:46:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-10 01:09:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('250', '漏水值', '1', 'admin', '0', '1', 'integer', '{"max": 100, "min": 1, "step": 1, "type": "integer", "unit": "���"}', '1', '0', '0', '1', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2023-04-11 22:35:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-09-13 23:32:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('251', '温度', '1', 'admin', '0', '1', 'integer', '{"max": 100, "min": 1, "step": 1, "type": "integer", "unit": "��"}', '1', '0', '0', '1', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2023-04-11 22:36:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-09-13 23:32:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('252', '电量', '1', 'admin', '1', '1', 'integer', '{"max": 100, "min": 1, "step": 1, "type": "integer", "unit": ""}', '1', '0', '0', '1', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2023-04-11 22:36:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-09-13 23:33:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('323', '上报状态', '1', 'admin', 'status', '1', 'enum', '{"type": "enum", "showWay": "button", "enumList": [{"text": "������������", "value": "update_status"}]}', '1', '0', '0', '0', '0', '1', '0', '0', 'admin', TO_TIMESTAMP('2023-04-13 01:35:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-09-03 10:50:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('324', 'X位移', '1', 'admin', 'x-shift', '1', 'decimal', '{"max": 100, "min": 0, "step": 1, "type": "decimal", "unit": "mm"}', '1', '1', '1', '1', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-08-26 19:36:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('325', 'Y位移', '1', 'admin', 'y-shift', '1', 'decimal', '{"max": 100, "min": 0, "step": 1, "type": "decimal", "unit": "mm"}', '1', '1', '1', '1', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-08-26 19:37:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-08-26 19:37:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('326', 'X位移', '1', 'admin', 'x-shift', '1', 'decimal', '{"max": 100, "min": 0, "step": 1, "type": "decimal", "unit": "mm"}', '1', '1', '1', '1', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-08-26 19:38:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('327', 'Y位移', '1', 'admin', 'y-shift', '1', 'decimal', '{"max": 100, "min": 0, "step": 1, "type": "decimal", "unit": "mm"}', '1', '1', '1', '1', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-08-26 19:38:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('328', '计件数量', '1', 'admin', '0', '1', 'integer', '{"max": 10000, "min": 0, "step": 1, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-08-28 15:05:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('329', '参数1', '1', 'admin', '0', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-08-28 15:06:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('330', '图片', '1', 'admin', 'image', '1', 'string', '{"type": "string", "maxLength": 10240}', '1', '0', '0', '1', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-08-28 23:19:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('331', '回路状态', '10', 'jamon', 'loop_status', '1', 'array', '{"type": "array", "arrayType": "integer"}', '0', '0', '0', '0', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2023-08-29 18:21:38.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('332', '回路状态', '10', 'jamon', 'loop_status', '1', 'array', '{"type": "array", "arrayType": "integer"}', '0', '0', '0', '0', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2023-08-29 18:23:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('335', '湿度', '1', 'admin', '0', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '1', '0', '0', '1', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-08-30 14:05:38.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-08-30 14:58:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, '%s/10', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('336', '温度', '1', 'admin', '1', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": "��C"}', '1', '0', '0', '1', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-08-30 14:06:05.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-08-30 14:58:38.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, '%s/10', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('341', '视频', '1', 'admin', 'video', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '1', '0', '0', '1', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-08-30 23:08:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-08-30 23:25:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('342', '图片', '1', 'admin', 'image', '1', 'string', '{"type": "string", "maxLength": 1024}', '1', '0', '0', '1', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-08-30 23:21:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-08-30 23:25:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('343', '状态', '1', 'admin', 'status', '1', 'integer', '{"max": 100, "min": 0, "step": 1, "type": "integer", "unit": ""}', '1', '0', '0', '1', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2023-08-30 23:28:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-08-30 23:28:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('359', '相电压UA', '1', 'admin', '37', '1', 'integer', '{"max": 500, "min": 0, "step": 1, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '0', '1', '0', ' ', TO_TIMESTAMP('2023-12-06 16:32:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-12-07 18:10:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('360', '相电压UB', '1', 'admin', '38', '1', 'integer', '{"max": 500, "min": 0, "step": 1, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '0', '2', '0', ' ', TO_TIMESTAMP('2023-12-06 16:32:59.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-12-07 18:10:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('361', '相电压UC', '1', 'admin', '39', '1', 'integer', '{"max": 500, "min": 0, "step": 1, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '0', '3', '0', ' ', TO_TIMESTAMP('2023-12-06 16:34:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-12-07 18:11:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('462', '三相回路-总无功功率', '1', 'admin', 'k36', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('463', 'A相正（市电）有功电能高字节', '1', 'admin', 'k39', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('464', 'A相正（市电）有功电能低字节', '1', 'admin', 'k40', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('465', 'B相正（市电）有功电能高字节', '1', 'admin', 'k41', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('466', 'B相正（市电）有功电能低字节', '1', 'admin', 'k42', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('467', 'C相正（市电）有功电能高字节', '1', 'admin', 'k43', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('468', 'C相正（市电）有功电能低字节', '1', 'admin', 'k44', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('469', 'A相有功功率', '1', 'admin', 'k57', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('470', 'B相有功功率', '1', 'admin', 'k58', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('471', 'C相有功功率', '1', 'admin', 'k59', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('472', 'A相无功功率', '1', 'admin', 'k66', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('473', 'B相无功功率', '1', 'admin', 'k67', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('474', 'C相无功功率', '1', 'admin', 'k68', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('475', 'A相视在功率', '1', 'admin', 'k69', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('476', 'B相视在功率', '1', 'admin', 'k70', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('477', 'C相视在功率', '1', 'admin', 'k71', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('478', '三相总视在功率', '1', 'admin', 'k72', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('479', 'A相功率因数', '1', 'admin', 'k75', '1', 'integer', '{"max": 1, "min": -1, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('480', 'B相功率因数', '1', 'admin', 'k76', '1', 'integer', '{"max": 1, "min": -1, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('481', 'C相功率因数', '1', 'admin', 'k77', '1', 'integer', '{"max": 1, "min": -1, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('482', 'A相正（市电）无功电能高字节', '1', 'admin', 'k84', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('483', 'A相正（市电）无功电能低字节', '1', 'admin', 'k85', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('484', 'B相正（市电）无功电能高字节', '1', 'admin', 'k86', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('485', 'B相正（市电）无功电能低字节', '1', 'admin', 'k87', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('486', 'C相正（市电）无功电能高字节', '1', 'admin', 'k88', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('487', 'C相正（市电）无功电能低字节', '1', 'admin', 'k89', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('488', '三相回路正(市电)总有功电能高字节', '1', 'admin', 'k112', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('489', '三相回路正(市电)总有功电能低字节', '1', 'admin', 'k113', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('490', '三相回路正(市电)总无功电能高字节', '1', 'admin', 'k118', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('491', '三相回路正(市电)总无功电能低字节', '1', 'admin', 'k119', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:34:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('492', '密码', '1', 'admin', 'k0', '1', 'integer', '{"max": 9999, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('493', '地址', '1', 'admin', 'k1', '1', 'integer', '{"max": 247, "min": 1, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('494', '波特率', '1', 'admin', 'k2', '1', 'integer', '{"max": 38400, "min": 1920, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('495', '5A输入CT变比/10mA输入为一次电流', '1', 'admin', 'k3', '1', 'integer', '{"max": 9999, "min": 1, "step": 0, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('496', 'Pt变比', '1', 'admin', 'k5', '1', 'integer', '{"max": 9999, "min": 1, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('497', '额定电压', '1', 'admin', 'k6', '1', 'integer', '{"max": 220, "min": 100, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('498', '额定电流', '1', 'admin', 'k7', '1', 'integer', '{"max": 100, "min": 1, "step": 0, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('499', '三相回路-总功率因数', '1', 'admin', 'k13', '1', 'integer', '{"max": 1, "min": -1, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('500', 'A相电压', '1', 'admin', 'k17', '1', 'integer', '{"max": 999.9, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('501', 'B相电压', '1', 'admin', 'k18', '1', 'integer', '{"max": 999.9, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('502', 'C相电压', '1', 'admin', 'k19', '1', 'integer', '{"max": 999.9, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('503', 'A相电流', '1', 'admin', 'k20', '1', 'integer', '{"max": 200, "min": 0, "step": 0, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('504', 'B相电流', '1', 'admin', 'k21', '1', 'integer', '{"max": 200, "min": 0, "step": 0, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('505', 'C相电流', '1', 'admin', 'k22', '1', 'integer', '{"max": 200, "min": 0, "step": 0, "type": "integer", "unit": "A"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('506', 'U12线电压', '1', 'admin', 'k29', '1', 'integer', '{"max": 999.9, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('507', 'U23线电压', '1', 'admin', 'k30', '1', 'integer', '{"max": 999.9, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('508', 'U31线电压', '1', 'admin', 'k31', '1', 'integer', '{"max": 999.9, "min": 0, "step": 0, "type": "integer", "unit": "V"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('509', '频率', '1', 'admin', 'k32', '1', 'integer', '{"max": 99.99, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('510', '三相回路-总有功功率', '1', 'admin', 'k33', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('511', '三相回路-总无功功率', '1', 'admin', 'k36', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('512', 'A相正（市电）有功电能高字节', '1', 'admin', 'k39', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('513', 'A相正（市电）有功电能低字节', '1', 'admin', 'k40', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('514', 'B相正（市电）有功电能高字节', '1', 'admin', 'k41', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('515', 'B相正（市电）有功电能低字节', '1', 'admin', 'k42', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('516', 'C相正（市电）有功电能高字节', '1', 'admin', 'k43', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('517', 'C相正（市电）有功电能低字节', '1', 'admin', 'k44', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('518', 'A相有功功率', '1', 'admin', 'k57', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('519', 'B相有功功率', '1', 'admin', 'k58', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('520', 'C相有功功率', '1', 'admin', 'k59', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('521', 'A相无功功率', '1', 'admin', 'k66', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('522', 'B相无功功率', '1', 'admin', 'k67', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('523', 'C相无功功率', '1', 'admin', 'k68', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('524', 'A相视在功率', '1', 'admin', 'k69', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('525', 'B相视在功率', '1', 'admin', 'k70', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('526', 'C相视在功率', '1', 'admin', 'k71', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('527', '三相总视在功率', '1', 'admin', 'k72', '1', 'integer', '{"max": 44, "min": 0, "step": 0, "type": "integer", "unit": "kW"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('528', 'A相功率因数', '1', 'admin', 'k75', '1', 'integer', '{"max": 1, "min": -1, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('529', 'B相功率因数', '1', 'admin', 'k76', '1', 'integer', '{"max": 1, "min": -1, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('530', 'C相功率因数', '1', 'admin', 'k77', '1', 'integer', '{"max": 1, "min": -1, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('531', 'A相正（市电）无功电能高字节', '1', 'admin', 'k84', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('532', 'A相正（市电）无功电能低字节', '1', 'admin', 'k85', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('533', 'B相正（市电）无功电能高字节', '1', 'admin', 'k86', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('534', 'B相正（市电）无功电能低字节', '1', 'admin', 'k87', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('535', 'C相正（市电）无功电能高字节', '1', 'admin', 'k88', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('536', 'C相正（市电）无功电能低字节', '1', 'admin', 'k89', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('537', '三相回路正(市电)总有功电能高字节', '1', 'admin', 'k112', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('538', '三相回路正(市电)总有功电能低字节', '1', 'admin', 'k113', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('539', '三相回路正(市电)总无功电能高字节', '1', 'admin', 'k118', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('540', '三相回路正(市电)总无功电能低字节', '1', 'admin', 'k119', '1', 'integer', '{"max": 1, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 15:46:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('541', 'DS18B20温度数据  ', '1', 'admin', '0', '1', 'integer', '{"max": 100, "min": 0, "step": 0, "type": "integer", "unit": "���������"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 17:03:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, '%s*0.01', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('542', 'CO2二氧化碳数据  ', '1', 'admin', '1', '1', 'integer', '{"max": 100, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 17:03:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('543', 'ADC1的AD值       ', '1', 'admin', '2', '1', 'integer', '{"max": 100, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 17:03:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('544', '光照值高16位', '1', 'admin', '3', '1', 'integer', '{"max": 100, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 17:03:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('545', '光照值低16位', '1', 'admin', '4', '1', 'integer', '{"max": 100, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 17:03:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('546', '空气温度', '1', 'admin', '5', '1', 'integer', '{"max": 100, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 17:03:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, '%s*0.01', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('547', '空气湿度', '1', 'admin', '6', '1', 'integer', '{"max": 100, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 17:03:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, '%s*0.01', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('548', '485的地址        ', '1', 'admin', '7', '1', 'integer', '{"max": 254, "min": 1, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 17:03:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('549', 'RSSI             ', '1', 'admin', '8', '1', 'integer', '{"max": 100, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 17:03:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('550', 'CO2补偿          ', '1', 'admin', '9', '1', 'integer', '{"max": 100, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 17:03:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('551', 'PM25', '1', 'admin', '10', '1', 'integer', '{"max": 100, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 17:03:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('552', 'PM10', '1', 'admin', '11', '1', 'integer', '{"max": 100, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 17:03:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('553', '电池电压ADC值', '1', 'admin', '12', '1', 'integer', '{"max": 100, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 17:03:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('554', '输入电压ADC值', '1', 'admin', '13', '1', 'integer', '{"max": 100, "min": 0, "step": 0, "type": "integer", "unit": ""}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 17:03:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, '%s*10', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('555', '系统运行模式              ', '1', 'admin', '14', '1', 'enum', '{"type": "enum", "enumList": [{"text": "������������", "value": "1"}, {"text": "������������", "value": "0"}, {"text": "���������������������������������", "value": "2"}]}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 17:03:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('556', '定时运行时间秒 ', '1', 'admin', '15', '1', 'integer', '{"max": 100, "min": 0, "step": 0, "type": "integer", "unit": "���"}', '1', '0', '0', '0', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 17:03:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('557', '定时睡眠时间秒', '1', 'admin', '16', '1', 'integer', '{"max": 100, "min": 0, "step": 0, "type": "integer", "unit": "���"}', '1', '0', '0', '0', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 17:03:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('558', '低功耗模式中当前的运行时间', '1', 'admin', '17', '1', 'integer', '{"max": 100, "min": 0, "step": 0, "type": "integer", "unit": "���"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 17:03:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);
INSERT INTO "IOT_THINGS_MODEL_TEMPLATE" VALUES ('559', '低功耗模式中当前的睡眠时间', '1', 'admin', '18', '1', 'integer', '{"max": 100, "min": 0, "step": 0, "type": "integer", "unit": "���"}', '1', '0', '0', '0', '1', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 17:03:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL, ' ', NULL);

-- ----------------------------
-- Primary Key structure for table IOT_THINGS_MODEL_TEMPLATE
-- ----------------------------
ALTER TABLE "IOT_THINGS_MODEL_TEMPLATE" ADD CONSTRAINT "SYS_C0012529" PRIMARY KEY ("TEMPLATE_ID");

-- ----------------------------
-- Checks structure for table IOT_THINGS_MODEL_TEMPLATE
-- ----------------------------
ALTER TABLE "IOT_THINGS_MODEL_TEMPLATE" ADD CONSTRAINT "SYS_C0012193" CHECK ("TEMPLATE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL_TEMPLATE" ADD CONSTRAINT "SYS_C0012194" CHECK ("TEMPLATE_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL_TEMPLATE" ADD CONSTRAINT "SYS_C0012195" CHECK ("TENANT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL_TEMPLATE" ADD CONSTRAINT "SYS_C0012196" CHECK ("TENANT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL_TEMPLATE" ADD CONSTRAINT "SYS_C0012197" CHECK ("IDENTIFIER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL_TEMPLATE" ADD CONSTRAINT "SYS_C0012198" CHECK ("TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL_TEMPLATE" ADD CONSTRAINT "SYS_C0012199" CHECK ("DATATYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL_TEMPLATE" ADD CONSTRAINT "SYS_C0012200" CHECK ("IS_SYS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL_TEMPLATE" ADD CONSTRAINT "SYS_C0012201" CHECK ("IS_CHART" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL_TEMPLATE" ADD CONSTRAINT "SYS_C0012202" CHECK ("IS_MONITOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_THINGS_MODEL_TEMPLATE" ADD CONSTRAINT "SYS_C0012203" CHECK ("IS_HISTORY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_THINGS_MODEL_TEMPLATE
-- ----------------------------
CREATE TRIGGER "IOT_THINGS_MODEL_TEMPLATE_TRIG" BEFORE INSERT OR UPDATE ON "IOT_THINGS_MODEL_TEMPLATE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.template_id IS NULL THEN
SELECT  iot_things_model_template__SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(template_id),0) INTO v_newVal FROM iot_things_model_template;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_things_model_template__SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.template_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_THINGS_MODEL_TRANSLATE
-- ----------------------------
DROP TABLE "IOT_THINGS_MODEL_TRANSLATE";
CREATE TABLE "IOT_THINGS_MODEL_TRANSLATE" (
                                                        "ID" NUMBER(38,0) NOT NULL,
                                                        "ZH_CN" VARCHAR2(200 CHAR),
                                                        "EN_US" VARCHAR2(200 CHAR),
                                                        "PRODUCT_ID" NUMBER(38,0)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_THINGS_MODEL_TRANSLATE"."ID" IS 'ID';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TRANSLATE"."ZH_CN" IS 'zh_CN';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TRANSLATE"."EN_US" IS 'en_US';
COMMENT ON COLUMN "IOT_THINGS_MODEL_TRANSLATE"."PRODUCT_ID" IS '产品id';
COMMENT ON TABLE "IOT_THINGS_MODEL_TRANSLATE" IS '物模型翻译表';

-- ----------------------------
-- Records of IOT_THINGS_MODEL_TRANSLATE
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table IOT_THINGS_MODEL_TRANSLATE
-- ----------------------------
ALTER TABLE "IOT_THINGS_MODEL_TRANSLATE" ADD CONSTRAINT "SYS_C0012530" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table IOT_THINGS_MODEL_TRANSLATE
-- ----------------------------
ALTER TABLE "IOT_THINGS_MODEL_TRANSLATE" ADD CONSTRAINT "SYS_C0012204" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for IOT_VAR_TEMP
-- ----------------------------
DROP TABLE "IOT_VAR_TEMP";
CREATE TABLE "IOT_VAR_TEMP" (
                                          "TEMPLATE_ID" NUMBER(38,0) NOT NULL,
                                          "TEMPLATE_NAME" VARCHAR2(64 CHAR) NOT NULL,
                                          "TYPE" NUMBER(10,0),
                                          "POLLING_METHOD" NUMBER(10,0) NOT NULL,
                                          "USER_ID" NUMBER(10,0),
                                          "SLAVE_TOTAL" NUMBER(38,0),
                                          "POINT_TOTAL" NUMBER(38,0),
                                          "SHARE_" NUMBER(10,0),
                                          "CREATE_TIME" TIMESTAMP(6),
                                          "CREATE_BY" VARCHAR2(64 CHAR),
                                          "UPDATE_TIME" TIMESTAMP(6),
                                          "UPDATE_BY" VARCHAR2(64 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_VAR_TEMP"."TEMPLATE_ID" IS '主键id';
COMMENT ON COLUMN "IOT_VAR_TEMP"."TEMPLATE_NAME" IS '模板名称';
COMMENT ON COLUMN "IOT_VAR_TEMP"."TYPE" IS '类型';
COMMENT ON COLUMN "IOT_VAR_TEMP"."POLLING_METHOD" IS '采集方式 1.云端轮询 2.云端边缘计算';
COMMENT ON COLUMN "IOT_VAR_TEMP"."USER_ID" IS '模板所属用户';
COMMENT ON COLUMN "IOT_VAR_TEMP"."SLAVE_TOTAL" IS '从机总数';
COMMENT ON COLUMN "IOT_VAR_TEMP"."POINT_TOTAL" IS '总采集点数';
COMMENT ON COLUMN "IOT_VAR_TEMP"."SHARE_" IS '是否分享';
COMMENT ON COLUMN "IOT_VAR_TEMP"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_VAR_TEMP"."CREATE_BY" IS '创建用户';
COMMENT ON COLUMN "IOT_VAR_TEMP"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_VAR_TEMP"."UPDATE_BY" IS '更新用户';
COMMENT ON TABLE "IOT_VAR_TEMP" IS '设备采集变量模板对象';

-- ----------------------------
-- Records of IOT_VAR_TEMP
-- ----------------------------
INSERT INTO "IOT_VAR_TEMP" VALUES ('1', 'modbus从机组', NULL, '0', '1', NULL, NULL, NULL, TO_TIMESTAMP('2023-02-28 14:20:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP" VALUES ('2', '边缘网关-MCU', NULL, '1', '1', NULL, NULL, NULL, TO_TIMESTAMP('2023-08-26 19:25:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP" VALUES ('3', '工程数据采集模板', NULL, '0', '1', NULL, NULL, NULL, TO_TIMESTAMP('2023-08-28 14:20:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP" VALUES ('4', '测试网关', NULL, '1', '1', NULL, NULL, NULL, TO_TIMESTAMP('2023-08-29 18:20:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP" VALUES ('6', '温湿度模板', NULL, '0', '1', NULL, NULL, NULL, TO_TIMESTAMP('2023-08-30 14:04:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP" VALUES ('7', '测试采集点', NULL, '0', '1', NULL, NULL, NULL, TO_TIMESTAMP('2023-10-13 16:46:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP" VALUES ('11', 'T200测试12.6.1', NULL, '0', '1', NULL, NULL, NULL, TO_TIMESTAMP('2023-12-06 16:29:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP" VALUES ('13', 'IO088测试12.11.01', NULL, '0', '1', NULL, NULL, NULL, TO_TIMESTAMP('2023-12-11 10:33:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP" VALUES ('18', 'IO088-12.11.02', NULL, '0', '1', NULL, NULL, NULL, TO_TIMESTAMP('2023-12-11 13:30:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP" VALUES ('19', 'IO088-12.11.03', NULL, '0', '1', NULL, NULL, NULL, TO_TIMESTAMP('2023-12-11 13:39:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP" VALUES ('22', 'CAT-T200 TCP测试', NULL, '0', '1', NULL, NULL, NULL, TO_TIMESTAMP('2023-12-20 10:13:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP" VALUES ('23', 'gjz-test', NULL, '1', '1', NULL, NULL, NULL, TO_TIMESTAMP('2023-12-20 10:15:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2023-12-20 10:18:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "IOT_VAR_TEMP" VALUES ('25', '测试模板', NULL, '1', '1', NULL, NULL, NULL, TO_TIMESTAMP('2024-01-08 15:41:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP" VALUES ('26', '1-9', NULL, '0', '1', NULL, NULL, NULL, TO_TIMESTAMP('2024-01-09 10:03:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL);

-- ----------------------------
-- Primary Key structure for table IOT_VAR_TEMP
-- ----------------------------
ALTER TABLE "IOT_VAR_TEMP" ADD CONSTRAINT "SYS_C0012531" PRIMARY KEY ("TEMPLATE_ID");

-- ----------------------------
-- Checks structure for table IOT_VAR_TEMP
-- ----------------------------
ALTER TABLE "IOT_VAR_TEMP" ADD CONSTRAINT "SYS_C0012205" CHECK ("TEMPLATE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_VAR_TEMP" ADD CONSTRAINT "SYS_C0012206" CHECK ("TEMPLATE_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_VAR_TEMP" ADD CONSTRAINT "SYS_C0012207" CHECK ("POLLING_METHOD" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_VAR_TEMP
-- ----------------------------
CREATE TRIGGER "IOT_VAR_TEMP_TEMPLATE_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_VAR_TEMP" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.template_id IS NULL THEN
SELECT  iot_var_temp_template_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(template_id),0) INTO v_newVal FROM iot_var_temp;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_var_temp_template_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.template_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for IOT_VAR_TEMP_SALVE
-- ----------------------------
DROP TABLE "IOT_VAR_TEMP_SALVE";
CREATE TABLE "IOT_VAR_TEMP_SALVE" (
                                                "ID" NUMBER(38,0) NOT NULL,
                                                "DEVICE_TEMP_ID" NUMBER(38,0) NOT NULL,
                                                "SLAVE_ADDR" NUMBER(10,0),
                                                "SLAVE_INDEX" NUMBER(10,0),
                                                "SLAVE_IP" VARCHAR2(32 CHAR),
                                                "SLAVE_NAME" VARCHAR2(64 CHAR) NOT NULL,
                                                "SLAVE_PORT" NUMBER(10,0),
                                                "ADDR_START" NUMBER(38,0),
                                                "ADDR_END" NUMBER(38,0),
                                                "PACKET_LENGTH" NUMBER(10,0) DEFAULT 32,
                                                "TIMER" NUMBER(38,0),
                                                "STATUS" NUMBER(10,0) NOT NULL,
                                                "CODE" NUMBER(10,0),
                                                "CREATE_TIME" TIMESTAMP(6),
                                                "CREATE_BY" VARCHAR2(64 CHAR),
                                                "UPDATE_TIME" TIMESTAMP(6),
                                                "UPDATE_BY" VARCHAR2(64 CHAR),
                                                "REMARK" VARCHAR2(255 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "IOT_VAR_TEMP_SALVE"."ID" IS '主键id';
COMMENT ON COLUMN "IOT_VAR_TEMP_SALVE"."DEVICE_TEMP_ID" IS '关联的模板id';
COMMENT ON COLUMN "IOT_VAR_TEMP_SALVE"."SLAVE_ADDR" IS '从机编号';
COMMENT ON COLUMN "IOT_VAR_TEMP_SALVE"."SLAVE_IP" IS '从机ip地址';
COMMENT ON COLUMN "IOT_VAR_TEMP_SALVE"."SLAVE_NAME" IS '从机名称';
COMMENT ON COLUMN "IOT_VAR_TEMP_SALVE"."SLAVE_PORT" IS '从机端口';
COMMENT ON COLUMN "IOT_VAR_TEMP_SALVE"."ADDR_START" IS '寄存器起始地址(10进制)';
COMMENT ON COLUMN "IOT_VAR_TEMP_SALVE"."ADDR_END" IS '寄存器结束地址(10进制)';
COMMENT ON COLUMN "IOT_VAR_TEMP_SALVE"."PACKET_LENGTH" IS '寄存器批量读取个数';
COMMENT ON COLUMN "IOT_VAR_TEMP_SALVE"."TIMER" IS '批量获取轮询时间(默认5分钟)';
COMMENT ON COLUMN "IOT_VAR_TEMP_SALVE"."STATUS" IS '状态 0-启动 1-失效';
COMMENT ON COLUMN "IOT_VAR_TEMP_SALVE"."CODE" IS '功能编码';
COMMENT ON COLUMN "IOT_VAR_TEMP_SALVE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "IOT_VAR_TEMP_SALVE"."CREATE_BY" IS '创建用户';
COMMENT ON COLUMN "IOT_VAR_TEMP_SALVE"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "IOT_VAR_TEMP_SALVE"."UPDATE_BY" IS '更新用户';
COMMENT ON COLUMN "IOT_VAR_TEMP_SALVE"."REMARK" IS '备注';
COMMENT ON TABLE "IOT_VAR_TEMP_SALVE" IS '变量模板设备从机对象';

-- ----------------------------
-- Records of IOT_VAR_TEMP_SALVE
-- ----------------------------
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('1', '1', '1', NULL, NULL, '漏水器', NULL, '0', '0', '1', '300', '0', '4', TO_TIMESTAMP('2023-02-28 14:43:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2023-04-11 19:02:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL);
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('2', '1', '2', NULL, NULL, '温湿度计', NULL, '0', '1', '2', '300', '0', '4', TO_TIMESTAMP('2023-02-28 15:25:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2023-04-11 19:02:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL);
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('3', '1', '11', NULL, NULL, '电量仪', NULL, '0', '789', '20', '300', '0', '3', TO_TIMESTAMP('2023-02-28 15:32:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2023-04-11 19:02:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL);
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('4', '2', '1', NULL, NULL, '标靶#01', NULL, NULL, NULL, '32', NULL, '0', NULL, TO_TIMESTAMP('2023-08-26 19:35:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('5', '2', '2', NULL, NULL, '标靶#02', NULL, NULL, NULL, '32', NULL, '0', NULL, TO_TIMESTAMP('2023-08-26 19:35:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('7', '3', '1', NULL, NULL, '计件传感器', NULL, '0', '10', '10', '60', '0', NULL, TO_TIMESTAMP('2023-08-28 14:22:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('8', '3', '2', NULL, NULL, '机器参数传感器', NULL, '0', '10', '10', '60', '0', NULL, TO_TIMESTAMP('2023-08-28 15:06:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('13', '6', '1', NULL, NULL, '温湿度传感器', NULL, '0', '1', '2', '60', '0', NULL, TO_TIMESTAMP('2023-08-30 14:05:26.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('17', '2', '0', NULL, NULL, '采集设备', NULL, NULL, NULL, '32', NULL, '0', NULL, TO_TIMESTAMP('2023-08-30 23:30:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('18', '7', '1', NULL, NULL, '电表', NULL, '0', '100', '64', '60', '0', NULL, TO_TIMESTAMP('2023-10-13 16:46:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('21', '11', '1', NULL, NULL, '电表', NULL, '37', '49', '13', '60', '0', NULL, TO_TIMESTAMP('2023-12-06 16:31:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('22', '11', '2', NULL, NULL, '电表2', NULL, '37', '49', '13', '60', '0', NULL, TO_TIMESTAMP('2023-12-07 16:40:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2023-12-07 17:03:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL);
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('24', '13', '1', NULL, NULL, 'IO088.12.11.01', NULL, '0', '7', '8', '60', '0', NULL, TO_TIMESTAMP('2023-12-11 10:34:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2023-12-11 10:53:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL);
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('28', '18', '1', NULL, NULL, 'IO088-12.11.02', NULL, '0', '8', '8', '60', '0', NULL, TO_TIMESTAMP('2023-12-11 13:30:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2023-12-11 13:37:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL);
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('29', '19', '1', NULL, NULL, 'IO088.12.11.03', NULL, '0', '8', '9', '60', '0', NULL, TO_TIMESTAMP('2023-12-11 13:39:47.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('32', '22', '1', NULL, NULL, '测试', NULL, '0', '5', '6', '60', '0', NULL, TO_TIMESTAMP('2023-12-20 10:13:37.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('34', '23', '1', NULL, NULL, 'json-test', NULL, NULL, NULL, '32', NULL, '0', NULL, TO_TIMESTAMP('2023-12-20 15:35:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('35', '25', '1', NULL, NULL, '设备1', NULL, NULL, NULL, '32', NULL, '0', NULL, TO_TIMESTAMP('2024-01-08 15:46:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('36', '2', '6', NULL, NULL, '设备1', NULL, NULL, NULL, '32', NULL, '0', NULL, TO_TIMESTAMP('2024-01-08 17:02:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL, NULL, NULL);
INSERT INTO "IOT_VAR_TEMP_SALVE" VALUES ('37', '26', '1', NULL, NULL, '1-9', NULL, '0', '9', '10', '60', '0', NULL, TO_TIMESTAMP('2024-01-09 10:03:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-01-09 10:44:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL);

-- ----------------------------
-- Primary Key structure for table IOT_VAR_TEMP_SALVE
-- ----------------------------
ALTER TABLE "IOT_VAR_TEMP_SALVE" ADD CONSTRAINT "SYS_C0012532" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table IOT_VAR_TEMP_SALVE
-- ----------------------------
ALTER TABLE "IOT_VAR_TEMP_SALVE" ADD CONSTRAINT "SYS_C0012208" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_VAR_TEMP_SALVE" ADD CONSTRAINT "SYS_C0012209" CHECK ("DEVICE_TEMP_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_VAR_TEMP_SALVE" ADD CONSTRAINT "SYS_C0012210" CHECK ("SLAVE_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "IOT_VAR_TEMP_SALVE" ADD CONSTRAINT "SYS_C0012211" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table IOT_VAR_TEMP_SALVE
-- ----------------------------
CREATE TRIGGER "IOT_VAR_TEMP_SALVE_ID_TRIG" BEFORE INSERT OR UPDATE ON "IOT_VAR_TEMP_SALVE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  iot_var_temp_salve_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM iot_var_temp_salve;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT iot_var_temp_salve_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for MEDIA_SERVER
-- ----------------------------
DROP TABLE "MEDIA_SERVER";
CREATE TABLE "MEDIA_SERVER" (
                                          "ID" NUMBER(38,0) NOT NULL,
                                          "SERVER_ID" VARCHAR2(30 CHAR) NOT NULL DEFAULT '',
                                          "TENANT_ID" NUMBER(38,0) NOT NULL,
                                          "TENANT_NAME" VARCHAR2(30 CHAR) NOT NULL DEFAULT '',
                                          "ENABLED" NUMBER(10,0),
                                          "PROTOCOL" VARCHAR2(10 CHAR) NOT NULL DEFAULT '',
                                          "IP" VARCHAR2(255 CHAR) NOT NULL DEFAULT '',
                                          "DOMAIN_ALIAS" VARCHAR2(128 CHAR) NOT NULL DEFAULT '',
                                          "HOOKURL" VARCHAR2(255 CHAR) NOT NULL DEFAULT '',
                                          "SECRET" VARCHAR2(255 CHAR) NOT NULL DEFAULT '',
                                          "PORT_HTTP" NUMBER(10,0) NOT NULL DEFAULT 0,
                                          "PORT_HTTPS" NUMBER(10,0) NOT NULL DEFAULT 0,
                                          "PORT_RTMP" NUMBER(10,0) NOT NULL DEFAULT 0,
                                          "PORT_RTSP" NUMBER(10,0) NOT NULL DEFAULT 0,
                                          "RTP_PROXY_PORT" NUMBER(10,0) NOT NULL DEFAULT 0,
                                          "RTP_ENABLE" NUMBER(10,0) NOT NULL DEFAULT 0,
                                          "RTP_PORT_RANGE" VARCHAR2(255 CHAR) NOT NULL DEFAULT '',
                                          "RECORD_PORT" NUMBER(10,0) NOT NULL DEFAULT 0,
                                          "AUTO_CONFIG" NUMBER(10,0) NOT NULL DEFAULT 0,
                                          "STATUS" NUMBER(10,0) NOT NULL DEFAULT 0,
                                          "DEL_FLAG" CHAR(1 CHAR) NOT NULL DEFAULT '0',
  "CREATE_BY" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6) NOT NULL,
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR),
  "PORT_WS" NUMBER(10,0)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "MEDIA_SERVER"."ID" IS '流媒体配置ID';
COMMENT ON COLUMN "MEDIA_SERVER"."SERVER_ID" IS '服务器标识';
COMMENT ON COLUMN "MEDIA_SERVER"."TENANT_ID" IS '租户ID';
COMMENT ON COLUMN "MEDIA_SERVER"."TENANT_NAME" IS '租户名称';
COMMENT ON COLUMN "MEDIA_SERVER"."ENABLED" IS '使能开关';
COMMENT ON COLUMN "MEDIA_SERVER"."PROTOCOL" IS '默认播放协议';
COMMENT ON COLUMN "MEDIA_SERVER"."IP" IS '服务器ip';
COMMENT ON COLUMN "MEDIA_SERVER"."DOMAIN_ALIAS" IS '服务器域名';
COMMENT ON COLUMN "MEDIA_SERVER"."HOOKURL" IS '回调服务器地址';
COMMENT ON COLUMN "MEDIA_SERVER"."SECRET" IS '流媒体密钥';
COMMENT ON COLUMN "MEDIA_SERVER"."PORT_HTTP" IS 'http端口';
COMMENT ON COLUMN "MEDIA_SERVER"."PORT_HTTPS" IS 'https端口';
COMMENT ON COLUMN "MEDIA_SERVER"."PORT_RTMP" IS 'rtmp端口';
COMMENT ON COLUMN "MEDIA_SERVER"."PORT_RTSP" IS 'rtsp端口';
COMMENT ON COLUMN "MEDIA_SERVER"."RTP_PROXY_PORT" IS 'RTP收流端口';
COMMENT ON COLUMN "MEDIA_SERVER"."RTP_ENABLE" IS '是否使用多端口模式';
COMMENT ON COLUMN "MEDIA_SERVER"."RTP_PORT_RANGE" IS 'rtp端口范围';
COMMENT ON COLUMN "MEDIA_SERVER"."RECORD_PORT" IS '录像服务端口';
COMMENT ON COLUMN "MEDIA_SERVER"."AUTO_CONFIG" IS '是否自动同步配置ZLM';
COMMENT ON COLUMN "MEDIA_SERVER"."STATUS" IS '状态';
COMMENT ON COLUMN "MEDIA_SERVER"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "MEDIA_SERVER"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "MEDIA_SERVER"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "MEDIA_SERVER"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "MEDIA_SERVER"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "MEDIA_SERVER"."REMARK" IS '备注';
COMMENT ON COLUMN "MEDIA_SERVER"."PORT_WS" IS 'ws端口';
COMMENT ON TABLE "MEDIA_SERVER" IS '流媒体服务器配置';

-- ----------------------------
-- Records of MEDIA_SERVER
-- ----------------------------
INSERT INTO "MEDIA_SERVER" VALUES ('7', 'fastbee', '1', 'admin', '1', 'http', '127.0.0.1', 'fastbee.com2', '127.0.0.1:8080', '035c73f7-bb6b-4889-a715-d9eb2d192xxx', '8082', '8443', '1935', '554', '0', '1', '30000,30103', '18081', '1', '0', '0', ' ', TO_TIMESTAMP('2023-09-26 21:11:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-10-26 21:51:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, NULL);

-- ----------------------------
-- Primary Key structure for table MEDIA_SERVER
-- ----------------------------
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012533" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table MEDIA_SERVER
-- ----------------------------
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012212" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012213" CHECK ("SERVER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012214" CHECK ("TENANT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012215" CHECK ("TENANT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012216" CHECK ("PROTOCOL" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012217" CHECK ("IP" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012218" CHECK ("DOMAIN_ALIAS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012219" CHECK ("HOOKURL" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012220" CHECK ("SECRET" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012221" CHECK ("PORT_HTTP" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012222" CHECK ("PORT_HTTPS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012223" CHECK ("PORT_RTMP" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012224" CHECK ("PORT_RTSP" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012225" CHECK ("RTP_PROXY_PORT" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012226" CHECK ("RTP_ENABLE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012227" CHECK ("RTP_PORT_RANGE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012228" CHECK ("RECORD_PORT" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012229" CHECK ("AUTO_CONFIG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012230" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012231" CHECK ("DEL_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012232" CHECK ("CREATE_BY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "MEDIA_SERVER" ADD CONSTRAINT "SYS_C0012233" CHECK ("CREATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table MEDIA_SERVER
-- ----------------------------
CREATE TRIGGER "MEDIA_SERVER_ID_TRIG" BEFORE INSERT OR UPDATE ON "MEDIA_SERVER" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  media_server_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM media_server;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT media_server_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for NEWS
-- ----------------------------
DROP TABLE "NEWS";
CREATE TABLE "NEWS" (
                                  "NEWS_ID" NUMBER(38,0) NOT NULL,
                                  "TITLE" VARCHAR2(64 CHAR) NOT NULL,
                                  "CONTENT" CLOB NOT NULL,
                                  "IMG_URL" VARCHAR2(128 CHAR) NOT NULL,
                                  "IS_TOP" NUMBER(10,0) NOT NULL DEFAULT 0,
                                  "IS_BANNER" NUMBER(10,0) NOT NULL DEFAULT 0,
                                  "CATEGORY_ID" NUMBER(38,0) NOT NULL,
                                  "CATEGORY_NAME" VARCHAR2(32 CHAR) NOT NULL,
                                  "STATUS" NUMBER(10,0) NOT NULL DEFAULT 0,
                                  "AUTHOR" VARCHAR2(50 CHAR) NOT NULL,
                                  "DEL_FLAG" CHAR(1 CHAR) DEFAULT '0',
  "CREATE_BY" VARCHAR2(85 CHAR),
  "CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
  "REMARK" VARCHAR2(500 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "NEWS"."NEWS_ID" IS '新闻ID';
COMMENT ON COLUMN "NEWS"."TITLE" IS '标题';
COMMENT ON COLUMN "NEWS"."CONTENT" IS '内容';
COMMENT ON COLUMN "NEWS"."IMG_URL" IS '封面';
COMMENT ON COLUMN "NEWS"."IS_TOP" IS '是否置顶(0-置顶 1-置顶)';
COMMENT ON COLUMN "NEWS"."IS_BANNER" IS '是否banner(0-是banner 1-不是banner)';
COMMENT ON COLUMN "NEWS"."CATEGORY_ID" IS '分类ID';
COMMENT ON COLUMN "NEWS"."CATEGORY_NAME" IS '分类名称';
COMMENT ON COLUMN "NEWS"."STATUS" IS '新闻状态（0-未发布，1-已发布）';
COMMENT ON COLUMN "NEWS"."AUTHOR" IS '作者';
COMMENT ON COLUMN "NEWS"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "NEWS"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "NEWS"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "NEWS"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "NEWS"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "NEWS"."REMARK" IS '备注';
COMMENT ON TABLE "NEWS" IS '新闻表';

-- ----------------------------
-- Records of NEWS
-- ----------------------------
INSERT INTO "NEWS" VALUES ('1', '广告图一', '<p>请后台添加内容</p>', '/iot/tool/download?fileName=/profile/iot/118/2022-0424-215805.png', '0', '1', '2', '相关产品', '1', '物美智能', '0', ' ', TO_TIMESTAMP('2022-05-12 12:13:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2022-05-12 12:13:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '物美智能');
INSERT INTO "NEWS" VALUES ('2', '广告图二', '<p>请后台添加内容</p>', '/iot/tool/download?fileName=/profile/iot/118/2022-0424-215852.png', '0', '1', '1', '新闻资讯', '1', '物美智能', '0', ' ', TO_TIMESTAMP('2022-05-12 12:13:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2022-05-12 12:13:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '物美智能');
INSERT INTO "NEWS" VALUES ('3', '广告图三', '<p>后台添加内容</p>', '/iot/tool/download?fileName=/profile/iot/118/2022-0424-224553.png', '0', '1', '2', '相关产品', '1', '物美智能', '0', ' ', TO_TIMESTAMP('2022-05-12 12:13:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2022-05-12 12:13:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '物美智能');
INSERT INTO "NEWS" VALUES ('4', '物美智能-快速搭建物联网和智能家居平台', '<p class="ql-align-justify">物美智能 wumei-smart 是一个简单易用的生活物联网平台。可用于搭建物联网平台以及二次开发和学习。设备接入使用EMQX消息服务器，加密认证；后端采用Spring boot；前端采用Vue；移动端采用Uniapp；数据库采用Mysql和Redis；设备端支持ESP32、ESP8266、树莓派等；</p><p class="ql-align-justify"><img src="/prod-api/profile/upload/2022/05/11/5f479f25-b85d-4c9f-b6a7-deadd2cdec76.png"></p><p class="ql-align-justify"><br></p><p class="ql-align-justify"><strong>系统功能介绍</strong></p><p class="ql-align-justify"><br></p><p class="ql-align-justify">1.权限管理： 用户管理、部门管理、岗位管理、菜单管理、角色管理、字典和参数管理等</p><p class="ql-align-justify"><br></p><p class="ql-align-justify">2.系统监控： 操作日志、登录日志、系统日志、在线用户、服务监控、连接池监控、缓存监控等</p><p class="ql-align-justify"><br></p><p class="ql-align-justify">3.产品管理： 产品、产品物模型、产品分类、产品固件、授权码等</p><p class="ql-align-justify"><br></p><p class="ql-align-justify">4.设备管理： 控制、分组、定时、日志、统计、定位、OTA升级、影子模式、实时监测、加密认证等</p><p class="ql-align-justify"><br></p><p class="ql-align-justify">5.EMQ管理： Mqtt客户端、监听器、消息主题、消息订阅、插件管理、规则引擎、资源</p><p class="ql-align-justify"><br></p><p class="ql-align-justify">6.硬件 SDK： 支持WIFI和MQTT连接、物模型响应、实时监测、定时上报监测数据、AES加密、NTP时间等</p><p class="ql-align-justify"><br></p><p class="ql-align-justify">7.物模型管理： 属性（设备状态和监测数据），功能（执行特定任务），事件（设备主动上报给云端）</p><p class="ql-align-justify"><br></p><p class="ql-align-justify">8.其他（开发中）：第三方登录，设备分享、设备告警、场景联动（进度50%），智能音箱、多租户、APP界面自定义（进度40%），时序数据库、分布式集群部署、Granfa监控（进度30%），视频流处理、桌面端模拟器/监控、安卓端模拟器/监控（进度20%）</p><p class="ql-align-justify"><strong>﻿</strong></p><p class="ql-align-justify"><br></p><p class="ql-align-justify"><strong>硬件设备接入流程</strong></p><p><br></p><p>1.设备认证：加密认证、简单认证和emqx支持的多种认证方式。</p><p class="ql-align-justify">2.设备交互：发布和订阅物模型、设备信息、设备升级和时钟同步等mqtt主题</p>', '/iot/tool/download?fileName=/profile/iot/1/2022-0508-133031.png', '1', '0', '2', '相关产品', '1', '物美智能', '0', ' ', TO_TIMESTAMP('2022-05-12 12:13:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2022-05-12 12:13:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '物美智能');
INSERT INTO "NEWS" VALUES ('5', '2022年中国物联网全景图产业链上中下游市场及企业剖析', '<p>后台添加内容</p>', '/iot/tool/download?fileName=/profile/iot/118/2022-0424-224151.png', '1', '0', '1', '新闻资讯', '1', '物美智能', '0', ' ', TO_TIMESTAMP('2022-05-12 12:13:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2022-05-12 12:13:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '物美智能');
INSERT INTO "NEWS" VALUES ('6', 'Arm打造物联网全面解决方案 携手合作伙伴共探智能未来', '<p>后台添加内容</p>', '/iot/tool/download?fileName=/profile/iot/118/2022-0424-224352.png', '1', '0', '1', '新闻资讯', '1', '物美智能', '0', ' ', TO_TIMESTAMP('2022-05-12 12:13:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2022-05-12 12:13:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '物美智能');
INSERT INTO "NEWS" VALUES ('7', '使用ESP32开发板，快速学习物联网开发', '<p>请后台添加内容</p>', '/iot/tool/download?fileName=/profile/iot/118/2022-0428-130824.jpg', '1', '0', '2', '相关产品', '1', '物美智能', '0', ' ', TO_TIMESTAMP('2022-05-12 12:13:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2022-05-12 12:13:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '物美智能');
INSERT INTO "NEWS" VALUES ('8', '物联网赛道观察之无源物联网', '<p>无源物联网，即终端无外接能量源，采用获取环境能量的方式进行供能的物联网技术。在当前物联网技术发展条件下，终端覆盖率是一个亟待解决的问题，而无源物联网凭借其极低的部署和维护成本、灵活多变的应用场景成为解决更广范围内终端供能需求问题、实现“千亿级互联”愿景的关键。</p><p><br></p><p>无源物联网技术的发展最终有赖于环境能量采集、低功耗计算与反向散射等低功耗通讯技术的进步。目前无源物联网应用较为成熟的路线主要包括射频识别技术（RFID）与近场通信技术（NFC）两类，覆盖仓储物流、智能制造、智慧零售、资产管理、物业服务等多元应用场景。未来，随着物联网行业的碎片化整合以及以Bluetooth、5G、LoRa等为媒介进行能量采集与信息传输的技术路线的逐渐成熟，当前困扰行业的诸多问题将会逐步得到解决，随之而来的是更包罗多样的无源终端需求与极具潜力的应用场景。</p>', '/iot/tool/download?fileName=/profile/iot/118/2022-0424-215643.png', '1', '0', '1', '新闻资讯', '1', '物美智能', '0', ' ', TO_TIMESTAMP('2022-05-12 12:13:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2022-05-12 12:13:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '物美智能');

-- ----------------------------
-- Primary Key structure for table NEWS
-- ----------------------------
ALTER TABLE "NEWS" ADD CONSTRAINT "SYS_C0012534" PRIMARY KEY ("NEWS_ID");

-- ----------------------------
-- Checks structure for table NEWS
-- ----------------------------
ALTER TABLE "NEWS" ADD CONSTRAINT "SYS_C0012234" CHECK ("NEWS_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NEWS" ADD CONSTRAINT "SYS_C0012235" CHECK ("TITLE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NEWS" ADD CONSTRAINT "SYS_C0012236" CHECK ("CONTENT" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NEWS" ADD CONSTRAINT "SYS_C0012237" CHECK ("IMG_URL" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NEWS" ADD CONSTRAINT "SYS_C0012238" CHECK ("IS_TOP" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NEWS" ADD CONSTRAINT "SYS_C0012239" CHECK ("IS_BANNER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NEWS" ADD CONSTRAINT "SYS_C0012240" CHECK ("CATEGORY_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NEWS" ADD CONSTRAINT "SYS_C0012241" CHECK ("CATEGORY_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NEWS" ADD CONSTRAINT "SYS_C0012242" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NEWS" ADD CONSTRAINT "SYS_C0012243" CHECK ("AUTHOR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table NEWS
-- ----------------------------
CREATE TRIGGER "NEWS_NEWS_ID_TRIG" BEFORE INSERT OR UPDATE ON "NEWS" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.news_id IS NULL THEN
SELECT  news_news_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(news_id),0) INTO v_newVal FROM news;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT news_news_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.news_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for NEWS_CATEGORY
-- ----------------------------
DROP TABLE "NEWS_CATEGORY";
CREATE TABLE "NEWS_CATEGORY" (
                                           "CATEGORY_ID" NUMBER(38,0) NOT NULL,
                                           "CATEGORY_NAME" VARCHAR2(64 CHAR) NOT NULL,
                                           "ORDER_NUM" NUMBER(10,0) NOT NULL,
                                           "DEL_FLAG" CHAR(1 CHAR) DEFAULT '0',
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "NEWS_CATEGORY"."CATEGORY_ID" IS '分类ID';
COMMENT ON COLUMN "NEWS_CATEGORY"."CATEGORY_NAME" IS '分类名称';
COMMENT ON COLUMN "NEWS_CATEGORY"."ORDER_NUM" IS '显示顺序';
COMMENT ON COLUMN "NEWS_CATEGORY"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "NEWS_CATEGORY"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "NEWS_CATEGORY"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "NEWS_CATEGORY"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "NEWS_CATEGORY"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "NEWS_CATEGORY"."REMARK" IS '备注';
COMMENT ON TABLE "NEWS_CATEGORY" IS '新闻分类';

-- ----------------------------
-- Records of NEWS_CATEGORY
-- ----------------------------
INSERT INTO "NEWS_CATEGORY" VALUES ('1', '新闻资讯', '3', '0', ' ', TO_TIMESTAMP('2022-04-11 20:53:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2022-04-13 15:30:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '新闻资讯信息');
INSERT INTO "NEWS_CATEGORY" VALUES ('2', '相关产品', '2', '0', ' ', TO_TIMESTAMP('2022-04-11 20:54:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2022-04-13 15:30:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '相关产品推荐');

-- ----------------------------
-- Primary Key structure for table NEWS_CATEGORY
-- ----------------------------
ALTER TABLE "NEWS_CATEGORY" ADD CONSTRAINT "SYS_C0012535" PRIMARY KEY ("CATEGORY_ID");

-- ----------------------------
-- Checks structure for table NEWS_CATEGORY
-- ----------------------------
ALTER TABLE "NEWS_CATEGORY" ADD CONSTRAINT "SYS_C0012244" CHECK ("CATEGORY_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NEWS_CATEGORY" ADD CONSTRAINT "SYS_C0012245" CHECK ("CATEGORY_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NEWS_CATEGORY" ADD CONSTRAINT "SYS_C0012246" CHECK ("ORDER_NUM" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table NEWS_CATEGORY
-- ----------------------------
CREATE TRIGGER "NEWS_CATEGORY_CATEGORY_ID_TRIG" BEFORE INSERT OR UPDATE ON "NEWS_CATEGORY" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.category_id IS NULL THEN
SELECT  news_category_category_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(category_id),0) INTO v_newVal FROM news_category;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT news_category_category_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.category_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for NOTIFY_CHANNEL
-- ----------------------------
DROP TABLE "NOTIFY_CHANNEL";
CREATE TABLE "NOTIFY_CHANNEL" (
                                            "ID" NUMBER(38,0) NOT NULL,
                                            "NAME" VARCHAR2(20 CHAR) NOT NULL,
                                            "CHANNEL_TYPE" VARCHAR2(20 CHAR) NOT NULL,
                                            "PROVIDER" VARCHAR2(20 CHAR) NOT NULL,
                                            "CONFIG_CONTENT" CLOB NOT NULL,
                                            "TENANT_ID" NUMBER(38,0),
                                            "TENANT_NAME" VARCHAR2(30 CHAR),
                                            "CREATE_BY" VARCHAR2(50 CHAR),
                                            "CREATE_TIME" TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
                                            "UPDATE_BY" VARCHAR2(50 CHAR),
                                            "UPDATE_TIME" TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
                                            "DEL_FLAG" NUMBER(10,0) NOT NULL DEFAULT 0
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "NOTIFY_CHANNEL"."ID" IS '编号';
COMMENT ON COLUMN "NOTIFY_CHANNEL"."NAME" IS '通知名称';
COMMENT ON COLUMN "NOTIFY_CHANNEL"."CHANNEL_TYPE" IS '渠道类型';
COMMENT ON COLUMN "NOTIFY_CHANNEL"."PROVIDER" IS '服务商';
COMMENT ON COLUMN "NOTIFY_CHANNEL"."CONFIG_CONTENT" IS '配置内容';
COMMENT ON COLUMN "NOTIFY_CHANNEL"."TENANT_ID" IS '租户id';
COMMENT ON COLUMN "NOTIFY_CHANNEL"."TENANT_NAME" IS '租户名称';
COMMENT ON COLUMN "NOTIFY_CHANNEL"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "NOTIFY_CHANNEL"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "NOTIFY_CHANNEL"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "NOTIFY_CHANNEL"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "NOTIFY_CHANNEL"."DEL_FLAG" IS '逻辑删除标识';
COMMENT ON TABLE "NOTIFY_CHANNEL" IS '通知渠道';

-- ----------------------------
-- Records of NOTIFY_CHANNEL
-- ----------------------------
INSERT INTO "NOTIFY_CHANNEL" VALUES ('1', '阿里云短信', 'sms', 'alibaba', '{"accessKeyId":"LTAI5tFVCwhmWL5BE1RH1dtQ","accessKeySecret":""}', '1', 'admin', NULL, TO_TIMESTAMP('2024-01-25 17:24:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-02-06 10:02:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0');
INSERT INTO "NOTIFY_CHANNEL" VALUES ('2', '阿里云语音', 'voice', 'alibaba', '{"accessKeyId":"LTAI5tFVCwhmWL5BE1RH1dtQ","accessKeySecret":""}', '1', 'admin', NULL, TO_TIMESTAMP('2024-01-25 17:24:47.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-02-06 10:02:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0');
INSERT INTO "NOTIFY_CHANNEL" VALUES ('3', '腾讯云短信', 'sms', 'tencent', '{"accessKeyId":"AKIDhGe5Pmz3zkIeszuc6VkrBYqEYmvwyV1N","accessKeySecret":""}', '1', 'admin', NULL, TO_TIMESTAMP('2024-01-25 17:25:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-02-06 10:02:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0');
INSERT INTO "NOTIFY_CHANNEL" VALUES ('4', '腾讯云语音', 'voice', 'tencent', '{"accessKeyId":"AKIDhGe5Pmz3zkIeszuc6VkrBYqEYmvwyV1N","accessKeySecret":""}', '1', 'admin', NULL, TO_TIMESTAMP('2024-01-25 17:26:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-02-06 10:02:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0');
INSERT INTO "NOTIFY_CHANNEL" VALUES ('5', 'QQ邮箱', 'email', 'qq', '{"smtpServer":"smtp.qq.com","port":"465","username":"164770707@qq.com","password":"acmhjosxxvotbidj","sslEnable":true,"authEnable":true,"retryInterval":"5","maxRetries":"1"}', '1', 'admin', NULL, TO_TIMESTAMP('2024-01-25 17:27:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-01-25 17:27:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0');
INSERT INTO "NOTIFY_CHANNEL" VALUES ('6', '163邮箱', 'email', '163', '{"smtpServer":"smtp.163.com","port":"465","username":"15752221201@163.com","password":"VARNCAWFARESRTCG","sslEnable":true,"authEnable":true,"retryInterval":"5","maxRetries":"1"}', '1', 'admin', NULL, TO_TIMESTAMP('2024-01-25 17:27:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-01-25 17:27:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0');
INSERT INTO "NOTIFY_CHANNEL" VALUES ('7', '微信小程序', 'wechat', 'mini_program', '{"appId":"wx5bfbadf52adc17f3","appSecret":"1faddfc3fa6ab2f9ce937f41fcfc7c52"}', '1', 'admin', NULL, TO_TIMESTAMP('2024-01-25 17:28:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-01-31 14:32:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0');
INSERT INTO "NOTIFY_CHANNEL" VALUES ('8', '企业微信群机器人', 'wechat', 'wecom_robot', '{"webHook":"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=e87fbfd0-bcac-4c82-8803-247a8845e887"}', '1', 'admin', NULL, TO_TIMESTAMP('2024-01-25 17:29:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-01-31 14:50:38.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0');
INSERT INTO "NOTIFY_CHANNEL" VALUES ('9', '企业微信应用消息', 'wechat', 'wecom_apply', '{"corpId":"ww4761023a5d81550f","corpSecret":"","agentId":"1000005"}', '1', 'admin', NULL, TO_TIMESTAMP('2024-01-25 17:30:47.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-02-06 10:01:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0');
INSERT INTO "NOTIFY_CHANNEL" VALUES ('10', '钉钉消息通知', 'dingtalk', 'work', '{"appKey":"dingpy8h6c7cft1knlwl","appSecret":"","agentId":"2862570717"}', '1', 'admin', NULL, TO_TIMESTAMP('2024-01-25 17:35:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-02-06 10:01:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0');
INSERT INTO "NOTIFY_CHANNEL" VALUES ('11', '钉钉群机器人', 'dingtalk', 'group_robot', '{"webHook":"https://oapi.dingtalk.com/robot/send?access_token=47881b7982c55d61b1dc71faa6c4d9d41525b23ac4c2d7cdbb505593e83a34b3"}', '1', 'admin', NULL, TO_TIMESTAMP('2024-01-25 17:38:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-01-31 15:26:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0');
INSERT INTO "NOTIFY_CHANNEL" VALUES ('12', 'mqtt推送', 'mqtt', 'web', '{}', '1', 'admin', NULL, TO_TIMESTAMP('2024-12-30 14:15:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-12-30 14:15:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0');

-- ----------------------------
-- Primary Key structure for table NOTIFY_CHANNEL
-- ----------------------------
ALTER TABLE "NOTIFY_CHANNEL" ADD CONSTRAINT "SYS_C0012536" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table NOTIFY_CHANNEL
-- ----------------------------
ALTER TABLE "NOTIFY_CHANNEL" ADD CONSTRAINT "SYS_C0012247" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_CHANNEL" ADD CONSTRAINT "SYS_C0012248" CHECK ("NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_CHANNEL" ADD CONSTRAINT "SYS_C0012249" CHECK ("CHANNEL_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_CHANNEL" ADD CONSTRAINT "SYS_C0012250" CHECK ("PROVIDER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_CHANNEL" ADD CONSTRAINT "SYS_C0012251" CHECK ("CONFIG_CONTENT" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_CHANNEL" ADD CONSTRAINT "SYS_C0012252" CHECK ("CREATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_CHANNEL" ADD CONSTRAINT "SYS_C0012253" CHECK ("UPDATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_CHANNEL" ADD CONSTRAINT "SYS_C0012254" CHECK ("DEL_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table NOTIFY_CHANNEL
-- ----------------------------
CREATE TRIGGER "NOTIFY_CHANNEL_ID_TRIG" BEFORE INSERT OR UPDATE ON "NOTIFY_CHANNEL" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  notify_channel_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM notify_channel;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT notify_channel_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for NOTIFY_LOG
-- ----------------------------
DROP TABLE "NOTIFY_LOG";
CREATE TABLE "NOTIFY_LOG" (
                                        "ID" NUMBER(38,0) NOT NULL,
                                        "CHANNEL_ID" NUMBER(38,0) NOT NULL,
                                        "NOTIFY_TEMPLATE_ID" NUMBER(38,0) NOT NULL,
                                        "MSG_CONTENT" CLOB,
                                        "SEND_ACCOUNT" VARCHAR2(500 CHAR),
                                        "SEND_STATUS" NUMBER(10,0) NOT NULL,
                                        "RESULT_CONTENT" CLOB,
                                        "SERVICE_CODE" VARCHAR2(50 CHAR),
                                        "CREATE_BY" VARCHAR2(50 CHAR),
                                        "CREATE_TIME" TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
                                        "UPDATE_BY" VARCHAR2(50 CHAR),
                                        "UPDATE_TIME" TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
                                        "DEL_FLAG" NUMBER(10,0) NOT NULL DEFAULT 0,
                                        "TENANT_ID" NUMBER(38,0),
                                        "TENANT_NAME" VARCHAR2(30 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "NOTIFY_LOG"."ID" IS '通知日志ID';
COMMENT ON COLUMN "NOTIFY_LOG"."CHANNEL_ID" IS '渠道编号';
COMMENT ON COLUMN "NOTIFY_LOG"."NOTIFY_TEMPLATE_ID" IS '通知模版编号';
COMMENT ON COLUMN "NOTIFY_LOG"."MSG_CONTENT" IS '消息内容';
COMMENT ON COLUMN "NOTIFY_LOG"."SEND_ACCOUNT" IS '发送账号';
COMMENT ON COLUMN "NOTIFY_LOG"."SEND_STATUS" IS '发送状态';
COMMENT ON COLUMN "NOTIFY_LOG"."RESULT_CONTENT" IS '返回内容';
COMMENT ON COLUMN "NOTIFY_LOG"."SERVICE_CODE" IS '业务编码(唯一启用)';
COMMENT ON COLUMN "NOTIFY_LOG"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "NOTIFY_LOG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "NOTIFY_LOG"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "NOTIFY_LOG"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "NOTIFY_LOG"."DEL_FLAG" IS '逻辑删除标识';
COMMENT ON COLUMN "NOTIFY_LOG"."TENANT_ID" IS '租户id';
COMMENT ON COLUMN "NOTIFY_LOG"."TENANT_NAME" IS '租户名称';
COMMENT ON TABLE "NOTIFY_LOG" IS '通知日志';

-- ----------------------------
-- Records of NOTIFY_LOG
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table NOTIFY_LOG
-- ----------------------------
ALTER TABLE "NOTIFY_LOG" ADD CONSTRAINT "SYS_C0012537" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table NOTIFY_LOG
-- ----------------------------
ALTER TABLE "NOTIFY_LOG" ADD CONSTRAINT "SYS_C0012255" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_LOG" ADD CONSTRAINT "SYS_C0012256" CHECK ("CHANNEL_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_LOG" ADD CONSTRAINT "SYS_C0012257" CHECK ("NOTIFY_TEMPLATE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_LOG" ADD CONSTRAINT "SYS_C0012258" CHECK ("SEND_STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_LOG" ADD CONSTRAINT "SYS_C0012259" CHECK ("CREATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_LOG" ADD CONSTRAINT "SYS_C0012260" CHECK ("UPDATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_LOG" ADD CONSTRAINT "SYS_C0012261" CHECK ("DEL_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table NOTIFY_LOG
-- ----------------------------
CREATE TRIGGER "NOTIFY_LOG_ID_TRIG" BEFORE INSERT OR UPDATE ON "NOTIFY_LOG" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  notify_log_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM notify_log;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT notify_log_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for NOTIFY_TEMPLATE
-- ----------------------------
DROP TABLE "NOTIFY_TEMPLATE";
CREATE TABLE "NOTIFY_TEMPLATE" (
                                             "ID" NUMBER(38,0) NOT NULL,
                                             "NAME" VARCHAR2(50 CHAR) NOT NULL,
                                             "SERVICE_CODE" VARCHAR2(50 CHAR) NOT NULL,
                                             "CHANNEL_ID" NUMBER(38,0),
                                             "CHANNEL_TYPE" VARCHAR2(20 CHAR) NOT NULL,
                                             "PROVIDER" VARCHAR2(50 CHAR) NOT NULL,
                                             "MSG_PARAMS" CLOB,
                                             "STATUS" NUMBER(10,0) NOT NULL DEFAULT 0,
                                             "CREATE_BY" VARCHAR2(50 CHAR),
                                             "CREATE_TIME" TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
                                             "UPDATE_BY" VARCHAR2(50 CHAR),
                                             "UPDATE_TIME" TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
                                             "DEL_FLAG" NUMBER(10,0) NOT NULL DEFAULT 0,
                                             "TENANT_ID" NUMBER(38,0),
                                             "TENANT_NAME" VARCHAR2(30 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "NOTIFY_TEMPLATE"."ID" IS '编号';
COMMENT ON COLUMN "NOTIFY_TEMPLATE"."NAME" IS '渠道名称';
COMMENT ON COLUMN "NOTIFY_TEMPLATE"."SERVICE_CODE" IS '业务编码(唯一启用)';
COMMENT ON COLUMN "NOTIFY_TEMPLATE"."CHANNEL_ID" IS '通知渠道账号';
COMMENT ON COLUMN "NOTIFY_TEMPLATE"."CHANNEL_TYPE" IS '渠道类型';
COMMENT ON COLUMN "NOTIFY_TEMPLATE"."PROVIDER" IS '服务商';
COMMENT ON COLUMN "NOTIFY_TEMPLATE"."MSG_PARAMS" IS '模板配置参数';
COMMENT ON COLUMN "NOTIFY_TEMPLATE"."STATUS" IS '是否启用 0-不启用 1-启用';
COMMENT ON COLUMN "NOTIFY_TEMPLATE"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "NOTIFY_TEMPLATE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "NOTIFY_TEMPLATE"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "NOTIFY_TEMPLATE"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "NOTIFY_TEMPLATE"."DEL_FLAG" IS '逻辑删除标识';
COMMENT ON COLUMN "NOTIFY_TEMPLATE"."TENANT_ID" IS '租户id';
COMMENT ON COLUMN "NOTIFY_TEMPLATE"."TENANT_NAME" IS '租户名称';
COMMENT ON TABLE "NOTIFY_TEMPLATE" IS '通知模板';

-- ----------------------------
-- Records of NOTIFY_TEMPLATE
-- ----------------------------
INSERT INTO "NOTIFY_TEMPLATE" VALUES ('1', '告警阿里云短信', 'alert', '1', 'sms', 'alibaba', '{"sendAccount":"15752221201,15187816573","templateId":"SMS_465165225","signature":"蜂信物联","content":"您的设备:${name},设备编号:${serialnumber},在${address}发生${alert}告警"}', '0', NULL, TO_TIMESTAMP('2024-01-26 09:21:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-02-05 09:36:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0', '1', 'admin');
INSERT INTO "NOTIFY_TEMPLATE" VALUES ('2', '验证码阿里云短信', 'captcha', '1', 'sms', 'alibaba', '{"templateId":"SMS_464385158","signature":"蜂信物联","content":"验证码${code}，有效期5分钟"}', '0', NULL, TO_TIMESTAMP('2024-01-26 09:23:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-01-30 13:59:47.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0', '1', 'admin');
INSERT INTO "NOTIFY_TEMPLATE" VALUES ('3', '验证码腾讯云短信', 'captcha', '3', 'sms', 'tencent', '{"templateId":"2047168","signature":"曲靖蜂信科技","sdkAppId":"1400882003","content":"验证码{1}，有效期5分钟"}', '0', NULL, TO_TIMESTAMP('2024-01-26 09:28:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-01-26 09:28:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0', '1', 'admin');
INSERT INTO "NOTIFY_TEMPLATE" VALUES ('4', '告警腾讯云短信', 'alert', '3', 'sms', 'tencent', '{"sendAccount":"15752221201,15187816573","templateId":"2044927","signature":"曲靖蜂信科技","sdkAppId":"1400882003","content":"您的设备:{1},设备编号:{2},在{3}发生{4}告警"}', '0', NULL, TO_TIMESTAMP('2024-01-26 09:37:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-02-01 09:30:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0', '1', 'admin');
INSERT INTO "NOTIFY_TEMPLATE" VALUES ('5', '告警QQ邮箱', 'alert', '5', 'email', 'qq', '{"sendAccount":"1667783625@qq.com,2698076424@qq.com","title":"设备告警","attachment":"http://81.71.97.58/prod-api/profile/upload/2024/02/07/1_20240207151859A044.png","content":"<p>您的设备:#{name},设备编号:#{serialnumber},在#{address}发生#{alert}告警<img src=\"http://81.71.97.58/dev-api/profile/upload/2024/02/07/1_20240207151904A045.png\"></p>"}', '1', NULL, TO_TIMESTAMP('2024-01-26 09:43:26.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-02-07 15:31:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0', '1', 'admin');
INSERT INTO "NOTIFY_TEMPLATE" VALUES ('6', '告警163邮箱', 'alert', '6', 'email', '163', '{"sendAccount":"","title":"设备告警","attachment":"https://localhost/prod-api/profile/upload/2024/02/07/8233ffb6-8ad3-4ec6-8192-d8ae0b207771_20240207134906A027.jpg","content":"<p>您的设备:#{name},设备编号:#{serialnumber},在#{address}发生#{alert}告警<img src=\"http://81.71.97.58:8080/profile/upload/2024/02/07/8233ffb6-8ad3-4ec6-8192-d8ae0b207771_20240207134859A026.jpg\"></p>"}', '0', NULL, TO_TIMESTAMP('2024-01-26 09:44:05.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-02-07 13:49:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0', '1', 'admin');
INSERT INTO "NOTIFY_TEMPLATE" VALUES ('7', '告警阿里云语音', 'alert', '2', 'voice', 'alibaba', '{"sendAccount":"15752221201，15187816573","templateId":"TTS_287005231","content":"您的设备:${name}，在${address}发生告警，请尽快处理","playTimes":"1","volume":"50","speed":"0"}', '0', NULL, TO_TIMESTAMP('2024-01-26 09:49:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-02-05 09:36:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0', '1', 'admin');
INSERT INTO "NOTIFY_TEMPLATE" VALUES ('8', '告警腾讯云语音', 'alert', '4', 'voice', 'tencent', '{"sendAccount":"15752221201,15187816573","sdkAppId":"1400821558","templateId":"1480599","content":"您的设备:{1},设备编号:{2},在{3}发生{4}告警"}', '0', NULL, TO_TIMESTAMP('2024-01-26 09:53:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-02-01 11:31:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0', '1', 'admin');
INSERT INTO "NOTIFY_TEMPLATE" VALUES ('9', '告警微信小程序', 'alert', '7', 'wechat', 'mini_program', '{"sendAccount":"24","templateId":"M5OmcrDIGwg4sD_gMjBgDrtk2LM_x1N9mKtxTVYJjnA","redirectUrl":"/pages/tabBar/alert/index","content":"报警设备 {{thing1.DATA}}  设备编号 {{character_string7.DATA}}"}', '0', NULL, TO_TIMESTAMP('2024-01-26 10:22:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-02-05 10:46:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0', '1', 'admin');
INSERT INTO "NOTIFY_TEMPLATE" VALUES ('10', '告警企业微信应用消息', 'alert', '9', 'wechat', 'wecom_apply', '{"sendAccount":"shadow,oh","title":"设备告警","content":"您的设备:${name},设备编号:${serialnumber},在${address}发生${alert}告警","url":"https://iot.fastbee.cn/","picUrl":"","msgType":"news"}', '0', NULL, TO_TIMESTAMP('2024-01-26 10:25:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-02-05 09:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0', '1', 'admin');
INSERT INTO "NOTIFY_TEMPLATE" VALUES ('11', '告警企业微信群机器人', 'alert', '8', 'wechat', 'wecom_robot', '{"title":"设备告警","content":"您的设备:${name},设备编号:${serialnumber},在${address}发生${alert}告警","url":"https://iot.fastbee.cn/","picUrl":"http://81.71.97.58/prod-api/profile/upload/2024/02/07/1_20240207152000A047.png","msgType":"news"}', '1', NULL, TO_TIMESTAMP('2024-01-26 10:26:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-02-07 15:20:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0', '1', 'admin');
INSERT INTO "NOTIFY_TEMPLATE" VALUES ('12', '告警钉钉消息通知', 'alert', '10', 'dingtalk', 'work', '{"deptId":"","sendAllEnable":true,"sendAccount":"","title":"设备告警","content":"您的设备:${name},设备编号:${serialnumber},在${address}发生${alert}告警","messageUrl":" https://iot.fastbee.cn/  ","picUrl":"http://localhost:8080/profile/upload/2024/01/31/微信图片_20240119101536_20240131153350A001.png","msgType":"link"}', '0', NULL, TO_TIMESTAMP('2024-01-26 10:27:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-02-05 09:36:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0', '1', 'admin');
INSERT INTO "NOTIFY_TEMPLATE" VALUES ('13', '告警钉钉机器人', 'alert', '11', 'dingtalk', 'group_robot', '{"title":"设备告警","content":"您的设备:${name},设备编号:${serialnumber},在${address}发生${alert}告警","messageUrl":"https://iot.fastbee.cn","picUrl":"http://81.71.97.58/prod-api/profile/upload/2024/02/07/1_20240207151952A046.png","msgType":"link"}', '1', NULL, TO_TIMESTAMP('2024-01-26 10:28:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-02-07 15:19:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0', '1', 'admin');
INSERT INTO "NOTIFY_TEMPLATE" VALUES ('14', 'MQTT网页通知', 'alert', '12', 'mqtt', 'web', '{\"content\":\"设备编号：${0}，设备地址：${1}，当前值：${2}，报警限值：${3}，报警时间：${4}\"}', '1', NULL, TO_TIMESTAMP('2024-12-30 14:35:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, TO_TIMESTAMP('2024-12-30 14:35:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '0', '1', 'admin');

-- ----------------------------
-- Primary Key structure for table NOTIFY_TEMPLATE
-- ----------------------------
ALTER TABLE "NOTIFY_TEMPLATE" ADD CONSTRAINT "SYS_C0012538" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table NOTIFY_TEMPLATE
-- ----------------------------
ALTER TABLE "NOTIFY_TEMPLATE" ADD CONSTRAINT "SYS_C0012262" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_TEMPLATE" ADD CONSTRAINT "SYS_C0012263" CHECK ("NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_TEMPLATE" ADD CONSTRAINT "SYS_C0012264" CHECK ("SERVICE_CODE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_TEMPLATE" ADD CONSTRAINT "SYS_C0012265" CHECK ("CHANNEL_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_TEMPLATE" ADD CONSTRAINT "SYS_C0012266" CHECK ("PROVIDER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_TEMPLATE" ADD CONSTRAINT "SYS_C0012267" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_TEMPLATE" ADD CONSTRAINT "SYS_C0012268" CHECK ("CREATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_TEMPLATE" ADD CONSTRAINT "SYS_C0012269" CHECK ("UPDATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "NOTIFY_TEMPLATE" ADD CONSTRAINT "SYS_C0012270" CHECK ("DEL_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table NOTIFY_TEMPLATE
-- ----------------------------
CREATE TRIGGER "NOTIFY_TEMPLATE_ID_TRIG" BEFORE INSERT OR UPDATE ON "NOTIFY_TEMPLATE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  notify_template_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM notify_template;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT notify_template_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for OAUTH_ACCESS_TOKEN
-- ----------------------------
DROP TABLE "OAUTH_ACCESS_TOKEN";
CREATE TABLE "OAUTH_ACCESS_TOKEN" (
                                                "TOKEN_ID" VARCHAR2(340 CHAR),
                                                "TOKEN" BLOB,
                                                "AUTHENTICATION_ID" VARCHAR2(340 CHAR),
                                                "USER_NAME" VARCHAR2(340 CHAR),
                                                "CLIENT_ID" VARCHAR2(340 CHAR),
                                                "AUTHENTICATION" BLOB,
                                                "REFRESH_TOKEN" VARCHAR2(340 CHAR),
                                                "OPEN_ID" VARCHAR2(340 CHAR),
                                                "USER_ID" NUMBER(38,0),
                                                "EXPIRES_TIME" TIMESTAMP(6)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;

-- ----------------------------
-- Table structure for OAUTH_APPROVALS
-- ----------------------------
DROP TABLE "OAUTH_APPROVALS";
CREATE TABLE "OAUTH_APPROVALS" (
                                             "USERID" VARCHAR2(340 CHAR),
                                             "CLIENTID" VARCHAR2(340 CHAR),
                                             "SCOPE" VARCHAR2(340 CHAR),
                                             "STATUS" VARCHAR2(13 CHAR),
                                             "EXPIRESAT" TIMESTAMP(6) NOT NULL,
                                             "LASTMODIFIEDAT" TIMESTAMP(6)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;

-- ----------------------------
-- Records of OAUTH_APPROVALS
-- ----------------------------

-- ----------------------------
-- Checks structure for table OAUTH_APPROVALS
-- ----------------------------
ALTER TABLE "OAUTH_APPROVALS" ADD CONSTRAINT "SYS_C0012271" CHECK ("EXPIRESAT" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for OAUTH_CLIENT_DETAILS
-- ----------------------------
DROP TABLE "OAUTH_CLIENT_DETAILS";
CREATE TABLE "OAUTH_CLIENT_DETAILS" (
                                                  "ID" NUMBER(38,0) NOT NULL,
                                                  "CLIENT_ID" VARCHAR2(340 CHAR) NOT NULL,
                                                  "RESOURCE_IDS" VARCHAR2(340 CHAR),
                                                  "CLIENT_SECRET" VARCHAR2(340 CHAR),
                                                  "SCOPE" VARCHAR2(340 CHAR),
                                                  "AUTHORIZED_GRANT_TYPES" VARCHAR2(340 CHAR),
                                                  "WEB_SERVER_REDIRECT_URI" VARCHAR2(340 CHAR),
                                                  "AUTHORITIES" VARCHAR2(340 CHAR),
                                                  "ACCESS_TOKEN_VALIDITY" NUMBER(10,0),
                                                  "REFRESH_TOKEN_VALIDITY" NUMBER(10,0),
                                                  "ADDITIONAL_INFORMATION" CLOB,
                                                  "AUTOAPPROVE" VARCHAR2(340 CHAR),
                                                  "TYPE" NUMBER(10,0),
                                                  "STATUS" NUMBER(10,0) DEFAULT 0,
                                                  "ICON" VARCHAR2(85 CHAR),
                                                  "CLOUD_SKILL_ID" VARCHAR2(340 CHAR),
                                                  "TENANT_ID" NUMBER(38,0) NOT NULL,
                                                  "TENANT_NAME" VARCHAR2(30 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "OAUTH_CLIENT_DETAILS"."ID" IS '编号';
COMMENT ON COLUMN "OAUTH_CLIENT_DETAILS"."CLIENT_ID" IS '客户端ID';
COMMENT ON COLUMN "OAUTH_CLIENT_DETAILS"."RESOURCE_IDS" IS '客户端所能访问的资源id集合,多个资源时用逗号(,)分隔';
COMMENT ON COLUMN "OAUTH_CLIENT_DETAILS"."CLIENT_SECRET" IS '客户端秘钥';
COMMENT ON COLUMN "OAUTH_CLIENT_DETAILS"."SCOPE" IS '权限范围,可选值包括read,write,trust;若有多个权限范围用逗号(,)分隔';
COMMENT ON COLUMN "OAUTH_CLIENT_DETAILS"."AUTHORIZED_GRANT_TYPES" IS '授权模式，可选值包括authorization_code,password,refresh_token,implicit,client_credentials, 若支持多个grant_type用逗号(,)分隔';
COMMENT ON COLUMN "OAUTH_CLIENT_DETAILS"."WEB_SERVER_REDIRECT_URI" IS '回调地址';
COMMENT ON COLUMN "OAUTH_CLIENT_DETAILS"."AUTHORITIES" IS '权限';
COMMENT ON COLUMN "OAUTH_CLIENT_DETAILS"."ACCESS_TOKEN_VALIDITY" IS '设定客户端的access_token的有效时间值(单位:秒)';
COMMENT ON COLUMN "OAUTH_CLIENT_DETAILS"."REFRESH_TOKEN_VALIDITY" IS '设定客户端的refresh_token的有效时间值(单位:秒)';
COMMENT ON COLUMN "OAUTH_CLIENT_DETAILS"."ADDITIONAL_INFORMATION" IS '预留的字段,在Oauth的流程中没有实际的使用,可选,但若设置值,必须是JSON格式的数据';
COMMENT ON COLUMN "OAUTH_CLIENT_DETAILS"."AUTOAPPROVE" IS '"设置用户是否自动Approval操作, 默认值为 ''false'', 可选值包括 ''true'',''false'', ''read'',''write''.
该字段只适用于grant_type="authorization_code"的情况,当用户登录成功后,若该值为''true''或支持的scope值,则会跳过用户Approve的页面, 直接授权. "';
COMMENT ON COLUMN "OAUTH_CLIENT_DETAILS"."TYPE" IS '1=小度(DuerOS),2=天猫精灵(ALiGenie),3=小米小爱';
COMMENT ON COLUMN "OAUTH_CLIENT_DETAILS"."STATUS" IS '启用状态';
COMMENT ON COLUMN "OAUTH_CLIENT_DETAILS"."ICON" IS '图标';
COMMENT ON COLUMN "OAUTH_CLIENT_DETAILS"."CLOUD_SKILL_ID" IS '云技能id';
COMMENT ON COLUMN "OAUTH_CLIENT_DETAILS"."TENANT_ID" IS '租户id';
COMMENT ON COLUMN "OAUTH_CLIENT_DETAILS"."TENANT_NAME" IS '租户名称';

-- ----------------------------
-- Records of OAUTH_CLIENT_DETAILS
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table OAUTH_CLIENT_DETAILS
-- ----------------------------
ALTER TABLE "OAUTH_CLIENT_DETAILS" ADD CONSTRAINT "SYS_C0012539" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table OAUTH_CLIENT_DETAILS
-- ----------------------------
ALTER TABLE "OAUTH_CLIENT_DETAILS" ADD CONSTRAINT "SYS_C0012272" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OAUTH_CLIENT_DETAILS" ADD CONSTRAINT "SYS_C0012273" CHECK ("CLIENT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OAUTH_CLIENT_DETAILS" ADD CONSTRAINT "SYS_C0012274" CHECK ("TENANT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table OAUTH_CLIENT_DETAILS
-- ----------------------------
CREATE TRIGGER "OAUTH_CLIENT_DETAILS_ID_TRIG" BEFORE INSERT OR UPDATE ON "OAUTH_CLIENT_DETAILS" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  oauth_client_details_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM oauth_client_details;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT oauth_client_details_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for OAUTH_CLIENT_TOKEN
-- ----------------------------
DROP TABLE "OAUTH_CLIENT_TOKEN";
CREATE TABLE "OAUTH_CLIENT_TOKEN" (
                                                "TOKEN_ID" VARCHAR2(340 CHAR),
                                                "TOKEN" BLOB,
                                                "AUTHENTICATION_ID" VARCHAR2(340 CHAR),
                                                "USER_NAME" VARCHAR2(340 CHAR),
                                                "CLIENT_ID" VARCHAR2(340 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;

-- ----------------------------
-- Table structure for OAUTH_CODE
-- ----------------------------
DROP TABLE "OAUTH_CODE";
CREATE TABLE "OAUTH_CODE" (
                                        "CODE" VARCHAR2(340 CHAR),
                                        "AUTHENTICATION" BLOB,
                                        "USER_ID" NUMBER(38,0)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;

-- ----------------------------
-- Table structure for OAUTH_REFRESH_TOKEN
-- ----------------------------
DROP TABLE "OAUTH_REFRESH_TOKEN";
CREATE TABLE "OAUTH_REFRESH_TOKEN" (
                                                 "TOKEN_ID" VARCHAR2(340 CHAR),
                                                 "TOKEN" BLOB,
                                                 "AUTHENTICATION" BLOB
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;

-- ----------------------------
-- Table structure for ORDER_CONTROL
-- ----------------------------
DROP TABLE "ORDER_CONTROL";
CREATE TABLE "ORDER_CONTROL" (
                                           "ID" NUMBER(38,0) NOT NULL,
                                           "TENANT_ID" NUMBER(38,0) NOT NULL,
                                           "SELECT_ORDER" VARCHAR2(500 CHAR),
                                           "STATUS" NUMBER(10,0),
                                           "USER_ID" NUMBER(38,0),
                                           "DEVICE_ID" NUMBER(38,0),
                                           "COUNT" NUMBER(10,0),
                                           "START_TIME" TIMESTAMP(6),
                                           "END_TIME" TIMESTAMP(6),
                                           "CREATE_BY" VARCHAR2(64 CHAR),
                                           "CREATE_TIME" TIMESTAMP(6),
                                           "UPDATE_BY" VARCHAR2(64 CHAR),
                                           "UPDATE_TIME" TIMESTAMP(6),
                                           "REMARK" VARCHAR2(500 CHAR),
                                           "FILE_PATH" VARCHAR2(128 CHAR),
                                           "IMG_URL" VARCHAR2(500 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "ORDER_CONTROL"."ID" IS '主键id';
COMMENT ON COLUMN "ORDER_CONTROL"."TENANT_ID" IS '租户id';
COMMENT ON COLUMN "ORDER_CONTROL"."SELECT_ORDER" IS '逗号分隔';
COMMENT ON COLUMN "ORDER_CONTROL"."STATUS" IS '是否生效 0-否 1-是';
COMMENT ON COLUMN "ORDER_CONTROL"."USER_ID" IS '被限制的用户id';
COMMENT ON COLUMN "ORDER_CONTROL"."DEVICE_ID" IS '设备id';
COMMENT ON COLUMN "ORDER_CONTROL"."COUNT" IS '可操作次数';
COMMENT ON COLUMN "ORDER_CONTROL"."START_TIME" IS '开始时间';
COMMENT ON COLUMN "ORDER_CONTROL"."END_TIME" IS '结束时间';
COMMENT ON COLUMN "ORDER_CONTROL"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "ORDER_CONTROL"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "ORDER_CONTROL"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "ORDER_CONTROL"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "ORDER_CONTROL"."REMARK" IS '备注';
COMMENT ON COLUMN "ORDER_CONTROL"."FILE_PATH" IS '文件路径';
COMMENT ON COLUMN "ORDER_CONTROL"."IMG_URL" IS '图片路径';
COMMENT ON TABLE "ORDER_CONTROL" IS '指令权限控制';

-- ----------------------------
-- Records of ORDER_CONTROL
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table ORDER_CONTROL
-- ----------------------------
ALTER TABLE "ORDER_CONTROL" ADD CONSTRAINT "SYS_C0012540" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table ORDER_CONTROL
-- ----------------------------
ALTER TABLE "ORDER_CONTROL" ADD CONSTRAINT "SYS_C0012275" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "ORDER_CONTROL" ADD CONSTRAINT "SYS_C0012276" CHECK ("TENANT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table ORDER_CONTROL
-- ----------------------------
CREATE TRIGGER "ORDER_CONTROL_ID_TRIG" BEFORE INSERT OR UPDATE ON "ORDER_CONTROL" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  order_control_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM order_control;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT order_control_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for OSS_CONFIG
-- ----------------------------
DROP TABLE "OSS_CONFIG";
CREATE TABLE "OSS_CONFIG" (
                                        "ID" NUMBER(10,0) NOT NULL,
                                        "TENANT_ID" NUMBER(38,0) NOT NULL DEFAULT 1,
                                        "TENANT_NAME" VARCHAR2(30 CHAR) NOT NULL DEFAULT '',
                                        "CONFIG_KEY" VARCHAR2(20 CHAR) NOT NULL DEFAULT '',
                                        "ACCESS_KEY" VARCHAR2(255 CHAR) NOT NULL DEFAULT '',
                                        "SECRET_KEY" VARCHAR2(255 CHAR) NOT NULL DEFAULT '',
                                        "BUCKET_NAME" VARCHAR2(255 CHAR) NOT NULL DEFAULT '',
                                        "PREFIX" VARCHAR2(255 CHAR) NOT NULL DEFAULT '',
                                        "ENDPOINT" VARCHAR2(255 CHAR) NOT NULL DEFAULT '',
                                        "DOMAIN_ALIAS" VARCHAR2(255 CHAR) NOT NULL DEFAULT '',
                                        "IS_HTTPS" CHAR(1 CHAR) NOT NULL DEFAULT 'N',
  "REGION" VARCHAR2(255 CHAR) NOT NULL DEFAULT '',
  "ACCESS_POLICY" CHAR(1 CHAR) NOT NULL DEFAULT '0',
  "STATUS" NUMBER(10,0) NOT NULL DEFAULT 1,
  "EXT1" VARCHAR2(255 CHAR) NOT NULL DEFAULT '',
  "DEL_FLAG" CHAR(1 CHAR) NOT NULL DEFAULT '0',
  "CREATE_BY" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "OSS_CONFIG"."ID" IS 'id';
COMMENT ON COLUMN "OSS_CONFIG"."TENANT_ID" IS '租户id';
COMMENT ON COLUMN "OSS_CONFIG"."TENANT_NAME" IS '租户名称';
COMMENT ON COLUMN "OSS_CONFIG"."CONFIG_KEY" IS '配置key';
COMMENT ON COLUMN "OSS_CONFIG"."ACCESS_KEY" IS 'accessKey';
COMMENT ON COLUMN "OSS_CONFIG"."SECRET_KEY" IS '密钥';
COMMENT ON COLUMN "OSS_CONFIG"."BUCKET_NAME" IS '桶名称';
COMMENT ON COLUMN "OSS_CONFIG"."PREFIX" IS '前缀';
COMMENT ON COLUMN "OSS_CONFIG"."ENDPOINT" IS '访问站点';
COMMENT ON COLUMN "OSS_CONFIG"."DOMAIN_ALIAS" IS '自定义域名';
COMMENT ON COLUMN "OSS_CONFIG"."IS_HTTPS" IS '是否https（Y=是,N=否）';
COMMENT ON COLUMN "OSS_CONFIG"."REGION" IS '域';
COMMENT ON COLUMN "OSS_CONFIG"."ACCESS_POLICY" IS '桶权限类型(0=private 1=public 2=custom)';
COMMENT ON COLUMN "OSS_CONFIG"."STATUS" IS '是否默认（0=是,1=否）';
COMMENT ON COLUMN "OSS_CONFIG"."EXT1" IS '扩展字段';
COMMENT ON COLUMN "OSS_CONFIG"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "OSS_CONFIG"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "OSS_CONFIG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "OSS_CONFIG"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "OSS_CONFIG"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "OSS_CONFIG"."REMARK" IS '备注';
COMMENT ON TABLE "OSS_CONFIG" IS '对象存储配置表';

-- ----------------------------
-- Records of OSS_CONFIG
-- ----------------------------
INSERT INTO "OSS_CONFIG" VALUES ('1', '1', 'admin', 'aliyun', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'fastbee', ' ', 'oss-cn-beijing.aliyuncs.com', ' ', 'N', ' ', '0', 0, ' ', '0', ' ', TO_TIMESTAMP('2023-02-25 23:15:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "OSS_CONFIG" VALUES ('2', '1', 'admin', 'qiniu', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'fastbee', ' ', 's3-cn-north-1.qiniucs.com', ' ', 'N', ' ', '1', 1, ' ', '0', ' ', TO_TIMESTAMP('2023-02-25 23:15:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);

-- ----------------------------
-- Primary Key structure for table OSS_CONFIG
-- ----------------------------
ALTER TABLE "OSS_CONFIG" ADD CONSTRAINT "SYS_C0012541" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table OSS_CONFIG
-- ----------------------------
ALTER TABLE "OSS_CONFIG" ADD CONSTRAINT "SYS_C0012277" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_CONFIG" ADD CONSTRAINT "SYS_C0012278" CHECK ("TENANT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_CONFIG" ADD CONSTRAINT "SYS_C0012279" CHECK ("TENANT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_CONFIG" ADD CONSTRAINT "SYS_C0012280" CHECK ("CONFIG_KEY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_CONFIG" ADD CONSTRAINT "SYS_C0012281" CHECK ("ACCESS_KEY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_CONFIG" ADD CONSTRAINT "SYS_C0012282" CHECK ("SECRET_KEY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_CONFIG" ADD CONSTRAINT "SYS_C0012283" CHECK ("BUCKET_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_CONFIG" ADD CONSTRAINT "SYS_C0012284" CHECK ("PREFIX" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_CONFIG" ADD CONSTRAINT "SYS_C0012285" CHECK ("ENDPOINT" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_CONFIG" ADD CONSTRAINT "SYS_C0012286" CHECK ("DOMAIN_ALIAS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_CONFIG" ADD CONSTRAINT "SYS_C0012287" CHECK ("IS_HTTPS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_CONFIG" ADD CONSTRAINT "SYS_C0012288" CHECK ("REGION" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_CONFIG" ADD CONSTRAINT "SYS_C0012289" CHECK ("ACCESS_POLICY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_CONFIG" ADD CONSTRAINT "SYS_C0012290" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_CONFIG" ADD CONSTRAINT "SYS_C0012291" CHECK ("EXT1" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_CONFIG" ADD CONSTRAINT "SYS_C0012292" CHECK ("DEL_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_CONFIG" ADD CONSTRAINT "SYS_C0012293" CHECK ("CREATE_BY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_CONFIG" ADD CONSTRAINT "SYS_C0012294" CHECK ("CREATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table OSS_CONFIG
-- ----------------------------
CREATE TRIGGER "OSS_CONFIG_ID_TRIG" BEFORE INSERT OR UPDATE ON "OSS_CONFIG" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  oss_config_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM oss_config;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT oss_config_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for OSS_DETAIL
-- ----------------------------
DROP TABLE "OSS_DETAIL";
CREATE TABLE "OSS_DETAIL" (
                                        "ID" NUMBER(10,0) NOT NULL,
                                        "TENANT_ID" NUMBER(38,0) NOT NULL DEFAULT 1,
                                        "TENANT_NAME" VARCHAR2(30 CHAR) NOT NULL DEFAULT '',
                                        "FILE_NAME" VARCHAR2(255 CHAR) NOT NULL DEFAULT '',
                                        "ORIGINAL_NAME" VARCHAR2(255 CHAR) NOT NULL DEFAULT '',
                                        "FILE_SUFFIX" VARCHAR2(10 CHAR) NOT NULL DEFAULT '',
                                        "URL" VARCHAR2(500 CHAR) NOT NULL DEFAULT '',
                                        "SERVICE" VARCHAR2(20 CHAR) NOT NULL DEFAULT 'aliyun',
                                        "DEL_FLAG" CHAR(1 CHAR) NOT NULL DEFAULT '0',
  "CREATE_BY" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "OSS_DETAIL"."ID" IS '文件id';
COMMENT ON COLUMN "OSS_DETAIL"."TENANT_ID" IS '租户ID';
COMMENT ON COLUMN "OSS_DETAIL"."TENANT_NAME" IS '租户名称';
COMMENT ON COLUMN "OSS_DETAIL"."FILE_NAME" IS '文件名';
COMMENT ON COLUMN "OSS_DETAIL"."ORIGINAL_NAME" IS '原名';
COMMENT ON COLUMN "OSS_DETAIL"."FILE_SUFFIX" IS '文件后缀名';
COMMENT ON COLUMN "OSS_DETAIL"."URL" IS 'URL地址';
COMMENT ON COLUMN "OSS_DETAIL"."SERVICE" IS '服务商';
COMMENT ON COLUMN "OSS_DETAIL"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "OSS_DETAIL"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "OSS_DETAIL"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "OSS_DETAIL"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "OSS_DETAIL"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "OSS_DETAIL"."REMARK" IS '备注';
COMMENT ON TABLE "OSS_DETAIL" IS '文件记录表';

-- ----------------------------
-- Records of OSS_DETAIL
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table OSS_DETAIL
-- ----------------------------
ALTER TABLE "OSS_DETAIL" ADD CONSTRAINT "SYS_C0012542" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table OSS_DETAIL
-- ----------------------------
ALTER TABLE "OSS_DETAIL" ADD CONSTRAINT "SYS_C0012295" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_DETAIL" ADD CONSTRAINT "SYS_C0012296" CHECK ("TENANT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_DETAIL" ADD CONSTRAINT "SYS_C0012297" CHECK ("TENANT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_DETAIL" ADD CONSTRAINT "SYS_C0012298" CHECK ("FILE_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_DETAIL" ADD CONSTRAINT "SYS_C0012299" CHECK ("ORIGINAL_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_DETAIL" ADD CONSTRAINT "SYS_C0012300" CHECK ("FILE_SUFFIX" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_DETAIL" ADD CONSTRAINT "SYS_C0012301" CHECK ("URL" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_DETAIL" ADD CONSTRAINT "SYS_C0012302" CHECK ("SERVICE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_DETAIL" ADD CONSTRAINT "SYS_C0012303" CHECK ("DEL_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_DETAIL" ADD CONSTRAINT "SYS_C0012304" CHECK ("CREATE_BY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "OSS_DETAIL" ADD CONSTRAINT "SYS_C0012305" CHECK ("CREATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table OSS_DETAIL
-- ----------------------------
CREATE TRIGGER "OSS_DETAIL_ID_TRIG" BEFORE INSERT OR UPDATE ON "OSS_DETAIL" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  oss_detail_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM oss_detail;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT oss_detail_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for QRTZ_BLOB_TRIGGERS
-- ----------------------------
DROP TABLE "QRTZ_BLOB_TRIGGERS";
CREATE TABLE "QRTZ_BLOB_TRIGGERS" (
                                                "SCHED_NAME" VARCHAR2(160 CHAR) NOT NULL,
                                                "TRIGGER_NAME" VARCHAR2(266 CHAR) NOT NULL,
                                                "TRIGGER_GROUP" VARCHAR2(266 CHAR) NOT NULL,
                                                "BLOB_DATA" BLOB
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "QRTZ_BLOB_TRIGGERS"."SCHED_NAME" IS '调度名称';
COMMENT ON COLUMN "QRTZ_BLOB_TRIGGERS"."TRIGGER_NAME" IS 'qrtz_triggers表trigger_name的外键';
COMMENT ON COLUMN "QRTZ_BLOB_TRIGGERS"."TRIGGER_GROUP" IS 'qrtz_triggers表trigger_group的外键';
COMMENT ON COLUMN "QRTZ_BLOB_TRIGGERS"."BLOB_DATA" IS '存放持久化Trigger对象';
COMMENT ON TABLE "QRTZ_BLOB_TRIGGERS" IS 'Blob类型的触发器表';

-- ----------------------------
-- Records of QRTZ_BLOB_TRIGGERS
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table QRTZ_BLOB_TRIGGERS
-- ----------------------------
ALTER TABLE "QRTZ_BLOB_TRIGGERS" ADD CONSTRAINT "SYS_C0012543" PRIMARY KEY ("SCHED_NAME", "TRIGGER_NAME", "TRIGGER_GROUP");

-- ----------------------------
-- Checks structure for table QRTZ_BLOB_TRIGGERS
-- ----------------------------
ALTER TABLE "QRTZ_BLOB_TRIGGERS" ADD CONSTRAINT "SYS_C0012306" CHECK ("SCHED_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_BLOB_TRIGGERS" ADD CONSTRAINT "SYS_C0012307" CHECK ("TRIGGER_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_BLOB_TRIGGERS" ADD CONSTRAINT "SYS_C0012308" CHECK ("TRIGGER_GROUP" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for QRTZ_CALENDARS
-- ----------------------------
DROP TABLE "QRTZ_CALENDARS";
CREATE TABLE "QRTZ_CALENDARS" (
                                            "SCHED_NAME" VARCHAR2(160 CHAR) NOT NULL,
                                            "CALENDAR_NAME" VARCHAR2(266 CHAR) NOT NULL,
                                            "CALENDAR" BLOB NOT NULL
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "QRTZ_CALENDARS"."SCHED_NAME" IS '调度名称';
COMMENT ON COLUMN "QRTZ_CALENDARS"."CALENDAR_NAME" IS '日历名称';
COMMENT ON COLUMN "QRTZ_CALENDARS"."CALENDAR" IS '存放持久化calendar对象';
COMMENT ON TABLE "QRTZ_CALENDARS" IS '日历信息表';

-- ----------------------------
-- Records of QRTZ_CALENDARS
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table QRTZ_CALENDARS
-- ----------------------------
ALTER TABLE "QRTZ_CALENDARS" ADD CONSTRAINT "SYS_C0012544" PRIMARY KEY ("SCHED_NAME", "CALENDAR_NAME");

-- ----------------------------
-- Checks structure for table QRTZ_CALENDARS
-- ----------------------------
ALTER TABLE "QRTZ_CALENDARS" ADD CONSTRAINT "SYS_C0012309" CHECK ("SCHED_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_CALENDARS" ADD CONSTRAINT "SYS_C0012310" CHECK ("CALENDAR_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_CALENDARS" ADD CONSTRAINT "SYS_C0012311" CHECK ("CALENDAR" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for QRTZ_CRON_TRIGGERS
-- ----------------------------
DROP TABLE "QRTZ_CRON_TRIGGERS";
CREATE TABLE "QRTZ_CRON_TRIGGERS" (
                                                "SCHED_NAME" VARCHAR2(160 CHAR) NOT NULL,
                                                "TRIGGER_NAME" VARCHAR2(266 CHAR) NOT NULL,
                                                "TRIGGER_GROUP" VARCHAR2(266 CHAR) NOT NULL,
                                                "CRON_EXPRESSION" VARCHAR2(266 CHAR) NOT NULL,
                                                "TIME_ZONE_ID" VARCHAR2(106 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "QRTZ_CRON_TRIGGERS"."SCHED_NAME" IS '调度名称';
COMMENT ON COLUMN "QRTZ_CRON_TRIGGERS"."TRIGGER_NAME" IS 'qrtz_triggers表trigger_name的外键';
COMMENT ON COLUMN "QRTZ_CRON_TRIGGERS"."TRIGGER_GROUP" IS 'qrtz_triggers表trigger_group的外键';
COMMENT ON COLUMN "QRTZ_CRON_TRIGGERS"."CRON_EXPRESSION" IS 'cron表达式';
COMMENT ON COLUMN "QRTZ_CRON_TRIGGERS"."TIME_ZONE_ID" IS '时区';
COMMENT ON TABLE "QRTZ_CRON_TRIGGERS" IS 'Cron类型的触发器表';

-- ----------------------------
-- Records of QRTZ_CRON_TRIGGERS
-- ----------------------------
INSERT INTO "QRTZ_CRON_TRIGGERS" VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME1', 'DEFAULT', '0/10 * * * * ?', 'Asia/Shanghai');
INSERT INTO "QRTZ_CRON_TRIGGERS" VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME2', 'DEFAULT', '0/15 * * * * ?', 'Asia/Shanghai');
INSERT INTO "QRTZ_CRON_TRIGGERS" VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME3', 'DEFAULT', '0/20 * * * * ?', 'Asia/Shanghai');
INSERT INTO "QRTZ_CRON_TRIGGERS" VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME4', 'SYSTEM', '0 0/4 * * * ? ', 'Asia/Shanghai');
INSERT INTO "QRTZ_CRON_TRIGGERS" VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME5', 'SYSTEM', '0 0/1 * * * ? ', 'Asia/Shanghai');

-- ----------------------------
-- Primary Key structure for table QRTZ_CRON_TRIGGERS
-- ----------------------------
ALTER TABLE "QRTZ_CRON_TRIGGERS" ADD CONSTRAINT "SYS_C0012545" PRIMARY KEY ("SCHED_NAME", "TRIGGER_NAME", "TRIGGER_GROUP");

-- ----------------------------
-- Checks structure for table QRTZ_CRON_TRIGGERS
-- ----------------------------
ALTER TABLE "QRTZ_CRON_TRIGGERS" ADD CONSTRAINT "SYS_C0012312" CHECK ("SCHED_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_CRON_TRIGGERS" ADD CONSTRAINT "SYS_C0012313" CHECK ("TRIGGER_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_CRON_TRIGGERS" ADD CONSTRAINT "SYS_C0012314" CHECK ("TRIGGER_GROUP" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_CRON_TRIGGERS" ADD CONSTRAINT "SYS_C0012315" CHECK ("CRON_EXPRESSION" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for QRTZ_FIRED_TRIGGERS
-- ----------------------------
DROP TABLE "QRTZ_FIRED_TRIGGERS";
CREATE TABLE "QRTZ_FIRED_TRIGGERS" (
                                                 "SCHED_NAME" VARCHAR2(160 CHAR) NOT NULL,
                                                 "ENTRY_ID" VARCHAR2(126 CHAR) NOT NULL,
                                                 "TRIGGER_NAME" VARCHAR2(266 CHAR) NOT NULL,
                                                 "TRIGGER_GROUP" VARCHAR2(266 CHAR) NOT NULL,
                                                 "INSTANCE_NAME" VARCHAR2(266 CHAR) NOT NULL,
                                                 "FIRED_TIME" NUMBER(38,0) NOT NULL,
                                                 "SCHED_TIME" NUMBER(38,0) NOT NULL,
                                                 "PRIORITY" NUMBER(10,0) NOT NULL,
                                                 "STATE" VARCHAR2(21 CHAR) NOT NULL,
                                                 "JOB_NAME" VARCHAR2(266 CHAR),
                                                 "JOB_GROUP" VARCHAR2(266 CHAR),
                                                 "IS_NONCONCURRENT" VARCHAR2(1 CHAR),
                                                 "REQUESTS_RECOVERY" VARCHAR2(1 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "QRTZ_FIRED_TRIGGERS"."SCHED_NAME" IS '调度名称';
COMMENT ON COLUMN "QRTZ_FIRED_TRIGGERS"."ENTRY_ID" IS '调度器实例id';
COMMENT ON COLUMN "QRTZ_FIRED_TRIGGERS"."TRIGGER_NAME" IS 'qrtz_triggers表trigger_name的外键';
COMMENT ON COLUMN "QRTZ_FIRED_TRIGGERS"."TRIGGER_GROUP" IS 'qrtz_triggers表trigger_group的外键';
COMMENT ON COLUMN "QRTZ_FIRED_TRIGGERS"."INSTANCE_NAME" IS '调度器实例名';
COMMENT ON COLUMN "QRTZ_FIRED_TRIGGERS"."FIRED_TIME" IS '触发的时间';
COMMENT ON COLUMN "QRTZ_FIRED_TRIGGERS"."SCHED_TIME" IS '定时器制定的时间';
COMMENT ON COLUMN "QRTZ_FIRED_TRIGGERS"."PRIORITY" IS '优先级';
COMMENT ON COLUMN "QRTZ_FIRED_TRIGGERS"."STATE" IS '状态';
COMMENT ON COLUMN "QRTZ_FIRED_TRIGGERS"."JOB_NAME" IS '任务名称';
COMMENT ON COLUMN "QRTZ_FIRED_TRIGGERS"."JOB_GROUP" IS '任务组名';
COMMENT ON COLUMN "QRTZ_FIRED_TRIGGERS"."IS_NONCONCURRENT" IS '是否并发';
COMMENT ON COLUMN "QRTZ_FIRED_TRIGGERS"."REQUESTS_RECOVERY" IS '是否接受恢复执行';
COMMENT ON TABLE "QRTZ_FIRED_TRIGGERS" IS '已触发的触发器表';

-- ----------------------------
-- Records of QRTZ_FIRED_TRIGGERS
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table QRTZ_FIRED_TRIGGERS
-- ----------------------------
ALTER TABLE "QRTZ_FIRED_TRIGGERS" ADD CONSTRAINT "SYS_C0012546" PRIMARY KEY ("SCHED_NAME", "ENTRY_ID");

-- ----------------------------
-- Checks structure for table QRTZ_FIRED_TRIGGERS
-- ----------------------------
ALTER TABLE "QRTZ_FIRED_TRIGGERS" ADD CONSTRAINT "SYS_C0012316" CHECK ("SCHED_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_FIRED_TRIGGERS" ADD CONSTRAINT "SYS_C0012317" CHECK ("ENTRY_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_FIRED_TRIGGERS" ADD CONSTRAINT "SYS_C0012318" CHECK ("TRIGGER_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_FIRED_TRIGGERS" ADD CONSTRAINT "SYS_C0012319" CHECK ("TRIGGER_GROUP" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_FIRED_TRIGGERS" ADD CONSTRAINT "SYS_C0012320" CHECK ("INSTANCE_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_FIRED_TRIGGERS" ADD CONSTRAINT "SYS_C0012321" CHECK ("FIRED_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_FIRED_TRIGGERS" ADD CONSTRAINT "SYS_C0012322" CHECK ("SCHED_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_FIRED_TRIGGERS" ADD CONSTRAINT "SYS_C0012323" CHECK ("PRIORITY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_FIRED_TRIGGERS" ADD CONSTRAINT "SYS_C0012324" CHECK ("STATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for QRTZ_JOB_DETAILS
-- ----------------------------
DROP TABLE "QRTZ_JOB_DETAILS";
CREATE TABLE "QRTZ_JOB_DETAILS" (
                                              "SCHED_NAME" VARCHAR2(160 CHAR) NOT NULL,
                                              "JOB_NAME" VARCHAR2(266 CHAR) NOT NULL,
                                              "JOB_GROUP" VARCHAR2(266 CHAR) NOT NULL,
                                              "DESCRIPTION" VARCHAR2(333 CHAR),
                                              "JOB_CLASS_NAME" VARCHAR2(333 CHAR) NOT NULL,
                                              "IS_DURABLE" VARCHAR2(1 CHAR) NOT NULL,
                                              "IS_NONCONCURRENT" VARCHAR2(1 CHAR) NOT NULL,
                                              "IS_UPDATE_DATA" VARCHAR2(1 CHAR) NOT NULL,
                                              "REQUESTS_RECOVERY" VARCHAR2(1 CHAR) NOT NULL,
                                              "JOB_DATA" BLOB
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "QRTZ_JOB_DETAILS"."SCHED_NAME" IS '调度名称';
COMMENT ON COLUMN "QRTZ_JOB_DETAILS"."JOB_NAME" IS '任务名称';
COMMENT ON COLUMN "QRTZ_JOB_DETAILS"."JOB_GROUP" IS '任务组名';
COMMENT ON COLUMN "QRTZ_JOB_DETAILS"."DESCRIPTION" IS '相关介绍';
COMMENT ON COLUMN "QRTZ_JOB_DETAILS"."JOB_CLASS_NAME" IS '执行任务类名称';
COMMENT ON COLUMN "QRTZ_JOB_DETAILS"."IS_DURABLE" IS '是否持久化';
COMMENT ON COLUMN "QRTZ_JOB_DETAILS"."IS_NONCONCURRENT" IS '是否并发';
COMMENT ON COLUMN "QRTZ_JOB_DETAILS"."IS_UPDATE_DATA" IS '是否更新数据';
COMMENT ON COLUMN "QRTZ_JOB_DETAILS"."REQUESTS_RECOVERY" IS '是否接受恢复执行';
COMMENT ON COLUMN "QRTZ_JOB_DETAILS"."JOB_DATA" IS '存放持久化job对象';
COMMENT ON TABLE "QRTZ_JOB_DETAILS" IS '任务详细信息表';

-- ----------------------------
-- Records of QRTZ_JOB_DETAILS
-- ----------------------------
INSERT INTO "QRTZ_JOB_DETAILS" VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME1', 'DEFAULT', NULL, 'com.fastbee.quartz.util.QuartzDisallowConcurrentExecution', '0', '1', '0', '0', HEXTORAW('ACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F5045525449455373720020636F6D2E666173746265652E71756172747A2E646F6D61696E2E5379734A6F6200000000000000010200084C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000673746174757371007E000978720029636F6D2E666173746265652E636F6D6D6F6E2E636F72652E646F6D61696E2E42617365456E7469747900000000000000010200074C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C0006706172616D7371007E00034C000672656D61726B71007E00094C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C787074000561646D696E7372000E6A6176612E7574696C2E44617465686A81014B597419030000787077080000017DBE4ED85078707400007070707400013174000E302F3130202A202A202A202A203F74001172795461736B2E72794E6F506172616D7374000744454641554C547372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000000000001740018E7B3BBE7BB9FE9BB98E8AEA4EFBC88E697A0E58F82EFBC8974000133740001307800'));
INSERT INTO "QRTZ_JOB_DETAILS" VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME2', 'DEFAULT', NULL, 'com.fastbee.quartz.util.QuartzDisallowConcurrentExecution', '0', '1', '0', '0', HEXTORAW('ACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F5045525449455373720020636F6D2E666173746265652E71756172747A2E646F6D61696E2E5379734A6F6200000000000000010200084C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000673746174757371007E000978720029636F6D2E666173746265652E636F6D6D6F6E2E636F72652E646F6D61696E2E42617365456E7469747900000000000000010200074C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C0006706172616D7371007E00034C000672656D61726B71007E00094C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C787074000561646D696E7372000E6A6176612E7574696C2E44617465686A81014B597419030000787077080000017DBE4ED85078707400007070707400013174000E302F3135202A202A202A202A203F74001572795461736B2E7279506172616D7328277279272974000744454641554C547372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000000000002740018E7B3BBE7BB9FE9BB98E8AEA4EFBC88E69C89E58F82EFBC8974000133740001317800'));
INSERT INTO "QRTZ_JOB_DETAILS" VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME3', 'DEFAULT', NULL, 'com.fastbee.quartz.util.QuartzDisallowConcurrentExecution', '0', '1', '0', '0', HEXTORAW('ACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F5045525449455373720020636F6D2E666173746265652E71756172747A2E646F6D61696E2E5379734A6F6200000000000000010200084C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000673746174757371007E000978720029636F6D2E666173746265652E636F6D6D6F6E2E636F72652E646F6D61696E2E42617365456E7469747900000000000000010200074C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C0006706172616D7371007E00034C000672656D61726B71007E00094C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C787074000561646D696E7372000E6A6176612E7574696C2E44617465686A81014B597419030000787077080000017DBE4ED85078707400007070707400013174000E302F3230202A202A202A202A203F74003872795461736B2E72794D756C7469706C65506172616D7328277279272C20747275652C20323030304C2C203331362E3530442C203130302974000744454641554C547372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000000000003740018E7B3BBE7BB9FE9BB98E8AEA4EFBC88E5A49AE58F82EFBC8974000133740001317800'));
INSERT INTO "QRTZ_JOB_DETAILS" VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME4', 'SYSTEM', NULL, 'com.fastbee.quartz.util.QuartzJobExecution', '0', '0', '0', '0', HEXTORAW('ACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F5045525449455373720020636F6D2E666173746265652E71756172747A2E646F6D61696E2E5379734A6F6200000000000000010200084C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000673746174757371007E000978720029636F6D2E666173746265652E636F6D6D6F6E2E636F72652E646F6D61696E2E42617365456E7469747900000000000000010200074C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C0006706172616D7371007E00034C000672656D61726B71007E00094C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C787074000561646D696E7372000E6A6176612E7574696C2E44617465686A81014B59741903000078707708000001869759B0B878707400007070707400013074000E3020302F34202A202A202A203F2074002070726F7047657453657276696365496D706C2E666574636850726F706572747974000653595354454D7372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000000000000047400126D6F64627573E4BA91E7ABAFE8BDAEE8AFA274000131740001307800'));
INSERT INTO "QRTZ_JOB_DETAILS" VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME5', 'SYSTEM', NULL, 'com.fastbee.quartz.util.QuartzDisallowConcurrentExecution', '0', '1', '0', '0', HEXTORAW('ACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F5045525449455373720020636F6D2E666173746265652E71756172747A2E646F6D61696E2E5379734A6F6200000000000000010200084C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000673746174757371007E000978720029636F6D2E666173746265652E636F6D6D6F6E2E636F72652E646F6D61696E2E42617365456E7469747900000000000000010200074C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C0006706172616D7371007E00034C000672656D61726B71007E00094C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C787074000561646D696E7372000E6A6176612E7574696C2E44617465686A81014B5974190300007870770800000187118D07E078707400007070707400013174000E3020302F31202A202A202A203F207400286465766963654A6F622E74696D696E6755706461746544657669636553746174757353746174757374000653595354454D7372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000000000005740012E8AEBEE5A487E5AE9AE697B6E4BBBBE58AA174000131740001307800'));

-- ----------------------------
-- Primary Key structure for table QRTZ_JOB_DETAILS
-- ----------------------------
ALTER TABLE "QRTZ_JOB_DETAILS" ADD CONSTRAINT "SYS_C0012547" PRIMARY KEY ("SCHED_NAME", "JOB_NAME", "JOB_GROUP");

-- ----------------------------
-- Checks structure for table QRTZ_JOB_DETAILS
-- ----------------------------
ALTER TABLE "QRTZ_JOB_DETAILS" ADD CONSTRAINT "SYS_C0012325" CHECK ("SCHED_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_JOB_DETAILS" ADD CONSTRAINT "SYS_C0012326" CHECK ("JOB_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_JOB_DETAILS" ADD CONSTRAINT "SYS_C0012327" CHECK ("JOB_GROUP" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_JOB_DETAILS" ADD CONSTRAINT "SYS_C0012328" CHECK ("JOB_CLASS_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_JOB_DETAILS" ADD CONSTRAINT "SYS_C0012329" CHECK ("IS_DURABLE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_JOB_DETAILS" ADD CONSTRAINT "SYS_C0012330" CHECK ("IS_NONCONCURRENT" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_JOB_DETAILS" ADD CONSTRAINT "SYS_C0012331" CHECK ("IS_UPDATE_DATA" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_JOB_DETAILS" ADD CONSTRAINT "SYS_C0012332" CHECK ("REQUESTS_RECOVERY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for QRTZ_LOCKS
-- ----------------------------
DROP TABLE "QRTZ_LOCKS";
CREATE TABLE "QRTZ_LOCKS" (
                                        "SCHED_NAME" VARCHAR2(160 CHAR) NOT NULL,
                                        "LOCK_NAME" VARCHAR2(53 CHAR) NOT NULL
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "QRTZ_LOCKS"."SCHED_NAME" IS '调度名称';
COMMENT ON COLUMN "QRTZ_LOCKS"."LOCK_NAME" IS '悲观锁名称';
COMMENT ON TABLE "QRTZ_LOCKS" IS '存储的悲观锁信息表';

-- ----------------------------
-- Records of QRTZ_LOCKS
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table QRTZ_LOCKS
-- ----------------------------
ALTER TABLE "QRTZ_LOCKS" ADD CONSTRAINT "SYS_C0012548" PRIMARY KEY ("SCHED_NAME", "LOCK_NAME");

-- ----------------------------
-- Checks structure for table QRTZ_LOCKS
-- ----------------------------
ALTER TABLE "QRTZ_LOCKS" ADD CONSTRAINT "SYS_C0012333" CHECK ("SCHED_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_LOCKS" ADD CONSTRAINT "SYS_C0012334" CHECK ("LOCK_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for QRTZ_PAUSED_TRIGGER_GRPS
-- ----------------------------
DROP TABLE "QRTZ_PAUSED_TRIGGER_GRPS";
CREATE TABLE "QRTZ_PAUSED_TRIGGER_GRPS" (
                                                      "SCHED_NAME" VARCHAR2(160 CHAR) NOT NULL,
                                                      "TRIGGER_GROUP" VARCHAR2(266 CHAR) NOT NULL
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "QRTZ_PAUSED_TRIGGER_GRPS"."SCHED_NAME" IS '调度名称';
COMMENT ON COLUMN "QRTZ_PAUSED_TRIGGER_GRPS"."TRIGGER_GROUP" IS 'qrtz_triggers表trigger_group的外键';
COMMENT ON TABLE "QRTZ_PAUSED_TRIGGER_GRPS" IS '暂停的触发器表';

-- ----------------------------
-- Records of QRTZ_PAUSED_TRIGGER_GRPS
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table QRTZ_PAUSED_TRIGGER_GRPS
-- ----------------------------
ALTER TABLE "QRTZ_PAUSED_TRIGGER_GRPS" ADD CONSTRAINT "SYS_C0012549" PRIMARY KEY ("SCHED_NAME", "TRIGGER_GROUP");

-- ----------------------------
-- Checks structure for table QRTZ_PAUSED_TRIGGER_GRPS
-- ----------------------------
ALTER TABLE "QRTZ_PAUSED_TRIGGER_GRPS" ADD CONSTRAINT "SYS_C0012335" CHECK ("SCHED_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_PAUSED_TRIGGER_GRPS" ADD CONSTRAINT "SYS_C0012336" CHECK ("TRIGGER_GROUP" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for QRTZ_SCHEDULER_STATE
-- ----------------------------
DROP TABLE "QRTZ_SCHEDULER_STATE";
CREATE TABLE "QRTZ_SCHEDULER_STATE" (
                                                  "SCHED_NAME" VARCHAR2(160 CHAR) NOT NULL,
                                                  "INSTANCE_NAME" VARCHAR2(266 CHAR) NOT NULL,
                                                  "LAST_CHECKIN_TIME" NUMBER(38,0) NOT NULL,
                                                  "CHECKIN_INTERVAL" NUMBER(38,0) NOT NULL
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "QRTZ_SCHEDULER_STATE"."SCHED_NAME" IS '调度名称';
COMMENT ON COLUMN "QRTZ_SCHEDULER_STATE"."INSTANCE_NAME" IS '实例名称';
COMMENT ON COLUMN "QRTZ_SCHEDULER_STATE"."LAST_CHECKIN_TIME" IS '上次检查时间';
COMMENT ON COLUMN "QRTZ_SCHEDULER_STATE"."CHECKIN_INTERVAL" IS '检查间隔时间';
COMMENT ON TABLE "QRTZ_SCHEDULER_STATE" IS '调度器状态表';

-- ----------------------------
-- Records of QRTZ_SCHEDULER_STATE
-- ----------------------------
INSERT INTO "QRTZ_SCHEDULER_STATE" VALUES ('RuoyiScheduler', 'beecue1680023933011', '1680023961720', '15000');

-- ----------------------------
-- Primary Key structure for table QRTZ_SCHEDULER_STATE
-- ----------------------------
ALTER TABLE "QRTZ_SCHEDULER_STATE" ADD CONSTRAINT "SYS_C0012550" PRIMARY KEY ("SCHED_NAME", "INSTANCE_NAME");

-- ----------------------------
-- Checks structure for table QRTZ_SCHEDULER_STATE
-- ----------------------------
ALTER TABLE "QRTZ_SCHEDULER_STATE" ADD CONSTRAINT "SYS_C0012337" CHECK ("SCHED_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_SCHEDULER_STATE" ADD CONSTRAINT "SYS_C0012338" CHECK ("INSTANCE_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_SCHEDULER_STATE" ADD CONSTRAINT "SYS_C0012339" CHECK ("LAST_CHECKIN_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_SCHEDULER_STATE" ADD CONSTRAINT "SYS_C0012340" CHECK ("CHECKIN_INTERVAL" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for QRTZ_SIMPLE_TRIGGERS
-- ----------------------------
DROP TABLE "QRTZ_SIMPLE_TRIGGERS";
CREATE TABLE "QRTZ_SIMPLE_TRIGGERS" (
                                                  "SCHED_NAME" VARCHAR2(160 CHAR) NOT NULL,
                                                  "TRIGGER_NAME" VARCHAR2(266 CHAR) NOT NULL,
                                                  "TRIGGER_GROUP" VARCHAR2(266 CHAR) NOT NULL,
                                                  "REPEAT_COUNT" NUMBER(38,0) NOT NULL,
                                                  "REPEAT_INTERVAL" NUMBER(38,0) NOT NULL,
                                                  "TIMES_TRIGGERED" NUMBER(38,0) NOT NULL
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "QRTZ_SIMPLE_TRIGGERS"."SCHED_NAME" IS '调度名称';
COMMENT ON COLUMN "QRTZ_SIMPLE_TRIGGERS"."TRIGGER_NAME" IS 'qrtz_triggers表trigger_name的外键';
COMMENT ON COLUMN "QRTZ_SIMPLE_TRIGGERS"."TRIGGER_GROUP" IS 'qrtz_triggers表trigger_group的外键';
COMMENT ON COLUMN "QRTZ_SIMPLE_TRIGGERS"."REPEAT_COUNT" IS '重复的次数统计';
COMMENT ON COLUMN "QRTZ_SIMPLE_TRIGGERS"."REPEAT_INTERVAL" IS '重复的间隔时间';
COMMENT ON COLUMN "QRTZ_SIMPLE_TRIGGERS"."TIMES_TRIGGERED" IS '已经触发的次数';
COMMENT ON TABLE "QRTZ_SIMPLE_TRIGGERS" IS '简单触发器的信息表';

-- ----------------------------
-- Records of QRTZ_SIMPLE_TRIGGERS
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table QRTZ_SIMPLE_TRIGGERS
-- ----------------------------
ALTER TABLE "QRTZ_SIMPLE_TRIGGERS" ADD CONSTRAINT "SYS_C0012551" PRIMARY KEY ("SCHED_NAME", "TRIGGER_NAME", "TRIGGER_GROUP");

-- ----------------------------
-- Checks structure for table QRTZ_SIMPLE_TRIGGERS
-- ----------------------------
ALTER TABLE "QRTZ_SIMPLE_TRIGGERS" ADD CONSTRAINT "SYS_C0012341" CHECK ("SCHED_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_SIMPLE_TRIGGERS" ADD CONSTRAINT "SYS_C0012342" CHECK ("TRIGGER_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_SIMPLE_TRIGGERS" ADD CONSTRAINT "SYS_C0012343" CHECK ("TRIGGER_GROUP" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_SIMPLE_TRIGGERS" ADD CONSTRAINT "SYS_C0012344" CHECK ("REPEAT_COUNT" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_SIMPLE_TRIGGERS" ADD CONSTRAINT "SYS_C0012345" CHECK ("REPEAT_INTERVAL" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_SIMPLE_TRIGGERS" ADD CONSTRAINT "SYS_C0012346" CHECK ("TIMES_TRIGGERED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for QRTZ_SIMPROP_TRIGGERS
-- ----------------------------
DROP TABLE "QRTZ_SIMPROP_TRIGGERS";
CREATE TABLE "QRTZ_SIMPROP_TRIGGERS" (
                                                   "SCHED_NAME" VARCHAR2(160 CHAR) NOT NULL,
                                                   "TRIGGER_NAME" VARCHAR2(266 CHAR) NOT NULL,
                                                   "TRIGGER_GROUP" VARCHAR2(266 CHAR) NOT NULL,
                                                   "STR_PROP_1" VARCHAR2(682 CHAR),
                                                   "STR_PROP_2" VARCHAR2(682 CHAR),
                                                   "STR_PROP_3" VARCHAR2(682 CHAR),
                                                   "INT_PROP_1" NUMBER(10,0),
                                                   "INT_PROP_2" NUMBER(10,0),
                                                   "LONG_PROP_1" NUMBER(38,0),
                                                   "LONG_PROP_2" NUMBER(38,0),
                                                   "DEC_PROP_1" NUMBER(38,2),
                                                   "DEC_PROP_2" NUMBER(38,2),
                                                   "BOOL_PROP_1" VARCHAR2(1 CHAR),
                                                   "BOOL_PROP_2" VARCHAR2(1 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "QRTZ_SIMPROP_TRIGGERS"."SCHED_NAME" IS '调度名称';
COMMENT ON COLUMN "QRTZ_SIMPROP_TRIGGERS"."TRIGGER_NAME" IS 'qrtz_triggers表trigger_name的外键';
COMMENT ON COLUMN "QRTZ_SIMPROP_TRIGGERS"."TRIGGER_GROUP" IS 'qrtz_triggers表trigger_group的外键';
COMMENT ON COLUMN "QRTZ_SIMPROP_TRIGGERS"."STR_PROP_1" IS 'String类型的trigger的第一个参数';
COMMENT ON COLUMN "QRTZ_SIMPROP_TRIGGERS"."STR_PROP_2" IS 'String类型的trigger的第二个参数';
COMMENT ON COLUMN "QRTZ_SIMPROP_TRIGGERS"."STR_PROP_3" IS 'String类型的trigger的第三个参数';
COMMENT ON COLUMN "QRTZ_SIMPROP_TRIGGERS"."INT_PROP_1" IS 'int类型的trigger的第一个参数';
COMMENT ON COLUMN "QRTZ_SIMPROP_TRIGGERS"."INT_PROP_2" IS 'int类型的trigger的第二个参数';
COMMENT ON COLUMN "QRTZ_SIMPROP_TRIGGERS"."LONG_PROP_1" IS 'long类型的trigger的第一个参数';
COMMENT ON COLUMN "QRTZ_SIMPROP_TRIGGERS"."LONG_PROP_2" IS 'long类型的trigger的第二个参数';
COMMENT ON COLUMN "QRTZ_SIMPROP_TRIGGERS"."DEC_PROP_1" IS 'decimal类型的trigger的第一个参数';
COMMENT ON COLUMN "QRTZ_SIMPROP_TRIGGERS"."DEC_PROP_2" IS 'decimal类型的trigger的第二个参数';
COMMENT ON COLUMN "QRTZ_SIMPROP_TRIGGERS"."BOOL_PROP_1" IS 'Boolean类型的trigger的第一个参数';
COMMENT ON COLUMN "QRTZ_SIMPROP_TRIGGERS"."BOOL_PROP_2" IS 'Boolean类型的trigger的第二个参数';
COMMENT ON TABLE "QRTZ_SIMPROP_TRIGGERS" IS '同步机制的行锁表';

-- ----------------------------
-- Records of QRTZ_SIMPROP_TRIGGERS
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table QRTZ_SIMPROP_TRIGGERS
-- ----------------------------
ALTER TABLE "QRTZ_SIMPROP_TRIGGERS" ADD CONSTRAINT "SYS_C0012552" PRIMARY KEY ("SCHED_NAME", "TRIGGER_NAME", "TRIGGER_GROUP");

-- ----------------------------
-- Checks structure for table QRTZ_SIMPROP_TRIGGERS
-- ----------------------------
ALTER TABLE "QRTZ_SIMPROP_TRIGGERS" ADD CONSTRAINT "SYS_C0012347" CHECK ("SCHED_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_SIMPROP_TRIGGERS" ADD CONSTRAINT "SYS_C0012348" CHECK ("TRIGGER_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_SIMPROP_TRIGGERS" ADD CONSTRAINT "SYS_C0012349" CHECK ("TRIGGER_GROUP" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for QRTZ_TRIGGERS
-- ----------------------------
DROP TABLE "QRTZ_TRIGGERS";
CREATE TABLE "QRTZ_TRIGGERS" (
                                           "SCHED_NAME" VARCHAR2(160 CHAR) NOT NULL,
                                           "TRIGGER_NAME" VARCHAR2(266 CHAR) NOT NULL,
                                           "TRIGGER_GROUP" VARCHAR2(266 CHAR) NOT NULL,
                                           "JOB_NAME" VARCHAR2(266 CHAR) NOT NULL,
                                           "JOB_GROUP" VARCHAR2(266 CHAR) NOT NULL,
                                           "DESCRIPTION" VARCHAR2(333 CHAR),
                                           "NEXT_FIRE_TIME" NUMBER(38,0),
                                           "PREV_FIRE_TIME" NUMBER(38,0),
                                           "PRIORITY" NUMBER(10,0),
                                           "TRIGGER_STATE" VARCHAR2(21 CHAR) NOT NULL,
                                           "TRIGGER_TYPE" VARCHAR2(10 CHAR) NOT NULL,
                                           "START_TIME" NUMBER(38,0) NOT NULL,
                                           "END_TIME" NUMBER(38,0),
                                           "CALENDAR_NAME" VARCHAR2(266 CHAR),
                                           "MISFIRE_INSTR" NUMBER(10,0),
                                           "JOB_DATA" BLOB
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "QRTZ_TRIGGERS"."SCHED_NAME" IS '调度名称';
COMMENT ON COLUMN "QRTZ_TRIGGERS"."TRIGGER_NAME" IS '触发器的名字';
COMMENT ON COLUMN "QRTZ_TRIGGERS"."TRIGGER_GROUP" IS '触发器所属组的名字';
COMMENT ON COLUMN "QRTZ_TRIGGERS"."JOB_NAME" IS 'qrtz_job_details表job_name的外键';
COMMENT ON COLUMN "QRTZ_TRIGGERS"."JOB_GROUP" IS 'qrtz_job_details表job_group的外键';
COMMENT ON COLUMN "QRTZ_TRIGGERS"."DESCRIPTION" IS '相关介绍';
COMMENT ON COLUMN "QRTZ_TRIGGERS"."NEXT_FIRE_TIME" IS '上一次触发时间（毫秒）';
COMMENT ON COLUMN "QRTZ_TRIGGERS"."PREV_FIRE_TIME" IS '下一次触发时间（默认为-1表示不触发）';
COMMENT ON COLUMN "QRTZ_TRIGGERS"."PRIORITY" IS '优先级';
COMMENT ON COLUMN "QRTZ_TRIGGERS"."TRIGGER_STATE" IS '触发器状态';
COMMENT ON COLUMN "QRTZ_TRIGGERS"."TRIGGER_TYPE" IS '触发器的类型';
COMMENT ON COLUMN "QRTZ_TRIGGERS"."START_TIME" IS '开始时间';
COMMENT ON COLUMN "QRTZ_TRIGGERS"."END_TIME" IS '结束时间';
COMMENT ON COLUMN "QRTZ_TRIGGERS"."CALENDAR_NAME" IS '日程表名称';
COMMENT ON COLUMN "QRTZ_TRIGGERS"."MISFIRE_INSTR" IS '补偿执行的策略';
COMMENT ON COLUMN "QRTZ_TRIGGERS"."JOB_DATA" IS '存放持久化job对象';
COMMENT ON TABLE "QRTZ_TRIGGERS" IS '触发器详细信息表';

-- ----------------------------
-- Records of QRTZ_TRIGGERS
-- ----------------------------
INSERT INTO "QRTZ_TRIGGERS" VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME1', 'DEFAULT', 'TASK_CLASS_NAME1', 'DEFAULT', NULL, '1680023970000', '1680023960000', '5', 'WAITING', 'CRON', '1680023946000', '0', NULL, '2', EMPTY_BLOB());
INSERT INTO "QRTZ_TRIGGERS" VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME2', 'DEFAULT', 'TASK_CLASS_NAME2', 'DEFAULT', NULL, '1680023955000', '-1', '5', 'PAUSED', 'CRON', '1680023947000', '0', NULL, '2', EMPTY_BLOB());
INSERT INTO "QRTZ_TRIGGERS" VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME3', 'DEFAULT', 'TASK_CLASS_NAME3', 'DEFAULT', NULL, '1680023960000', '-1', '5', 'PAUSED', 'CRON', '1680023948000', '0', NULL, '2', EMPTY_BLOB());
INSERT INTO "QRTZ_TRIGGERS" VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME4', 'SYSTEM', 'TASK_CLASS_NAME4', 'SYSTEM', NULL, '1680024000000', '-1', '5', 'WAITING', 'CRON', '1680023950000', '0', NULL, '-1', EMPTY_BLOB());
INSERT INTO "QRTZ_TRIGGERS" VALUES ('RuoyiScheduler', 'TASK_CLASS_NAME5', 'SYSTEM', 'TASK_CLASS_NAME5', 'SYSTEM', NULL, '1680024000000', '-1', '5', 'WAITING', 'CRON', '1680023951000', '0', NULL, '-1', EMPTY_BLOB());

-- ----------------------------
-- Primary Key structure for table QRTZ_TRIGGERS
-- ----------------------------
ALTER TABLE "QRTZ_TRIGGERS" ADD CONSTRAINT "SYS_C0012553" PRIMARY KEY ("SCHED_NAME", "TRIGGER_NAME", "TRIGGER_GROUP");

-- ----------------------------
-- Checks structure for table QRTZ_TRIGGERS
-- ----------------------------
ALTER TABLE "QRTZ_TRIGGERS" ADD CONSTRAINT "SYS_C0012350" CHECK ("SCHED_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_TRIGGERS" ADD CONSTRAINT "SYS_C0012351" CHECK ("TRIGGER_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_TRIGGERS" ADD CONSTRAINT "SYS_C0012352" CHECK ("TRIGGER_GROUP" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_TRIGGERS" ADD CONSTRAINT "SYS_C0012353" CHECK ("JOB_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_TRIGGERS" ADD CONSTRAINT "SYS_C0012354" CHECK ("JOB_GROUP" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_TRIGGERS" ADD CONSTRAINT "SYS_C0012355" CHECK ("TRIGGER_STATE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_TRIGGERS" ADD CONSTRAINT "SYS_C0012356" CHECK ("TRIGGER_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "QRTZ_TRIGGERS" ADD CONSTRAINT "SYS_C0012357" CHECK ("START_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for SCENE_MODEL
-- ----------------------------
DROP TABLE "SCENE_MODEL";
CREATE TABLE "SCENE_MODEL" (
                                         "SCENE_MODEL_ID" NUMBER(38,0) NOT NULL,
                                         "TENANT_ID" NUMBER(38,0) NOT NULL,
                                         "SCENE_MODEL_NAME" VARCHAR2(255 CHAR) NOT NULL,
                                         "STATUS" NUMBER(10,0) NOT NULL DEFAULT 1,
                                         "GUID" VARCHAR2(64 CHAR),
                                         "SCENE_DESC" VARCHAR2(255 CHAR),
                                         "DEL_FLAG" CHAR(1 CHAR) DEFAULT '0',
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
  "REMARK" VARCHAR2(500 CHAR),
  "IMG_URL" VARCHAR2(255 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SCENE_MODEL"."SCENE_MODEL_ID" IS '场景管理id';
COMMENT ON COLUMN "SCENE_MODEL"."TENANT_ID" IS '所属租户id';
COMMENT ON COLUMN "SCENE_MODEL"."SCENE_MODEL_NAME" IS '场景管理名称';
COMMENT ON COLUMN "SCENE_MODEL"."STATUS" IS '场景状态 0-停用 1-启用';
COMMENT ON COLUMN "SCENE_MODEL"."GUID" IS '关联的组态id';
COMMENT ON COLUMN "SCENE_MODEL"."SCENE_DESC" IS '场景描述';
COMMENT ON COLUMN "SCENE_MODEL"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "SCENE_MODEL"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "SCENE_MODEL"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "SCENE_MODEL"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "SCENE_MODEL"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "SCENE_MODEL"."REMARK" IS '备注';
COMMENT ON COLUMN "SCENE_MODEL"."IMG_URL" IS '图片地址';
COMMENT ON TABLE "SCENE_MODEL" IS '场景管理';

-- ----------------------------
-- Records of SCENE_MODEL
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table SCENE_MODEL
-- ----------------------------
ALTER TABLE "SCENE_MODEL" ADD CONSTRAINT "SYS_C0012554" PRIMARY KEY ("SCENE_MODEL_ID");

-- ----------------------------
-- Checks structure for table SCENE_MODEL
-- ----------------------------
ALTER TABLE "SCENE_MODEL" ADD CONSTRAINT "SYS_C0012358" CHECK ("SCENE_MODEL_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SCENE_MODEL" ADD CONSTRAINT "SYS_C0012359" CHECK ("TENANT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SCENE_MODEL" ADD CONSTRAINT "SYS_C0012360" CHECK ("SCENE_MODEL_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SCENE_MODEL" ADD CONSTRAINT "SYS_C0012361" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SCENE_MODEL
-- ----------------------------
CREATE TRIGGER "SCENE_MODEL_SCENE_MODEL_I_TRIG" BEFORE INSERT OR UPDATE ON "SCENE_MODEL" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.scene_model_id IS NULL THEN
SELECT  scene_model_scene_model_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(scene_model_id),0) INTO v_newVal FROM scene_model;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT scene_model_scene_model_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.scene_model_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SCENE_MODEL_DATA
-- ----------------------------
DROP TABLE "SCENE_MODEL_DATA";
CREATE TABLE "SCENE_MODEL_DATA" (
                                              "ID" NUMBER(38,0) NOT NULL,
                                              "SCENE_MODEL_ID" NUMBER(38,0),
                                              "SCENE_MODEL_DEVICE_ID" NUMBER(38,0),
                                              "VARIABLE_TYPE" NUMBER(38,0),
                                              "DATASOURCE_ID" NUMBER(38,0),
                                              "ENABLE" NUMBER(10,0) NOT NULL DEFAULT 1,
                                              "DEL_FLAG" CHAR(1 CHAR) NOT NULL DEFAULT '0',
  "SOURCE_NAME" VARCHAR2(50 CHAR),
  "IDENTIFIER" VARCHAR2(32 CHAR),
  "TYPE" NUMBER(10,0)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SCENE_MODEL_DATA"."ID" IS '主键id';
COMMENT ON COLUMN "SCENE_MODEL_DATA"."SCENE_MODEL_ID" IS '场景管理id';
COMMENT ON COLUMN "SCENE_MODEL_DATA"."SCENE_MODEL_DEVICE_ID" IS '场景关联数据来源id';
COMMENT ON COLUMN "SCENE_MODEL_DATA"."VARIABLE_TYPE" IS '来源类型(0设备 1录入型 2运算型)';
COMMENT ON COLUMN "SCENE_MODEL_DATA"."DATASOURCE_ID" IS '物模型或变量id';
COMMENT ON COLUMN "SCENE_MODEL_DATA"."ENABLE" IS '启用（0未启用 1启用）';
COMMENT ON COLUMN "SCENE_MODEL_DATA"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "SCENE_MODEL_DATA"."SOURCE_NAME" IS '物模型或变量名称';
COMMENT ON COLUMN "SCENE_MODEL_DATA"."IDENTIFIER" IS '标识符';
COMMENT ON COLUMN "SCENE_MODEL_DATA"."TYPE" IS '模型类别（1-属性，2-功能，3-事件）';

-- ----------------------------
-- Records of SCENE_MODEL_DATA
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table SCENE_MODEL_DATA
-- ----------------------------
ALTER TABLE "SCENE_MODEL_DATA" ADD CONSTRAINT "SYS_C0012555" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table SCENE_MODEL_DATA
-- ----------------------------
ALTER TABLE "SCENE_MODEL_DATA" ADD CONSTRAINT "SYS_C0012362" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SCENE_MODEL_DATA" ADD CONSTRAINT "SYS_C0012363" CHECK ("ENABLE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SCENE_MODEL_DATA" ADD CONSTRAINT "SYS_C0012364" CHECK ("DEL_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SCENE_MODEL_DATA
-- ----------------------------
CREATE TRIGGER "SCENE_MODEL_DATA_ID_TRIG" BEFORE INSERT OR UPDATE ON "SCENE_MODEL_DATA" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  scene_model_data_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM scene_model_data;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT scene_model_data_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SCENE_MODEL_DEVICE
-- ----------------------------
DROP TABLE "SCENE_MODEL_DEVICE";
CREATE TABLE "SCENE_MODEL_DEVICE" (
                                                "ID" NUMBER(38,0) NOT NULL,
                                                "SCENE_MODEL_ID" NUMBER(38,0) NOT NULL,
                                                "CUS_DEVICE_ID" NUMBER(38,0),
                                                "SORT" NUMBER(10,0),
                                                "DEL_FLAG" CHAR(1 CHAR) DEFAULT '0',
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR),
  "VARIABLE_TYPE" NUMBER(10,0) NOT NULL,
  "ALL_ENABLE" NUMBER(10,0),
  "NAME" VARCHAR2(50 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SCENE_MODEL_DEVICE"."ID" IS '主键id';
COMMENT ON COLUMN "SCENE_MODEL_DEVICE"."SCENE_MODEL_ID" IS '场景id';
COMMENT ON COLUMN "SCENE_MODEL_DEVICE"."CUS_DEVICE_ID" IS '关联设备id';
COMMENT ON COLUMN "SCENE_MODEL_DEVICE"."SORT" IS '排序';
COMMENT ON COLUMN "SCENE_MODEL_DEVICE"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "SCENE_MODEL_DEVICE"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "SCENE_MODEL_DEVICE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "SCENE_MODEL_DEVICE"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "SCENE_MODEL_DEVICE"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "SCENE_MODEL_DEVICE"."REMARK" IS '备注';
COMMENT ON COLUMN "SCENE_MODEL_DEVICE"."VARIABLE_TYPE" IS '类型（0设备 1录入型 2运算型）';
COMMENT ON COLUMN "SCENE_MODEL_DEVICE"."ALL_ENABLE" IS '全部启用（0否 1是）';
COMMENT ON COLUMN "SCENE_MODEL_DEVICE"."NAME" IS '名称';

-- ----------------------------
-- Records of SCENE_MODEL_DEVICE
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table SCENE_MODEL_DEVICE
-- ----------------------------
ALTER TABLE "SCENE_MODEL_DEVICE" ADD CONSTRAINT "SYS_C0012556" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table SCENE_MODEL_DEVICE
-- ----------------------------
ALTER TABLE "SCENE_MODEL_DEVICE" ADD CONSTRAINT "SYS_C0012365" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SCENE_MODEL_DEVICE" ADD CONSTRAINT "SYS_C0012366" CHECK ("SCENE_MODEL_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SCENE_MODEL_DEVICE" ADD CONSTRAINT "SYS_C0012367" CHECK ("VARIABLE_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SCENE_MODEL_DEVICE
-- ----------------------------
CREATE TRIGGER "SCENE_MODEL_DEVICE_ID_TRIG" BEFORE INSERT OR UPDATE ON "SCENE_MODEL_DEVICE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  scene_model_device_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM scene_model_device;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT scene_model_device_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SCENE_MODEL_TAG
-- ----------------------------
DROP TABLE "SCENE_MODEL_TAG";
CREATE TABLE "SCENE_MODEL_TAG" (
                                             "ID" NUMBER(38,0) NOT NULL,
                                             "SCENE_MODEL_ID" NUMBER(38,0) NOT NULL,
                                             "NAME" VARCHAR2(64 CHAR) NOT NULL,
                                             "UNIT" VARCHAR2(20 CHAR),
                                             "DATA_TYPE" VARCHAR2(20 CHAR),
                                             "DEFAULT_VALUE" VARCHAR2(255 CHAR),
                                             "IS_READONLY" NUMBER(10,0) NOT NULL DEFAULT 0,
                                             "STORAGE" NUMBER(10,0) NOT NULL DEFAULT 1,
                                             "VARIABLE_TYPE" NUMBER(10,0),
                                             "DEL_FLAG" CHAR(1 CHAR) DEFAULT '0',
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR),
  "CYCLE_EXECUTED" NUMBER(10,0) DEFAULT 0,
  "FORMULE" VARCHAR2(64 CHAR),
  "ALIAS_FORMULE" VARCHAR2(64 CHAR),
  "CYCLE_TYPE" NUMBER(10,0),
  "CYCLE" CLOB
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SCENE_MODEL_TAG"."ID" IS '主键id';
COMMENT ON COLUMN "SCENE_MODEL_TAG"."SCENE_MODEL_ID" IS '场景id';
COMMENT ON COLUMN "SCENE_MODEL_TAG"."NAME" IS '录入型变量名';
COMMENT ON COLUMN "SCENE_MODEL_TAG"."UNIT" IS '单位';
COMMENT ON COLUMN "SCENE_MODEL_TAG"."DATA_TYPE" IS '数据类型';
COMMENT ON COLUMN "SCENE_MODEL_TAG"."DEFAULT_VALUE" IS '默认值';
COMMENT ON COLUMN "SCENE_MODEL_TAG"."IS_READONLY" IS '是否只读 0-否 1-是，默认0';
COMMENT ON COLUMN "SCENE_MODEL_TAG"."STORAGE" IS '存储方式 0-不存储 1-存储';
COMMENT ON COLUMN "SCENE_MODEL_TAG"."VARIABLE_TYPE" IS '变量类型 2-录入型变量 3-运算型变量';
COMMENT ON COLUMN "SCENE_MODEL_TAG"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "SCENE_MODEL_TAG"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "SCENE_MODEL_TAG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "SCENE_MODEL_TAG"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "SCENE_MODEL_TAG"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "SCENE_MODEL_TAG"."REMARK" IS '备注';
COMMENT ON COLUMN "SCENE_MODEL_TAG"."CYCLE_EXECUTED" IS '周期执行（0未执行 1执行）';
COMMENT ON COLUMN "SCENE_MODEL_TAG"."FORMULE" IS '计算公式 ${id} + ${id}';
COMMENT ON COLUMN "SCENE_MODEL_TAG"."ALIAS_FORMULE" IS '显示的计算公式  A+B';
COMMENT ON COLUMN "SCENE_MODEL_TAG"."CYCLE_TYPE" IS '时间周期方式 1-周期计算 2-自定义时间段';
COMMENT ON COLUMN "SCENE_MODEL_TAG"."CYCLE" IS '时间周期内容';
COMMENT ON TABLE "SCENE_MODEL_TAG" IS '场景录入型变量';

-- ----------------------------
-- Records of SCENE_MODEL_TAG
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table SCENE_MODEL_TAG
-- ----------------------------
ALTER TABLE "SCENE_MODEL_TAG" ADD CONSTRAINT "SYS_C0012557" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table SCENE_MODEL_TAG
-- ----------------------------
ALTER TABLE "SCENE_MODEL_TAG" ADD CONSTRAINT "SYS_C0012368" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SCENE_MODEL_TAG" ADD CONSTRAINT "SYS_C0012369" CHECK ("SCENE_MODEL_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SCENE_MODEL_TAG" ADD CONSTRAINT "SYS_C0012370" CHECK ("NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SCENE_MODEL_TAG" ADD CONSTRAINT "SYS_C0012371" CHECK ("IS_READONLY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SCENE_MODEL_TAG" ADD CONSTRAINT "SYS_C0012372" CHECK ("STORAGE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SCENE_MODEL_TAG
-- ----------------------------
CREATE TRIGGER "SCENE_MODEL_TAG_ID_TRIG" BEFORE INSERT OR UPDATE ON "SCENE_MODEL_TAG" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  scene_model_tag_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM scene_model_tag;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT scene_model_tag_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SCENE_TAG_POINTS
-- ----------------------------
DROP TABLE "SCENE_TAG_POINTS";
CREATE TABLE "SCENE_TAG_POINTS" (
                                              "ID" NUMBER(38,0) NOT NULL,
                                              "NAME" VARCHAR2(64 CHAR) NOT NULL,
                                              "ALIAS" VARCHAR2(64 CHAR) NOT NULL,
                                              "TAG_ID" NUMBER(38,0) NOT NULL,
                                              "OPERATION" NUMBER(10,0) NOT NULL,
                                              "VARIABLE_TYPE" NUMBER(10,0),
                                              "SCENE_MODEL_DATA_ID" NUMBER(38,0),
                                              "DEL_FLAG" CHAR(1 CHAR) DEFAULT '0',
  "CREATE_BY" VARCHAR2(64 CHAR),
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(64 CHAR),
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SCENE_TAG_POINTS"."ID" IS '运算型变量点id';
COMMENT ON COLUMN "SCENE_TAG_POINTS"."NAME" IS '变量点名称';
COMMENT ON COLUMN "SCENE_TAG_POINTS"."ALIAS" IS '点别名，如 A';
COMMENT ON COLUMN "SCENE_TAG_POINTS"."TAG_ID" IS '关联的变量id';
COMMENT ON COLUMN "SCENE_TAG_POINTS"."OPERATION" IS '统计方式 ，用字典定义，暂时是”原值“';
COMMENT ON COLUMN "SCENE_TAG_POINTS"."VARIABLE_TYPE" IS '数据来源方式 1-设备物模型 2-录入型变量 3-运算型变量';
COMMENT ON COLUMN "SCENE_TAG_POINTS"."SCENE_MODEL_DATA_ID" IS '数据源id,对应scene_model_data表id';
COMMENT ON COLUMN "SCENE_TAG_POINTS"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "SCENE_TAG_POINTS"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "SCENE_TAG_POINTS"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "SCENE_TAG_POINTS"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "SCENE_TAG_POINTS"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "SCENE_TAG_POINTS"."REMARK" IS '备注';
COMMENT ON TABLE "SCENE_TAG_POINTS" IS '运算型变量点表';

-- ----------------------------
-- Records of SCENE_TAG_POINTS
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table SCENE_TAG_POINTS
-- ----------------------------
ALTER TABLE "SCENE_TAG_POINTS" ADD CONSTRAINT "SYS_C0012558" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table SCENE_TAG_POINTS
-- ----------------------------
ALTER TABLE "SCENE_TAG_POINTS" ADD CONSTRAINT "SYS_C0012373" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SCENE_TAG_POINTS" ADD CONSTRAINT "SYS_C0012374" CHECK ("NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SCENE_TAG_POINTS" ADD CONSTRAINT "SYS_C0012375" CHECK ("ALIAS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SCENE_TAG_POINTS" ADD CONSTRAINT "SYS_C0012376" CHECK ("TAG_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SCENE_TAG_POINTS" ADD CONSTRAINT "SYS_C0012377" CHECK ("OPERATION" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SCENE_TAG_POINTS
-- ----------------------------
CREATE TRIGGER "SCENE_TAG_POINTS_ID_TRIG" BEFORE INSERT OR UPDATE ON "SCENE_TAG_POINTS" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  scene_tag_points_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM scene_tag_points;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT scene_tag_points_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SIP_CONFIG
-- ----------------------------
DROP TABLE "SIP_CONFIG";
CREATE TABLE "SIP_CONFIG" (
                                        "ID" NUMBER(38,0) NOT NULL,
                                        "PRODUCT_ID" NUMBER(38,0) NOT NULL,
                                        "PRODUCT_NAME" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
                                        "ENABLED" NUMBER(10,0),
                                        "ISDEFAULT" NUMBER(10,0),
                                        "SENIOR_SDP" NUMBER(10,0),
                                        "DOMAIN_ALIAS" VARCHAR2(10 CHAR) NOT NULL DEFAULT '',
                                        "SERVER_SIPID" VARCHAR2(20 CHAR) NOT NULL DEFAULT '',
                                        "PASSWORD" VARCHAR2(20 CHAR) NOT NULL DEFAULT '',
                                        "IP" VARCHAR2(42 CHAR),
                                        "PORT" NUMBER(38,0),
                                        "DEL_FLAG" CHAR(1 CHAR) NOT NULL DEFAULT '0',
  "CREATE_BY" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6) NOT NULL,
  "UPDATE_BY" VARCHAR2(64 CHAR) DEFAULT '',
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SIP_CONFIG"."ID" IS '主键';
COMMENT ON COLUMN "SIP_CONFIG"."PRODUCT_ID" IS '产品ID';
COMMENT ON COLUMN "SIP_CONFIG"."PRODUCT_NAME" IS '产品名称';
COMMENT ON COLUMN "SIP_CONFIG"."ENABLED" IS '使能开关';
COMMENT ON COLUMN "SIP_CONFIG"."ISDEFAULT" IS '系统默认配置';
COMMENT ON COLUMN "SIP_CONFIG"."SENIOR_SDP" IS '拓展sdp';
COMMENT ON COLUMN "SIP_CONFIG"."DOMAIN_ALIAS" IS '服务器域';
COMMENT ON COLUMN "SIP_CONFIG"."SERVER_SIPID" IS '服务器sipid';
COMMENT ON COLUMN "SIP_CONFIG"."PASSWORD" IS 'sip认证密码';
COMMENT ON COLUMN "SIP_CONFIG"."IP" IS 'sip接入IP';
COMMENT ON COLUMN "SIP_CONFIG"."PORT" IS 'sip接入端口号';
COMMENT ON COLUMN "SIP_CONFIG"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "SIP_CONFIG"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "SIP_CONFIG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "SIP_CONFIG"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "SIP_CONFIG"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "SIP_CONFIG"."REMARK" IS '备注';
COMMENT ON TABLE "SIP_CONFIG" IS 'sip系统配置';

-- ----------------------------
-- Records of SIP_CONFIG
-- ----------------------------
INSERT INTO "SIP_CONFIG" VALUES ('38', '117', ' ', '1', '1', NULL, '3402000000', '34020000002000000001', '12345678', '177.7.0.13', '5061', '0', ' ', TO_TIMESTAMP('2023-03-16 21:26:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2023-03-16 21:26:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SIP_CONFIG" VALUES ('39', '118', ' ', '1', '1', NULL, '3402000000', '34020000002000000001', '12345678', '177.7.0.13', '5061', '0', ' ', TO_TIMESTAMP('2023-04-11 21:11:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SIP_CONFIG" VALUES ('41', '135', ' ', '1', '1', NULL, '3402000000', '34020000002000000001', '12345678', '177.7.0.13', '5061', '0', ' ', TO_TIMESTAMP('2024-01-08 22:14:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);

-- ----------------------------
-- Primary Key structure for table SIP_CONFIG
-- ----------------------------
ALTER TABLE "SIP_CONFIG" ADD CONSTRAINT "SYS_C0012559" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table SIP_CONFIG
-- ----------------------------
ALTER TABLE "SIP_CONFIG" ADD CONSTRAINT "SYS_C0012378" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_CONFIG" ADD CONSTRAINT "SYS_C0012379" CHECK ("PRODUCT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_CONFIG" ADD CONSTRAINT "SYS_C0012380" CHECK ("PRODUCT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_CONFIG" ADD CONSTRAINT "SYS_C0012381" CHECK ("DOMAIN_ALIAS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_CONFIG" ADD CONSTRAINT "SYS_C0012382" CHECK ("SERVER_SIPID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_CONFIG" ADD CONSTRAINT "SYS_C0012383" CHECK ("PASSWORD" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_CONFIG" ADD CONSTRAINT "SYS_C0012384" CHECK ("DEL_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_CONFIG" ADD CONSTRAINT "SYS_C0012385" CHECK ("CREATE_BY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_CONFIG" ADD CONSTRAINT "SYS_C0012386" CHECK ("CREATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SIP_CONFIG
-- ----------------------------
CREATE TRIGGER "SIP_CONFIG_ID_TRIG" BEFORE INSERT OR UPDATE ON "SIP_CONFIG" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  sip_config_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM sip_config;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT sip_config_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SIP_DEVICE
-- ----------------------------
DROP TABLE "SIP_DEVICE";
CREATE TABLE "SIP_DEVICE" (
    "DEVICE_ID" NUMBER(38,0) NOT NULL,
    "PRODUCT_ID" NUMBER(38,0) NOT NULL DEFAULT 0,
    "PRODUCT_NAME" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "DEVICE_SIP_ID" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "DEVICE_NAME" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "MANUFACTURER" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "MODEL" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "FIRMWARE" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "TRANSPORT" VARCHAR2(64 CHAR) NOT NULL DEFAULT 'UDP',
    "STREAM_MODE" VARCHAR2(64 CHAR) NOT NULL DEFAULT 'UDP',
    "ONLINE" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "REGISTER_TIME" TIMESTAMP(6) NOT NULL,
    "LAST_CONNECT_TIME" TIMESTAMP(6),
    "ACTIVE_TIME" TIMESTAMP(6),
    "IP" VARCHAR2(42 CHAR),
    "PORT" NUMBER(38,0),
    "HOST_ADDRESS" VARCHAR2(42 CHAR),
    "DEL_FLAG" CHAR(1 CHAR) DEFAULT '0',
    "CREATE_BY" VARCHAR2(64 CHAR) DEFAULT '',
    "CREATE_TIME" TIMESTAMP(6),
    "UPDATE_BY" VARCHAR2(64 CHAR) DEFAULT '',
    "UPDATE_TIME" TIMESTAMP(6),
    "REMARK" VARCHAR2(500 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SIP_DEVICE"."DEVICE_ID" IS '设备ID';
COMMENT ON COLUMN "SIP_DEVICE"."PRODUCT_ID" IS '产品ID';
COMMENT ON COLUMN "SIP_DEVICE"."PRODUCT_NAME" IS '产品名称';
COMMENT ON COLUMN "SIP_DEVICE"."DEVICE_SIP_ID" IS '设备SipID';
COMMENT ON COLUMN "SIP_DEVICE"."DEVICE_NAME" IS '设备名称';
COMMENT ON COLUMN "SIP_DEVICE"."MANUFACTURER" IS '厂商名称';
COMMENT ON COLUMN "SIP_DEVICE"."MODEL" IS '产品型号';
COMMENT ON COLUMN "SIP_DEVICE"."FIRMWARE" IS '固件版本';
COMMENT ON COLUMN "SIP_DEVICE"."TRANSPORT" IS '传输模式';
COMMENT ON COLUMN "SIP_DEVICE"."STREAM_MODE" IS '流模式';
COMMENT ON COLUMN "SIP_DEVICE"."ONLINE_" IS '在线状态';
COMMENT ON COLUMN "SIP_DEVICE"."REGISTER_TIME" IS '注册时间';
COMMENT ON COLUMN "SIP_DEVICE"."LAST_CONNECT_TIME" IS '最后上线时间';
COMMENT ON COLUMN "SIP_DEVICE"."ACTIVE_TIME" IS '激活时间';
COMMENT ON COLUMN "SIP_DEVICE"."IP" IS '设备入网IP';
COMMENT ON COLUMN "SIP_DEVICE"."PORT" IS '设备接入端口号';
COMMENT ON COLUMN "SIP_DEVICE"."HOST_ADDRESS" IS '设备地址';
COMMENT ON COLUMN "SIP_DEVICE"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "SIP_DEVICE"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "SIP_DEVICE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "SIP_DEVICE"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "SIP_DEVICE"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "SIP_DEVICE"."REMARK" IS '备注';
COMMENT ON TABLE "SIP_DEVICE" IS '监控设备';

-- ----------------------------
-- Records of SIP_DEVICE
-- ----------------------------
INSERT INTO "SIP_DEVICE" VALUES ('9', '0', ' ', '13030300001170000008', '8E085C3RAJE156F', 'Dahua', 'DH-3H3205-ADW', '2.810.0000027.0.R,2022-08-26', 'UDP', 'UDP', ' ', TO_TIMESTAMP('2023-02-27 12:07:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-02-26 23:36:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, '177.7.0.1', '35332', '177.7.0.1:35332', '0', ' ', NULL, ' ', NULL, NULL);
INSERT INTO "SIP_DEVICE" VALUES ('12', '0', ' ', '11010100001320000001', '海康威视摄像头', 'Hikvision', 'iDS-2DE2402IX-D3/W/XM', 'V5.7.4', 'UDP', 'UDP', ' ', TO_TIMESTAMP('2024-01-09 23:29:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2024-01-09 23:35:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, '192.168.2.119', '5065', '192.168.2.119:5065', '0', ' ', NULL, ' ', NULL, NULL);
INSERT INTO "SIP_DEVICE" VALUES ('13', '0', ' ', '11010200001320000017', ' ', ' ', ' ', ' ', 'UDP', 'UDP', ' ', TO_TIMESTAMP('2023-03-16 21:41:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-03-16 21:52:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, '192.168.2.119', '5060', '192.168.2.119:5060', '0', ' ', NULL, ' ', NULL, NULL);
INSERT INTO "SIP_DEVICE" VALUES ('16', '0', ' ', '12010100001320000003', 'IP DOME', 'Hikvision', 'iDS-2DE2402IX-D3/W/XM', 'V5.7.4', 'UDP', 'UDP', ' ', TO_TIMESTAMP('2023-04-11 21:08:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-04-11 21:13:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, '192.168.2.119', '5060', '192.168.2.119:5060', '0', ' ', NULL, ' ', NULL, NULL);
INSERT INTO "SIP_DEVICE" VALUES ('18', '0', ' ', '13030100001320000001', ' ', 'ABCD', 'TEST001', 'V1.0', 'UDP', 'UDP', ' ', TO_TIMESTAMP('2023-03-28 16:06:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2023-03-28 16:09:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, '192.168.205.250', '5063', '192.168.205.250:5063', '0', ' ', NULL, ' ', NULL, NULL);
INSERT INTO "SIP_DEVICE" VALUES ('19', '0', ' ', '11010200001320000001', '海康威视摄像头', 'Hikvision', 'iDS-2DE2402IX-D3/W/XM', 'V5.7.4', 'UDP', 'UDP', ' ', TO_TIMESTAMP('2024-01-08 22:08:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2024-01-08 22:16:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, '192.168.2.119', '5065', '192.168.2.119:5065', '0', ' ', NULL, ' ', NULL, NULL);

-- ----------------------------
-- Primary Key structure for table SIP_DEVICE
-- ----------------------------
ALTER TABLE "SIP_DEVICE" ADD CONSTRAINT "SYS_C0012560" PRIMARY KEY ("DEVICE_ID");

-- ----------------------------
-- Checks structure for table SIP_DEVICE
-- ----------------------------
ALTER TABLE "SIP_DEVICE" ADD CONSTRAINT "SYS_C0012387" CHECK ("DEVICE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE" ADD CONSTRAINT "SYS_C0012388" CHECK ("PRODUCT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE" ADD CONSTRAINT "SYS_C0012389" CHECK ("PRODUCT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE" ADD CONSTRAINT "SYS_C0012390" CHECK ("DEVICE_SIP_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE" ADD CONSTRAINT "SYS_C0012391" CHECK ("DEVICE_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE" ADD CONSTRAINT "SYS_C0012392" CHECK ("MANUFACTURER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE" ADD CONSTRAINT "SYS_C0012393" CHECK ("MODEL" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE" ADD CONSTRAINT "SYS_C0012394" CHECK ("FIRMWARE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE" ADD CONSTRAINT "SYS_C0012395" CHECK ("TRANSPORT" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE" ADD CONSTRAINT "SYS_C0012396" CHECK ("STREAM_MODE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE" ADD CONSTRAINT "SYS_C0012397" CHECK ("ONLINE_" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE" ADD CONSTRAINT "SYS_C0012398" CHECK ("REGISTER_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SIP_DEVICE
-- ----------------------------
CREATE TRIGGER "SIP_DEVICE_DEVICE_ID_TRIG" BEFORE INSERT OR UPDATE ON "SIP_DEVICE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.device_id IS NULL THEN
SELECT  sip_device_device_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(device_id),0) INTO v_newVal FROM sip_device;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT sip_device_device_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.device_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SIP_DEVICE_CHANNEL
-- ----------------------------
DROP TABLE "SIP_DEVICE_CHANNEL";
CREATE TABLE "SIP_DEVICE_CHANNEL" (
    "ID" NUMBER(38,0) NOT NULL,
    "TENANT_ID" NUMBER(38,0) DEFAULT 1,
    "TENANT_NAME" VARCHAR2(30 CHAR) NOT NULL DEFAULT '',
    "PRODUCT_ID" NUMBER(38,0) NOT NULL DEFAULT 0,
    "PRODUCT_NAME" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "USER_ID" NUMBER(38,0) NOT NULL DEFAULT 0,
    "DEVICE_SIP_ID" VARCHAR2(64 CHAR) NOT NULL,
    "CHANNEL_SIP_ID" VARCHAR2(64 CHAR) NOT NULL,
    "CHANNEL_NAME" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "REGISTER_TIME" TIMESTAMP(6),
    "DEVICE_TYPE" VARCHAR2(64 CHAR) DEFAULT '',
    "CHANNEL_TYPE" VARCHAR2(64 CHAR) DEFAULT '',
    "CITY_CODE" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "CIVIL_CODE" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "MANUFACTURE" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "MODEL" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "OWNER" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "BLOCK" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "ADDRESS" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "PARENT_ID" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "IP_ADDRESS" VARCHAR2(42 CHAR) DEFAULT '',
    "PORT" NUMBER(38,0) DEFAULT 0,
    "PASSWORD" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "PTZ_TYPE" NUMBER(38,0) NOT NULL DEFAULT 0,
    "PTZ_TYPE_TEXT" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "STATUS" NUMBER(10,0) NOT NULL DEFAULT 1,
    "LONGITUDE" NUMBER,
    "LATITUDE" NUMBER,
    "STREAM_ID" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "SUB_COUNT" NUMBER(38,0) NOT NULL DEFAULT 0,
    "PARENTAL" NUMBER(10,0) NOT NULL DEFAULT 1,
    "HAS_AUDIO" NUMBER(10,0) NOT NULL DEFAULT 1,
    "DEL_FLAG" CHAR(1 CHAR) NOT NULL DEFAULT '0',
    "CREATE_BY" VARCHAR2(64 CHAR) NOT NULL DEFAULT '',
    "CREATE_TIME" TIMESTAMP(6) NOT NULL,
    "UPDATE_BY" VARCHAR2(64 CHAR) DEFAULT '',
    "UPDATE_TIME" TIMESTAMP(6),
    "REMARK" VARCHAR2(500 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."ID" IS '主键';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."TENANT_NAME" IS '租户名称';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."PRODUCT_ID" IS '产品ID';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."PRODUCT_NAME" IS '产品名称';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."USER_ID" IS '用户ID';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."DEVICE_SIP_ID" IS '设备SipID';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."CHANNEL_SIP_ID" IS '通道sipID';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."CHANNEL_NAME" IS '通道名称';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."REGISTER_TIME" IS '注册时间';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."DEVICE_TYPE" IS '设备类型';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."CHANNEL_TYPE" IS '通道类型';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."CITY_CODE" IS '城市编码';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."CIVIL_CODE" IS '行政区域';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."MANUFACTURE" IS '厂商名称';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."MODEL" IS '产品型号';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."OWNER" IS '设备归属';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."BLOCK" IS '警区';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."ADDRESS" IS '安装地址';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."PARENT_ID" IS '父级id';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."IPADDRESS" IS '设备入网IP';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."PORT" IS '设备接入端口号';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."PASSWORD" IS '密码';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."PTZ_TYPE" IS 'PTZ类型';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."PTZ_TYPE_TEXT" IS 'PTZ类型描述字符串';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."STATUS" IS '设备状态（1-未激活，2-禁用，3-在线，4-离线）';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."LONGITUDE" IS '设备经度';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."LATITUDE" IS '设备纬度';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."STREAM_ID" IS '流媒体ID';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."SUB_COUNT" IS '子设备数';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."PARENTAL" IS '是否有子设备（1-有, 0-没有）';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."HAS_AUDIO" IS '是否含有音频（1-有, 0-没有）';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "SIP_DEVICE_CHANNEL"."REMARK" IS '备注';
COMMENT ON TABLE "SIP_DEVICE_CHANNEL" IS '监控设备通道信息';

-- ----------------------------
-- Records of SIP_DEVICE_CHANNEL
-- ----------------------------
INSERT INTO "SIP_DEVICE_CHANNEL" VALUES ('84', '1', 'admin', '118', '监控设备', '1', '11010200001320000001', '11010200001320000001', 'IPdome', TO_TIMESTAMP('2024-01-08 22:16:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '132', '132', '北京市/市辖区/西城区', '3402000000', 'Hikvision', 'IP Camera', 'Owner', ' ', 'Address', '34020000002000000001', ' ', '0', ' ', '0', ' ', '1', '0', '0', 'gb_play_11010200001320000001_11010200001320000001', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2023-04-11 21:12:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SIP_DEVICE_CHANNEL" VALUES ('102', '1', 'admin', '135', '视频监控', '0',  '11010100001320000001', '11010100001320000001', 'IPdome', TO_TIMESTAMP('2024-01-09 23:35:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '132', '132', '北京市/市辖区/东城区', '3402000000', 'Hikvision', 'IP Camera', 'Owner', ' ', 'Address', '34020000002000000001', ' ', '0', ' ', '0', ' ', '1', '0', '0', ' ', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2024-01-08 22:15:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);

-- ----------------------------
-- Primary Key structure for table SIP_DEVICE_CHANNEL
-- ----------------------------
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012561" PRIMARY KEY ("ID", "DEVICE_SIP_ID");

-- ----------------------------
-- Checks structure for table SIP_DEVICE_CHANNEL
-- ----------------------------
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012399" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012400" CHECK ("TENANT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012401" CHECK ("PRODUCT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012402" CHECK ("PRODUCT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012403" CHECK ("USER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012404" CHECK ("USER_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012405" CHECK ("DEVICE_SIP_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012406" CHECK ("CHANNEL_SIP_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012407" CHECK ("CHANNEL_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012408" CHECK ("CITY_CODE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012409" CHECK ("CIVIL_CODE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012410" CHECK ("MANUFACTURE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012411" CHECK ("MODEL" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012412" CHECK ("OWNER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012413" CHECK ("BLOCK" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012414" CHECK ("ADDRESS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012415" CHECK ("PARENT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012416" CHECK ("PASSWORD" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012417" CHECK ("PTZ_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012418" CHECK ("PTZ_TYPE_TEXT" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012419" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012420" CHECK ("STREAM_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012421" CHECK ("SUB_COUNT" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012422" CHECK ("PARENTAL" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012423" CHECK ("HAS_AUDIO" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012424" CHECK ("DEL_FLAG" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012425" CHECK ("CREATE_BY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SIP_DEVICE_CHANNEL" ADD CONSTRAINT "SYS_C0012426" CHECK ("CREATE_TIME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SIP_DEVICE_CHANNEL
-- ----------------------------
CREATE TRIGGER "SIP_DEVICE_CHANNEL_ID_TRIG" BEFORE INSERT OR UPDATE ON "SIP_DEVICE_CHANNEL" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  sip_device_channel_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM sip_device_channel;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT sip_device_channel_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SYS_AUTH_USER
-- ----------------------------
DROP TABLE "SYS_AUTH_USER";
CREATE TABLE "SYS_AUTH_USER" (
                                           "AUTH_ID" NUMBER(38,0) NOT NULL,
                                           "UUID" VARCHAR2(666 CHAR) NOT NULL,
                                           "USER_ID" NUMBER(38,0) NOT NULL,
                                           "LOGIN_NAME" VARCHAR2(40 CHAR) NOT NULL,
                                           "USER_NAME" VARCHAR2(40 CHAR) DEFAULT '',
                                           "AVATAR" VARCHAR2(666 CHAR) DEFAULT '',
                                           "EMAIL" VARCHAR2(340 CHAR) DEFAULT '',
                                           "SOURCE" VARCHAR2(340 CHAR) DEFAULT '',
                                           "CREATE_TIME" TIMESTAMP(6)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_AUTH_USER"."AUTH_ID" IS '授权ID';
COMMENT ON COLUMN "SYS_AUTH_USER"."UUID" IS '第三方平台用户唯一ID';
COMMENT ON COLUMN "SYS_AUTH_USER"."USER_ID" IS '系统用户ID';
COMMENT ON COLUMN "SYS_AUTH_USER"."LOGIN_NAME" IS '登录账号';
COMMENT ON COLUMN "SYS_AUTH_USER"."USER_NAME" IS '用户昵称';
COMMENT ON COLUMN "SYS_AUTH_USER"."AVATAR" IS '头像地址';
COMMENT ON COLUMN "SYS_AUTH_USER"."EMAIL" IS '用户邮箱';
COMMENT ON COLUMN "SYS_AUTH_USER"."SOURCE" IS '用户来源';
COMMENT ON COLUMN "SYS_AUTH_USER"."CREATE_TIME" IS '创建时间';
COMMENT ON TABLE "SYS_AUTH_USER" IS '第三方授权表';

-- ----------------------------
-- Records of SYS_AUTH_USER
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table SYS_AUTH_USER
-- ----------------------------
ALTER TABLE "SYS_AUTH_USER" ADD CONSTRAINT "SYS_C0012562" PRIMARY KEY ("AUTH_ID");

-- ----------------------------
-- Checks structure for table SYS_AUTH_USER
-- ----------------------------
ALTER TABLE "SYS_AUTH_USER" ADD CONSTRAINT "SYS_C0012427" CHECK ("AUTH_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_AUTH_USER" ADD CONSTRAINT "SYS_C0012428" CHECK ("UUID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_AUTH_USER" ADD CONSTRAINT "SYS_C0012429" CHECK ("USER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_AUTH_USER" ADD CONSTRAINT "SYS_C0012430" CHECK ("LOGIN_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SYS_AUTH_USER
-- ----------------------------
CREATE TRIGGER "SYS_AUTH_USER_AUTH_ID_TRIG" BEFORE INSERT OR UPDATE ON "SYS_AUTH_USER" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.auth_id IS NULL THEN
SELECT  sys_auth_user_auth_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(auth_id),0) INTO v_newVal FROM sys_auth_user;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT sys_auth_user_auth_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.auth_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SYS_CLIENT
-- ----------------------------
DROP TABLE "SYS_CLIENT";
CREATE TABLE "SYS_CLIENT" (
                                        "ID" NUMBER(38,0) NOT NULL,
                                        "CLIENT_KEY" VARCHAR2(32 CHAR),
                                        "CLIENT_SECRET" VARCHAR2(255 CHAR),
                                        "TOKEN" VARCHAR2(255 CHAR),
                                        "GRANT_TYPE" VARCHAR2(255 CHAR),
                                        "DEVICE_TYPE" VARCHAR2(32 CHAR),
                                        "TIMEOUT" NUMBER(10,0) DEFAULT 604800,
                                        "ENABLE" CHAR(1 CHAR) DEFAULT '1',
  "DEL_FLAG" CHAR(1 CHAR) DEFAULT '0',
  "CREATE_BY" VARCHAR2(64 CHAR) DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(64 CHAR) DEFAULT '',
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(500 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_CLIENT"."ID" IS 'id唯一标识';
COMMENT ON COLUMN "SYS_CLIENT"."CLIENT_KEY" IS '客户端key';
COMMENT ON COLUMN "SYS_CLIENT"."CLIENT_SECRET" IS '客户端秘钥';
COMMENT ON COLUMN "SYS_CLIENT"."TOKEN" IS '客户端token';
COMMENT ON COLUMN "SYS_CLIENT"."GRANT_TYPE" IS '授权类型';
COMMENT ON COLUMN "SYS_CLIENT"."DEVICE_TYPE" IS '设备类型';
COMMENT ON COLUMN "SYS_CLIENT"."TIMEOUT" IS 'token固定超时';
COMMENT ON COLUMN "SYS_CLIENT"."ENABLE" IS '是否生效（0-不生效，1-生效）';
COMMENT ON COLUMN "SYS_CLIENT"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "SYS_CLIENT"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "SYS_CLIENT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "SYS_CLIENT"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "SYS_CLIENT"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "SYS_CLIENT"."REMARK" IS '备注';
COMMENT ON TABLE "SYS_CLIENT" IS '系统授权表';

-- ----------------------------
-- Records of SYS_CLIENT
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table SYS_CLIENT
-- ----------------------------
ALTER TABLE "SYS_CLIENT" ADD CONSTRAINT "SYS_C0012563" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table SYS_CLIENT
-- ----------------------------
ALTER TABLE "SYS_CLIENT" ADD CONSTRAINT "SYS_C0012431" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SYS_CLIENT
-- ----------------------------
CREATE TRIGGER "SYS_CLIENT_ID_TRIG" BEFORE INSERT OR UPDATE ON "SYS_CLIENT" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.id IS NULL THEN
SELECT  sys_client_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(id),0) INTO v_newVal FROM sys_client;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT sys_client_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SYS_CONFIG
-- ----------------------------
DROP TABLE "SYS_CONFIG";
CREATE TABLE "SYS_CONFIG" (
                                        "CONFIG_ID" NUMBER(10,0) NOT NULL,
                                        "CONFIG_NAME" VARCHAR2(133 CHAR) DEFAULT '',
                                        "CONFIG_KEY" VARCHAR2(133 CHAR) DEFAULT '',
                                        "CONFIG_VALUE" VARCHAR2(666 CHAR) DEFAULT '',
                                        "CONFIG_TYPE" CHAR(1 CHAR) DEFAULT 'N',
  "CREATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(666 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_CONFIG"."CONFIG_ID" IS '参数主键';
COMMENT ON COLUMN "SYS_CONFIG"."CONFIG_NAME" IS '参数名称';
COMMENT ON COLUMN "SYS_CONFIG"."CONFIG_KEY" IS '参数键名';
COMMENT ON COLUMN "SYS_CONFIG"."CONFIG_VALUE" IS '参数键值';
COMMENT ON COLUMN "SYS_CONFIG"."CONFIG_TYPE" IS '系统内置（Y是 N否）';
COMMENT ON COLUMN "SYS_CONFIG"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "SYS_CONFIG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "SYS_CONFIG"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "SYS_CONFIG"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "SYS_CONFIG"."REMARK" IS '备注';
COMMENT ON TABLE "SYS_CONFIG" IS '参数配置表';

-- ----------------------------
-- Records of SYS_CONFIG
-- ----------------------------
INSERT INTO "SYS_CONFIG" VALUES ('1', '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow');
INSERT INTO "SYS_CONFIG" VALUES ('2', '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '初始化密码 123456');
INSERT INTO "SYS_CONFIG" VALUES ('3', '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '深色主题theme-dark，浅色主题theme-light');
INSERT INTO "SYS_CONFIG" VALUES ('5', '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'true', 'Y', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-24 22:43:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '是否开启注册用户功能（true开启，false关闭）');
INSERT INTO "SYS_CONFIG" VALUES ('6', '账号自助-验证码开关', 'sys.account.captchaEnabled', 'true', 'Y', 'admin', TO_TIMESTAMP('2023-03-10 23:29:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '是否开启验证码功能（true开启，false关闭）');

-- ----------------------------
-- Primary Key structure for table SYS_CONFIG
-- ----------------------------
ALTER TABLE "SYS_CONFIG" ADD CONSTRAINT "SYS_C0012564" PRIMARY KEY ("CONFIG_ID");

-- ----------------------------
-- Checks structure for table SYS_CONFIG
-- ----------------------------
ALTER TABLE "SYS_CONFIG" ADD CONSTRAINT "SYS_C0012432" CHECK ("CONFIG_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SYS_CONFIG
-- ----------------------------
CREATE TRIGGER "SYS_CONFIG_CONFIG_ID_TRIG" BEFORE INSERT OR UPDATE ON "SYS_CONFIG" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.config_id IS NULL THEN
SELECT  sys_config_config_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(config_id),0) INTO v_newVal FROM sys_config;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT sys_config_config_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.config_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SYS_DEPT
-- ----------------------------
DROP TABLE "SYS_DEPT";
CREATE TABLE "SYS_DEPT" (
                                      "DEPT_ID" NUMBER(38,0) NOT NULL,
                                      "DEPT_USER_ID" NUMBER(38,0),
                                      "PARENT_ID" NUMBER(38,0) NOT NULL DEFAULT 0,
                                      "ANCESTORS" VARCHAR2(66 CHAR) NOT NULL DEFAULT '',
                                      "DEPT_NAME" VARCHAR2(40 CHAR) DEFAULT '',
                                      "ORDER_NUM" NUMBER(10,0) DEFAULT 0,
                                      "LEADER" VARCHAR2(26 CHAR) NOT NULL,
                                      "PHONE" VARCHAR2(14 CHAR),
                                      "STATUS" NUMBER(10,0) DEFAULT 0,
  "DEL_FLAG" CHAR(1 CHAR) DEFAULT '0',
  "CREATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "UPDATE_TIME" TIMESTAMP(6),
  "EMAIL" VARCHAR2(340 CHAR),
  "DEPT_TYPE" NUMBER(10,0),
  "DEPT_LOGO" VARCHAR2(200 CHAR),
  "LOGO_NAME" VARCHAR2(100 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_DEPT"."DEPT_ID" IS '机构id';
COMMENT ON COLUMN "SYS_DEPT"."DEPT_USER_ID" IS '机构系统账号ID';
COMMENT ON COLUMN "SYS_DEPT"."PARENT_ID" IS '上级机构id';
COMMENT ON COLUMN "SYS_DEPT"."ANCESTORS" IS '祖级列表';
COMMENT ON COLUMN "SYS_DEPT"."DEPT_NAME" IS '机构名称';
COMMENT ON COLUMN "SYS_DEPT"."ORDER_NUM" IS '显示顺序';
COMMENT ON COLUMN "SYS_DEPT"."LEADER" IS '联系人';
COMMENT ON COLUMN "SYS_DEPT"."PHONE" IS '联系电话';
COMMENT ON COLUMN "SYS_DEPT"."STATUS" IS '机构状态（0正常 1停用）';
COMMENT ON COLUMN "SYS_DEPT"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "SYS_DEPT"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "SYS_DEPT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "SYS_DEPT"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "SYS_DEPT"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "SYS_DEPT"."DEPT_TYPE" IS '机构类型';
COMMENT ON COLUMN "SYS_DEPT"."DEPT_LOGO" IS '机构logo';
COMMENT ON COLUMN "SYS_DEPT"."LOGO_NAME" IS 'logo名称';
COMMENT ON TABLE "SYS_DEPT" IS '机构表';

-- ----------------------------
-- Records of SYS_DEPT
-- ----------------------------
INSERT INTO "SYS_DEPT" VALUES ('100', '1', '0', '0', '蜂信物联', '0', 'FastBee', '15888888888', 0, '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-02-26 23:06:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '164770707@qq.com', '1');
INSERT INTO "SYS_DEPT" VALUES ('101', '7', '100', '0,100', 'web端注册用户归属机构', '0', 'fastbee-web', '15888888885', 0, '0', 'admin', TO_TIMESTAMP('2024-05-08 16:35:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-05-08 16:36:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL, '2');

-- ----------------------------
-- Primary Key structure for table SYS_DEPT
-- ----------------------------
ALTER TABLE "SYS_DEPT" ADD CONSTRAINT "SYS_C0012565" PRIMARY KEY ("DEPT_ID");

-- ----------------------------
-- Checks structure for table SYS_DEPT
-- ----------------------------
ALTER TABLE "SYS_DEPT" ADD CONSTRAINT "SYS_C0012433" CHECK ("DEPT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_DEPT" ADD CONSTRAINT "SYS_C0012434" CHECK ("PARENT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_DEPT" ADD CONSTRAINT "SYS_C0012435" CHECK ("ANCESTORS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_DEPT" ADD CONSTRAINT "SYS_C0012436" CHECK ("LEADER" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SYS_DEPT
-- ----------------------------
CREATE TRIGGER "SYS_DEPT_DEPT_ID_TRIG" BEFORE INSERT OR UPDATE ON "SYS_DEPT" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.dept_id IS NULL THEN
SELECT  sys_dept_dept_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(dept_id),0) INTO v_newVal FROM sys_dept;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT sys_dept_dept_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.dept_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SYS_DICT_DATA
-- ----------------------------
DROP TABLE "SYS_DICT_DATA";
CREATE TABLE "SYS_DICT_DATA" (
                                           "DICT_CODE" NUMBER(38,0) NOT NULL,
                                           "DICT_SORT" NUMBER(10,0) DEFAULT 0,
                                           "DICT_LABEL" VARCHAR2(133 CHAR) DEFAULT '',
                                           "DICT_VALUE" VARCHAR2(133 CHAR) DEFAULT '',
                                           "DICT_TYPE" VARCHAR2(133 CHAR) DEFAULT '',
                                           "CSS_CLASS" VARCHAR2(133 CHAR),
                                           "LIST_CLASS" VARCHAR2(133 CHAR),
                                           "IS_DEFAULT" CHAR(1 CHAR) DEFAULT 'N',
  "STATUS" NUMBER(10,0) DEFAULT 0,
  "CREATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" CLOB
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_DICT_DATA"."DICT_CODE" IS '字典编码';
COMMENT ON COLUMN "SYS_DICT_DATA"."DICT_SORT" IS '字典排序';
COMMENT ON COLUMN "SYS_DICT_DATA"."DICT_LABEL" IS '字典标签';
COMMENT ON COLUMN "SYS_DICT_DATA"."DICT_VALUE" IS '字典键值';
COMMENT ON COLUMN "SYS_DICT_DATA"."DICT_TYPE" IS '字典类型';
COMMENT ON COLUMN "SYS_DICT_DATA"."CSS_CLASS" IS '样式属性（其他样式扩展）';
COMMENT ON COLUMN "SYS_DICT_DATA"."LIST_CLASS" IS '表格回显样式';
COMMENT ON COLUMN "SYS_DICT_DATA"."IS_DEFAULT" IS '是否默认（Y是 N否）';
COMMENT ON COLUMN "SYS_DICT_DATA"."STATUS" IS '状态（0正常 1停用）';
COMMENT ON COLUMN "SYS_DICT_DATA"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "SYS_DICT_DATA"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "SYS_DICT_DATA"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "SYS_DICT_DATA"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "SYS_DICT_DATA"."REMARK" IS '备注';

-- ----------------------------
-- Records of SYS_DICT_DATA
-- ----------------------------
INSERT INTO "SYS_DICT_DATA" VALUES ('154', '1', '微信登录', 'WECHAT', 'iot_social_platform', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2022-04-20 16:41:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-09-22 10:27:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('155', '2', 'QQ登录', 'QQ', 'iot_social_platform', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2022-04-20 16:42:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-09-22 10:28:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('156', '0', '启用', '0', 'iot_social_platform_status', NULL, 'success', 'N', '0', 'admin', TO_TIMESTAMP('2022-04-20 17:02:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-05-12 17:39:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '启用');
INSERT INTO "SYS_DICT_DATA" VALUES ('157', '1', '未启用', '1', 'iot_social_platform_status', NULL, 'info', 'N', '0', 'admin', TO_TIMESTAMP('2022-04-20 17:03:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-05-21 13:44:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '禁用');
INSERT INTO "SYS_DICT_DATA" VALUES ('158', '3', '支付宝', 'ALIPAY', 'iot_social_platform', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2022-05-12 17:49:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-05-12 17:50:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('159', '1', '自动定位', '1', 'iot_location_way', NULL, 'success', 'N', '0', 'admin', TO_TIMESTAMP('2022-05-21 13:46:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-05-21 13:53:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'IP定位，精确到城市');
INSERT INTO "SYS_DICT_DATA" VALUES ('160', '2', '设备定位', '2', 'iot_location_way', NULL, 'warning', 'N', '0', 'admin', TO_TIMESTAMP('2022-05-21 13:46:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-05-21 13:49:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '最精确定位');
INSERT INTO "SYS_DICT_DATA" VALUES ('161', '3', '自定义位置', '3', 'iot_location_way', NULL, 'primary', 'N', '0', 'admin', TO_TIMESTAMP('2022-05-21 13:48:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-05-21 13:55:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '位置自定义');
INSERT INTO "SYS_DICT_DATA" VALUES ('162', '3', '简单+加密', '3', 'iot_vertificate_method', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2022-06-05 00:15:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('163', '1', '未使用', '1', 'iot_auth_status', NULL, 'info', 'N', '0', 'admin', TO_TIMESTAMP('2022-06-07 17:39:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-06-07 17:40:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('164', '2', '已使用', '2', 'iot_auth_status', NULL, 'success', 'N', '0', 'admin', TO_TIMESTAMP('2022-06-07 17:40:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-06-07 23:21:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('165', '7', '对象', 'object', 'iot_data_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-09 16:20:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-02-09 16:21:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('166', '3', '监控设备', '3', 'iot_device_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-09 16:26:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('167', '1', '未使用', '1', 'sip_gen_status', NULL, 'info', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-19 15:49:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-02-19 15:50:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('168', '2', '在线', '3', 'sip_gen_status', NULL, 'success', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-19 15:49:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-02-24 21:36:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('169', '0', 'DVR', '111', 'video_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:07:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('170', '1', 'NVR', '118', 'video_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:07:59.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('171', '2', '报警控制器', '117', 'video_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:08:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-02-22 01:08:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('172', '4', '摄像机', '131', 'video_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:08:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('173', '5', 'IPC', '132', 'video_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:09:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('174', '6', '显示器', '133', 'video_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:09:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('175', '7', '报警输入设备', '134', 'video_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:09:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('176', '8', '报警输出设备', '135', 'video_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:10:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('177', '9', '语音输入设备', '136', 'video_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:10:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('178', '10', '语音输出设备', '137', 'video_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:10:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-02-22 01:10:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('179', '11', '移动传输设备', '138', 'video_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:11:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('180', '0', '报警控制器', '117', 'channel_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:12:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('181', '1', '摄像机', '131', 'channel_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:12:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('182', '2', 'IPC', '132', 'channel_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:12:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('183', '3', '显示器', '133', 'channel_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:12:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('184', '5', '报警输入设备', '134', 'channel_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:13:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('185', '6', '报警输出设备', '135', 'channel_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:13:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-02-22 01:13:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('186', '7', '语音输入设备', '136', 'channel_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:14:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-02-22 01:14:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('187', '8', '语音输出设备', '137', 'channel_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:14:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('188', '9', '移动传输设备', '138', 'channel_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:15:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('189', '3', '离线', '4', 'sip_gen_status', NULL, 'warning', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-24 21:36:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-02-24 21:37:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('190', '4', '禁用', '2', 'sip_gen_status', NULL, 'danger', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-24 21:37:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('191', '0', '云端轮询', '0', 'data_collect_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-28 13:56:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('192', '0', '边缘采集', '1', 'data_collect_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-28 13:56:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('193', '0', '1分钟', '60', 'iot_modbus_poll_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-28 14:39:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('194', '0', '2分钟', '120', 'iot_modbus_poll_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-28 14:39:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('195', '0', '5分钟', '300', 'iot_modbus_poll_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-28 14:39:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-02-28 14:39:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('196', '1', '03(读保持寄存器)', '3', 'iot_modbus_status_code', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-28 15:19:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-21 14:33:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('197', '0', '01(读线圈)', '1', 'iot_modbus_status_code', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-28 15:20:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('198', '0', 'MQTT', 'MQTT', 'iot_transport_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-28 16:35:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('199', '1', 'TCP', 'TCP', 'iot_transport_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-28 16:35:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('200', '2', 'COAP', 'COAP', 'iot_transport_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-28 16:36:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-02-28 16:36:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('201', '3', 'UDP', 'UDP', 'iot_transport_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-02-28 16:36:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('230', '99', '其他', '0', 'sys_oper_type', ' ', 'info', 'N', '0', 'admin', TO_TIMESTAMP('2023-03-10 23:28:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '其他操作');
INSERT INTO "SYS_DICT_DATA" VALUES ('231', '0', '事件上报', '3', 'iot_event_type', NULL, 'danger', 'N', '0', 'admin', TO_TIMESTAMP('2023-03-29 00:25:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('232', '0', '设备上线', '5', 'iot_event_type', NULL, 'success', 'N', '0', 'admin', TO_TIMESTAMP('2023-03-29 00:25:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('233', '0', '设备离线', '6', 'iot_event_type', NULL, 'info', 'N', '0', 'admin', TO_TIMESTAMP('2023-03-29 00:26:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('234', '0', '服务下发', '1', 'iot_function_type', NULL, 'primary', 'N', '0', 'admin', TO_TIMESTAMP('2023-03-29 00:38:26.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('235', '0', '属性获取', '2', 'iot_function_type', NULL, 'success', 'N', '0', 'admin', TO_TIMESTAMP('2023-03-29 00:38:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('236', '0', 'OTA升级', '3', 'iot_function_type', NULL, 'warning', 'N', '0', 'admin', TO_TIMESTAMP('2023-03-29 00:39:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('237', '0', '读写', '0', 'iot_data_read_write', NULL, 'primary', 'N', '0', 'admin', TO_TIMESTAMP('2023-04-09 02:12:05.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('238', '0', '只读', '1', 'iot_data_read_write', NULL, 'info', 'N', '0', 'admin', TO_TIMESTAMP('2023-04-09 02:12:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('239', '0', '全部设备', '1', 'oat_update_limit', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-04-09 23:57:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-11 11:53:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('240', '1', '指定设备', '2', 'oat_update_limit', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-04-11 11:53:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-11 11:53:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('241', '4', 'GB28181', 'GB28181', 'iot_transport_type', NULL, 'primary', 'N', '0', 'admin', TO_TIMESTAMP('2023-05-12 14:25:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-05-12 14:26:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('242', '1', '02(读离散量输入)', '2', 'iot_modbus_status_code', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-07-03 10:16:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-07-03 10:17:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('243', '3', '04(读输入寄存器)', '4', 'iot_modbus_status_code', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-07-03 10:17:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-07-03 10:17:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('244', '4', '微信开放平台网站应用', 'wechat_open_web', 'iot_social_platform', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('245', '5', '微信开放平台移动应用', 'wechat_open_mobile', 'iot_social_platform', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:29:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('246', '6', '微信开放平台小程序', 'wechat_open_mini_program', 'iot_social_platform', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:38:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('247', '7', '微信开放平台网站应用个人中心绑定', 'wechat_open_web_bind', 'iot_social_platform', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-10-09 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('248', '0', '16位 无符号', 'ushort', 'iot_modbus_data_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-04 14:11:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('249', '1', '16位 有符号', 'short', 'iot_modbus_data_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-04 14:12:26.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('250', '2', '32位 有符号(ABCD)', 'long-ABCD', 'iot_modbus_data_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-04 14:12:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('251', '3', '32位 有符号(CDAB)', 'long-CDAB', 'iot_modbus_data_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-04 14:13:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('252', '4', '32位 无符号(ABCD)', 'ulong-ABCD', 'iot_modbus_data_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-04 14:13:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('253', '5', '32位 无符号(CDAB)', 'ulong-CDAB', 'iot_modbus_data_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-04 14:14:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('254', '6', '32位 浮点数(ABCD)', 'float-ABCD', 'iot_modbus_data_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-04 14:14:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('255', '7', '32位 浮点数(CDAB)', 'float-CDAB', 'iot_modbus_data_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-04 14:14:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('256', '8', '位', 'bit', 'iot_modbus_data_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-04 14:15:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('257', '1', 'Java脚本引擎', 'java', 'rule_script_language', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-04 01:51:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-04 01:51:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('258', '2', 'JavaScript脚本引擎', 'js', 'rule_script_language', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-04 01:51:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-05 10:28:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('259', '1', '普通脚本节点', 'script', 'rule_script_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-04 01:53:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('260', '2', '选择脚本节点 (switch)', 'switch_script', 'rule_script_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-04 01:53:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-04 01:56:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('261', '3', '条件脚本节点 (if)', 'if_script', 'rule_script_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-04 01:53:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-04 01:56:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('262', '4', '数量循环节点 (for)', 'for_script', 'rule_script_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-04 01:54:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-04 01:57:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('263', '5', '条件循环节点 (while)', 'while_script', 'rule_script_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-04 01:54:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-04 01:57:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('264', '6', '退出循环节点 (break)', 'break_script', 'rule_script_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-04 01:54:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-04 01:57:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('265', '3', 'groovy脚本引擎', 'groovy', 'rule_script_language', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-05 10:29:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('266', '0', '其他', 'OTHER', 'dueros_related_device', ' ', 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-08 09:46:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '');
INSERT INTO "SYS_DICT_DATA" VALUES ('423', '1', '发声设备当前的静音属性', 'muteState', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '{"type":"enum","matchList":[{"text":"静音","value":"true","thingsModelValue":""},{"text":"未静音","value":"false","thingsModelValue":""}]}');
INSERT INTO "SYS_DICT_DATA" VALUES ('424', '1', '设备的位置属性', 'location', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '{"type":"enum","matchList":[{"text":"主卧","value":"MASTER_BEDROOM","thingsModelValue":""},{"text":"次卧","value":"SECOND_BEDROOM","thingsModelValue":""},{"text":"客厅","value":"LIVING_ROOM","thingsModelValue":""},{"text":"厨房","value":"KITCHEN","thingsModelValue":""},{"text":"书房","value":"STUDY","thingsModelValue":""},{"text":"餐厅","value":"RESTAURANT","thingsModelValue":""}]}');
INSERT INTO "SYS_DICT_DATA" VALUES ('425', '1', '锁的状态属性', 'lockState', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '{"type":"enum","matchList":[{"text":"锁定","value":"LOCKED","thingsModelValue":""},{"text":"未锁定","value":"UNLOCKED","thingsModelValue":""},{"text":"未知","value":"JAMMED","thingsModelValue":""}]}');
INSERT INTO "SYS_DICT_DATA" VALUES ('426', '1', '设备的颜色', 'color', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '{"matchList":[{"text":"色相","thingsModelValue":"","value":"hue"},{"text":"饱和度","thingsModelValue":"","value":"saturation"},{"text":"明度","thingsModelValue":"","value":"brightness"}],"type":"object"}');
INSERT INTO "SYS_DICT_DATA" VALUES ('427', '1', '设备电池的电量属性', 'electricityCapacity', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('428', '1', '自定义充电状态属性', 'chargeStatus', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '{"type":"enum","matchList":[{"text":"充电","value":"chargeTurnOn","thingsModelValue":""},{"text":"停止充电","value":"chargeTurnOff","thingsModelValue":""}]}');
INSERT INTO "SYS_DICT_DATA" VALUES ('429', '1', '设备的色温属性', 'colorTemperatureInKelvin', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('430', '1', '设备风速值属性', 'fanSpeed', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '{"matchList":[{"text":"风速值","value":"value"},{"text":"风速挡位","value":"level","matchList":[{"text":"最小档","thingsModelValue":"","value":"min"},{"text":"低速档","thingsModelValue":"","value":"low"},{"text":"中速档","thingsModelValue":"","value":"middle"},{"text":"高速档","thingsModelValue":"","value":"high"},{"text":"最大档","thingsModelValue":"","value":"max"},{"text":"自动档","thingsModelValue":"","value":"auto"}]}],"select":"","type":"enumSelect"}');
INSERT INTO "SYS_DICT_DATA" VALUES ('431', '1', '空气质量的属性', 'airQuality', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '{"type":"enum","matchList":[{"text":"优","value":"优","thingsModelValue":""},{"text":"良","value":"良","thingsModelValue":""},{"text":"差","value":"差","thingsModelValue":""},{"text":"轻度污染","value":"轻度污染","thingsModelValue":""},{"text":"中度污染","value":"中度污染","thingsModelValue":""},{"text":"重度污染","value":"重度污染","thingsModelValue":""},{"text":"严重污染","value":"严重污染","thingsModelValue":""}]}');
INSERT INTO "SYS_DICT_DATA" VALUES ('432', '1', '设备的吸力属性', 'suction', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '{"type":"enum","matchList":[{"text":"标准档","value":"STANDARD","thingsModelValue":""},{"text":"强劲档","value":"STRONG","thingsModelValue":""}]}');
INSERT INTO "SYS_DICT_DATA" VALUES ('433', '1', '设备的水量属性', 'waterLevel', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '{"type":"enum","matchList":[{"text":"低档","value":"LOW","thingsModelValue":""},{"text":"中档","value":"MEDIUM","thingsModelValue":""},{"text":"高档","value":"HIGH","thingsModelValue":""}]}');
INSERT INTO "SYS_DICT_DATA" VALUES ('434', '1', '电视频道属性', 'channel', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('435', '1', '自定义方向属性', 'direction', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '{"type":"enum","matchList":[{"text":"移动","value":"MOVE","thingsModelValue":""},{"text":"吹风","value":"BLOW","thingsModelValue":""},{"text":"摇摆","value":"SWING","thingsModelValue":""},{"text":"向前","value":"FORWARD","thingsModelValue":""},{"text":"向后","value":"BACKWARD","thingsModelValue":""},{"text":"向左","value":"LEFT","thingsModelValue":""},{"text":"向右","value":"RIGHT","thingsModelValue":""},{"text":"顺时针旋转","value":"CLOCKWISE","thingsModelValue":""},{"text":"逆时针旋转","value":"COUNTERCLOCKWISE","thingsModelValue":""}]}');
INSERT INTO "SYS_DICT_DATA" VALUES ('436', '1', '设备控制模式属性', 'mode', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('267', '1', '电灯', 'LIGHT', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-08 16:22:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '');
INSERT INTO "SYS_DICT_DATA" VALUES ('268', '1', '空调', 'AIR_CONDITION', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-23 15:57:38.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'name,connectivity,turnOnState,mode,temperature,targetTemperature,fanSpeed');
INSERT INTO "SYS_DICT_DATA" VALUES ('269', '1', '窗帘', 'CURTAIN', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('270', '1', '窗纱', 'CURT_SIMP', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('271', '1', '插座', 'SOCKET', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-23 15:56:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'name,connectivity,turnOnState');
INSERT INTO "SYS_DICT_DATA" VALUES ('272', '1', '开关', 'SWITCH', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('273', '1', '冰箱', 'FRIDGE', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('274', '1', '净水器', 'WATER_PURIFIER', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('275', '1', '加湿器', 'HUMIDIFIER', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('276', '1', '除湿器', 'DEHUMIDIFIER', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('277', '1', '电磁炉', 'INDUCTION_COOKER', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('278', '1', '空气净化器', 'AIR_PURIFIER', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('279', '1', '洗衣机', 'WASHING_MACHINE', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('280', '1', '热水器', 'WATER_HEATER', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('281', '1', '燃气灶', 'GAS_STOVE', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('282', '1', '电视机', 'TV_SET', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('283', '1', '网络盒子', 'OTT_BOX', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('284', '1', '油烟机', 'RANGE_HOOD', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('285', '1', '电风扇', 'FAN', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('286', '1', '投影仪', 'PROJECTOR', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('287', '1', '扫地机器人', 'SWEEPING_ROBOT', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('288', '1', '热水壶', 'KETTLE', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('289', '1', '微波炉', 'MICROWAVE_OVEN', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('290', '1', '压力锅', 'PRESSURE_COOKER', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('291', '1', '电饭煲', 'RICE_COOKER', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('292', '1', '破壁机', 'HIGH_SPEED_BLENDER', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('293', '1', '新风机', 'AIR_FRESHER', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('294', '1', '晾衣架', 'CLOTHES_RACK', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('295', '1', '烤箱设备', 'OVEN', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('296', '1', '蒸烤箱', 'STEAM_OVEN', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('297', '1', '蒸箱', 'STEAM_BOX', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('298', '1', '电暖器', 'HEATER', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('299', '1', '开窗器', 'WINDOW_OPENER', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('300', '1', '摄像头', 'WEBCAM', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('301', '1', '相机', 'CAMERA', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('302', '1', '机器人', 'ROBOT', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('303', '1', '打印机', 'PRINTER', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('304', '1', '饮水机', 'WATER_COOLER', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('305', '1', '鱼缸', 'FISH_TANK', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('306', '1', '浇花器', 'WATERING_DEVICE', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('307', '1', '机顶盒', 'SET_TOP_BOX', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('308', '1', '香薰机', 'AROMATHERAPY_MACHINE', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('309', '1', 'DVD', 'DVD', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('310', '1', '鞋柜', 'SHOE_CABINET', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('311', '1', '走步机', 'WALKING_MACHINE', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('312', '1', '跑步机', 'TREADMILL', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('313', '1', '床', 'BED', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('314', '1', '浴霸', 'YUBA', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('315', '1', '花洒', 'SHOWER', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('316', '1', '浴缸', 'BATHTUB', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('317', '1', '消毒柜', 'DISINFECTION_CABINET', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('318', '1', '洗碗机', 'DISHWASHER', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('319', '1', '沙发品类', 'SOFA', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('320', '1', '门铃', 'DOOR_BELL', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('321', '1', '电梯', 'ELEVATOR', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('322', '1', '体重秤', 'WEIGHT_SCALE', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('323', '1', '体脂秤', 'BODY_FAT_SCALE', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('324', '1', '壁挂炉', 'WALL_HUNG_GAS_BOILER', 'dueros_related_device', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('325', '1', '特定设备的组合场景', 'SCENE_TRIGGER', 'dueros_related_device', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('326', '1', '特定设备的组合场景', 'ACTIVITY_TRIGGER', 'dueros_related_device', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('327', '1', '打开', 'turnOn', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('328', '1', '关闭', 'turnOff', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('329', '1', '定时打开', 'timingTurnOn', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('330', '1', '定时关闭', 'timingTurnOff', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('331', '1', '查询开关状态', 'getTurnOnState', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('332', '1', '设备启动', 'startUp', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('333', '1', '设置灯光亮度', 'setBrightnessPercentage', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('334', '1', '调亮灯光', 'incrementBrightnessPercentage', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('335', '1', '调暗灯光', 'decrementBrightnessPercentage', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('336', '1', '升高温度', 'incrementTemperature', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('337', '1', '降低温度', 'decrementTemperature', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('338', '1', '设置温度', 'setTemperature', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('339', '1', '查询温度（当前温度和目标温度）', 'getTemperature', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('340', '1', '查询当前温度', 'getTemperatureReading', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('341', '1', '查询目标温度', 'getTargetTemperature', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('342', '1', '设置湿度模式', 'setHumidity', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('343', '1', '增大湿度', 'incrementHumidity', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('344', '1', '降低湿度', 'decrementHumidity', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('345', '1', '查询湿度', 'getHumidity', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('346', '1', '查询目标湿度', 'getTargetHumidity', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('347', '1', '查询二氧化碳含量', 'getCO2Quantity', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('348', '1', '暂停', 'pause', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('349', '1', '继续', 'continue', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('350', '1', '调高音量', 'incrementVolume', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('351', '1', '调低音量', 'decrementVolume', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('352', '1', '设置音量', 'setVolume', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('353', '1', '设置静音状态', 'setVolumeMute', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('354', '1', '查询设备所在位置', 'getLocation', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('355', '1', '设置清扫位置', 'setCleaningLocation', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('356', '1', '上锁/解锁', 'setLockState', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('357', '1', '设置颜色', 'setColor', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('358', '1', '查询电量', 'getElectricityCapacity', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('359', '1', '开始充电', 'chargeTurnOn', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('360', '1', '停止充电', 'chargeTurnOff', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('361', '1', '设置灯光色温', 'setColorTemperature', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('362', '1', '增高灯光色温', 'incrementColorTemperature', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('363', '1', '降低灯光色温', 'decrementColorTemperature', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('364', '1', '查询风速', 'getFanSpeed', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('365', '1', '设置风速', 'setFanSpeed', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('366', '1', '增加风速', 'incrementFanSpeed', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('367', '1', '减小风速', 'decrementFanSpeed', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('368', '1', '查询空气质量', 'getAirQualityIndex', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('369', '1', '设置吸力', 'setSuction', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('370', '1', '设置水量', 'setWaterLevel', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('371', '1', '上一个频道', 'decrementTVChannel', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('372', '1', '下一个频道', 'incrementTVChannel', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('373', '1', '设置频道', 'setTVChannel', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('374', '1', '返回上个频道', 'returnTVChannel', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('375', '1', '设置移动方向', 'setDirection', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('376', '1', '设置模式', 'setMode', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('377', '1', '取消设置的模式', 'unSetMode', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('378', '1', '定时设置模式', 'timingSetMode', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('379', '1', '定时取消设置的模式', 'timingUnsetMode', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('380', '1', '查询水质', 'getWaterQuality', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('381', '1', '设置电梯楼层', 'setFloor', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('382', '1', '电梯按下', 'decrementFloor', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('383', '1', '电梯按上', 'incrementFloor', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('384', '1', '升高高度', 'incrementHeight', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('385', '1', '降低高度', 'decrementHeight', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('386', '1', '查询运行时间', 'getRunningTime', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('387', '1', '查询剩余时间', 'getTimeLeft', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('388', '1', '查询运行状态', 'getRunningStatus', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('389', '1', '增加速度', 'incrementSpeed', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('390', '1', '降低速度', 'decrementSpeed', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('391', '1', '设置速度', 'setSpeed', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('392', '1', '获取速度', 'getSpeed', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('393', '1', '设置档位', 'setGear', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('394', '1', '查询设备所有状态', 'getState', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('395', '1', '查询PM2.5', 'getAirPM25', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('396', '1', '查询PM10', 'getAirPM10', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('397', '1', '获取跑步信息', 'getMotionInfo', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('398', '1', '设置水流', 'setFlow', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('399', '1', '执行自定义复杂动作', 'setComplexActions', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('400', '1', '设备定时', 'setTimer', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('401', '1', '取消设备定时', 'timingCancel', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('402', '1', '设备复位', 'reset', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('403', '0', '设置功率', 'setPower', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('404', '0', '增大功率', 'incrementPower', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('405', '0', '减小功率', 'decrementPower', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('406', '0', '查询油量', 'getOilCapacity', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('407', '0', '打印', 'submitPrint', 'dueros_actions', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('408', '0', '设置摆风角度', 'setSwingAngle', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('409', '0', '增大雾量', 'incrementMist', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('410', '0', '见效雾量', 'decrementMist', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('411', '0', '设置雾量', 'setMist', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('412', '0', '打开灶眼', 'turnOnBurner', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('413', '0', '关闭灶眼', 'turnOffBurner', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('414', '0', '定时打开灶眼', 'timingTurnOnBurner', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('415', '0', '定时关闭灶眼', 'timingTurnOffBurner', 'dueros_actions', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-09-22 10:35:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('416', '1', '设备的开关状态属性', 'turnOnState', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '{"type":"enum","matchList":[{"text":"打开","value":"ON","thingsModelValue":""},{"text":"关闭","value":"OFF","thingsModelValue":""}]}');
INSERT INTO "SYS_DICT_DATA" VALUES ('417', '1', '设备的亮度属性', 'brightness', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('418', '1', '设备对应的温度属性', 'temperature', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('419', '1', '湿度属性', 'humidity', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('420', '1', '空气中CO2的浓度', 'co2', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('421', '1', '设备的暂停属性', 'pauseState', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '{"type":"enum","matchList":[{"text":"暂停","value":"true","thingsModelValue":""},{"text":"未暂停","value":"false","thingsModelValue":""}]}');
INSERT INTO "SYS_DICT_DATA" VALUES ('422', '1', '设备的音量属性', 'volume', 'dueros_attributes', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('1', '1', '男', '0', 'sys_user_sex', ' ', ' ', 'Y', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '性别男');
INSERT INTO "SYS_DICT_DATA" VALUES ('2', '2', '女', '1', 'sys_user_sex', ' ', ' ', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '性别女');
INSERT INTO "SYS_DICT_DATA" VALUES ('3', '3', '未知', '2', 'sys_user_sex', ' ', ' ', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '性别未知');
INSERT INTO "SYS_DICT_DATA" VALUES ('4', '1', '显示', '0', 'sys_show_hide', ' ', 'primary', 'Y', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '显示菜单');
INSERT INTO "SYS_DICT_DATA" VALUES ('5', '2', '隐藏', '1', 'sys_show_hide', ' ', 'danger', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '隐藏菜单');
INSERT INTO "SYS_DICT_DATA" VALUES ('6', '1', '正常', '0', 'sys_normal_disable', ' ', 'primary', 'Y', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '正常状态');
INSERT INTO "SYS_DICT_DATA" VALUES ('7', '2', '停用', '1', 'sys_normal_disable', ' ', 'danger', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '停用状态');
INSERT INTO "SYS_DICT_DATA" VALUES ('8', '1', '正常', '0', 'sys_job_status', ' ', 'primary', 'Y', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '正常状态');
INSERT INTO "SYS_DICT_DATA" VALUES ('9', '2', '暂停', '1', 'sys_job_status', ' ', 'danger', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '停用状态');
INSERT INTO "SYS_DICT_DATA" VALUES ('10', '1', '默认', 'DEFAULT', 'sys_job_group', ' ', ' ', 'Y', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '默认分组');
INSERT INTO "SYS_DICT_DATA" VALUES ('11', '2', '系统', 'SYSTEM', 'sys_job_group', ' ', ' ', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '系统分组');
INSERT INTO "SYS_DICT_DATA" VALUES ('12', '1', '是', 'Y', 'sys_yes_no', ' ', 'primary', 'Y', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '系统默认是');
INSERT INTO "SYS_DICT_DATA" VALUES ('13', '2', '否', 'N', 'sys_yes_no', ' ', 'danger', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '系统默认否');
INSERT INTO "SYS_DICT_DATA" VALUES ('14', '1', '通知', '1', 'sys_notice_type', ' ', 'warning', 'Y', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '通知');
INSERT INTO "SYS_DICT_DATA" VALUES ('15', '2', '公告', '2', 'sys_notice_type', ' ', 'success', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '公告');
INSERT INTO "SYS_DICT_DATA" VALUES ('16', '1', '正常', '0', 'sys_notice_status', ' ', 'primary', 'Y', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '正常状态');
INSERT INTO "SYS_DICT_DATA" VALUES ('17', '2', '关闭', '1', 'sys_notice_status', ' ', 'danger', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '关闭状态');
INSERT INTO "SYS_DICT_DATA" VALUES ('18', '1', '新增', '1', 'sys_oper_type', ' ', 'info', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '新增操作');
INSERT INTO "SYS_DICT_DATA" VALUES ('19', '2', '修改', '2', 'sys_oper_type', ' ', 'info', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '修改操作');
INSERT INTO "SYS_DICT_DATA" VALUES ('20', '3', '删除', '3', 'sys_oper_type', ' ', 'danger', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '删除操作');
INSERT INTO "SYS_DICT_DATA" VALUES ('21', '4', '授权', '4', 'sys_oper_type', ' ', 'primary', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '授权操作');
INSERT INTO "SYS_DICT_DATA" VALUES ('22', '5', '导出', '5', 'sys_oper_type', ' ', 'warning', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '导出操作');
INSERT INTO "SYS_DICT_DATA" VALUES ('23', '6', '导入', '6', 'sys_oper_type', ' ', 'warning', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '导入操作');
INSERT INTO "SYS_DICT_DATA" VALUES ('24', '7', '强退', '7', 'sys_oper_type', ' ', 'danger', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '强退操作');
INSERT INTO "SYS_DICT_DATA" VALUES ('25', '8', '生成代码', '8', 'sys_oper_type', ' ', 'warning', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '生成操作');
INSERT INTO "SYS_DICT_DATA" VALUES ('26', '9', '清空数据', '9', 'sys_oper_type', ' ', 'danger', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '清空操作');
INSERT INTO "SYS_DICT_DATA" VALUES ('27', '1', '成功', '0', 'sys_common_status', ' ', 'primary', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '正常状态');
INSERT INTO "SYS_DICT_DATA" VALUES ('28', '2', '失败', '1', 'sys_common_status', ' ', 'danger', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '停用状态');
INSERT INTO "SYS_DICT_DATA" VALUES ('100', '1', '属性', '1', 'iot_things_type', ' ', 'primary', 'Y', '0', 'admin', TO_TIMESTAMP('2021-12-12 16:41:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-15 22:49:37.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '');
INSERT INTO "SYS_DICT_DATA" VALUES ('101', '2', '功能', '2', 'iot_things_type', ' ', 'success', 'Y', '0', 'admin', TO_TIMESTAMP('2021-12-12 16:43:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-14 16:33:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '');
INSERT INTO "SYS_DICT_DATA" VALUES ('102', '3', '事件', '3', 'iot_things_type', NULL, 'warning', 'Y', '0', 'admin', TO_TIMESTAMP('2021-12-12 16:46:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('103', '1', '整数', 'integer', 'iot_data_type', ' ', ' ', 'Y', '0', 'admin', TO_TIMESTAMP('2021-12-12 20:20:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-14 16:09:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '');
INSERT INTO "SYS_DICT_DATA" VALUES ('104', '2', '小数', 'decimal', 'iot_data_type', NULL, 'default', 'Y', '0', 'admin', TO_TIMESTAMP('2021-12-12 20:21:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-15 22:51:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('105', '3', '布尔', 'bool', 'iot_data_type', NULL, 'default', 'Y', '0', 'admin', TO_TIMESTAMP('2021-12-12 20:22:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-15 22:51:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('106', '4', '枚举', 'enum', 'iot_data_type', NULL, 'default', 'Y', '0', 'admin', TO_TIMESTAMP('2021-12-12 20:22:37.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-15 22:50:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('107', '5', '字符串', 'string', 'iot_data_type', NULL, 'default', 'Y', '0', 'admin', TO_TIMESTAMP('2021-12-12 20:22:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-15 22:50:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('108', '1', '是', '1', 'iot_yes_no', ' ', 'success', 'Y', '0', 'admin', TO_TIMESTAMP('2021-12-12 20:25:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-15 16:40:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '');
INSERT INTO "SYS_DICT_DATA" VALUES ('109', '2', '否', '0', 'iot_yes_no', ' ', 'danger', 'Y', '0', 'admin', TO_TIMESTAMP('2021-12-12 20:25:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-15 16:41:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '');
INSERT INTO "SYS_DICT_DATA" VALUES ('110', '6', '数组', 'array', 'iot_data_type', NULL, 'default', 'Y', '0', 'admin', TO_TIMESTAMP('2021-12-13 18:18:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-15 22:50:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('111', '1', '未发布', '1', 'iot_product_status', NULL, 'info', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-19 15:01:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-19 15:01:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('112', '2', '已发布', '2', 'iot_product_status', NULL, 'success', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-19 15:01:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('113', '1', '直连设备', '1', 'iot_device_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-19 15:03:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-19 15:10:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('114', '2', '网关设备', '2', 'iot_device_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-19 15:04:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-02-09 16:25:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('116', '1', 'WIFI', '1', 'iot_network_method', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-19 15:07:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-22 00:11:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('117', '2', '蜂窝(2G/3G/4G/5G)', '2', 'iot_network_method', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-19 15:08:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-01-14 02:12:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('118', '3', '以太网', '3', 'iot_network_method', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-19 15:09:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-01-14 02:12:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('119', '1', '简单认证', '1', 'iot_vertificate_method', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-19 15:13:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-06-05 00:14:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('120', '2', '加密认证', '2', 'iot_vertificate_method', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-19 15:13:26.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-06-05 00:14:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('122', '1', 'ESP8266/Arduino', '1', 'iot_device_chip', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-24 15:54:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-24 16:07:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('123', '3', 'ESP32/Arduino', '2', 'iot_device_chip', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-24 15:55:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-24 16:07:26.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('124', '2', 'ESP8266/RTOS', '3', 'iot_device_chip', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-24 15:56:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-24 16:07:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('127', '4', 'ESP32/ESP-IDF', '4', 'iot_device_chip', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-24 16:07:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('128', '5', '树莓派/Python', '5', 'iot_device_chip', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-24 16:08:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('129', '0', '未激活', '1', 'iot_device_status', NULL, 'warning', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-27 22:21:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-27 22:22:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('130', '0', '禁用', '2', 'iot_device_status', NULL, 'danger', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-27 22:21:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('131', '0', '在线', '3', 'iot_device_status', NULL, 'success', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-27 22:21:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('132', '0', '离线', '4', 'iot_device_status', NULL, 'info', 'N', '0', 'admin', TO_TIMESTAMP('2021-12-27 22:22:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('133', '0', '启用', '1', 'iot_is_enable', NULL, 'success', 'N', '0', 'admin', TO_TIMESTAMP('2022-01-12 23:25:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-01-12 23:25:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('134', '0', '禁用', '0', 'iot_is_enable', NULL, 'info', 'N', '0', 'admin', TO_TIMESTAMP('2022-01-12 23:25:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-01-12 23:25:38.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('135', '0', '提醒通知', '1', 'iot_alert_level', NULL, 'success', 'N', '0', 'admin', TO_TIMESTAMP('2022-01-13 14:58:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-01-13 14:58:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('136', '0', '轻微问题', '2', 'iot_alert_level', NULL, 'warning', 'N', '0', 'admin', TO_TIMESTAMP('2022-01-13 14:59:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('137', '0', '严重警告', '3', 'iot_alert_level', NULL, 'danger', 'N', '0', 'admin', TO_TIMESTAMP('2022-01-13 14:59:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('138', '0', '不需要处理', '1', 'iot_process_status', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2022-01-13 15:06:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('139', '0', '未处理', '2', 'iot_process_status', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2022-01-13 15:06:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('140', '0', '已处理', '3', 'iot_process_status', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2022-01-13 15:06:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('141', '1', '属性上报', '1', 'iot_device_log_type', NULL, 'primary', 'N', '0', 'admin', TO_TIMESTAMP('2022-01-13 15:10:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-03-13 00:20:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('142', '3', '事件上报', '3', 'iot_device_log_type', NULL, 'danger', 'N', '0', 'admin', TO_TIMESTAMP('2022-01-13 15:10:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-03-13 00:21:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('143', '2', '功能调用', '2', 'iot_device_log_type', NULL, 'warning', 'N', '0', 'admin', TO_TIMESTAMP('2022-01-13 15:10:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-03-13 00:20:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('144', '4', '设备升级', '4', 'iot_device_log_type', NULL, 'success', 'N', '0', 'admin', TO_TIMESTAMP('2022-01-13 15:11:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-03-13 00:21:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('145', '5', '设备上线', '5', 'iot_device_log_type', NULL, 'success', 'N', '0', 'admin', TO_TIMESTAMP('2022-01-13 15:11:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-03-13 00:21:26.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('146', '6', '设备离线', '6', 'iot_device_log_type', NULL, 'info', 'N', '0', 'admin', TO_TIMESTAMP('2022-01-13 15:11:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-03-13 00:21:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('147', '4', '其他', '4', 'iot_network_method', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2022-01-14 02:12:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-01-14 02:13:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('148', '6', '安卓/Android', '6', 'iot_device_chip', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2022-01-16 12:39:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('149', '7', '其他', '7', 'iot_device_chip', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2022-01-16 12:39:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-01-16 12:40:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('150', '1', '小度平台', '1', 'oauth_platform', NULL, 'primary', 'N', '0', 'admin', TO_TIMESTAMP('2022-02-07 20:29:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-02-07 22:24:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('151', '2', '天猫精灵', '2', 'oauth_platform', NULL, 'danger', 'N', '0', 'admin', TO_TIMESTAMP('2022-02-07 20:29:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-02-07 22:23:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('152', '3', '小米小爱', '3', 'oauth_platform', NULL, 'success', 'N', '0', 'admin', TO_TIMESTAMP('2022-02-07 20:30:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-02-07 22:23:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('153', '4', '其他平台', '4', 'oauth_platform', NULL, 'warning', 'N', '0', 'admin', TO_TIMESTAMP('2022-02-07 22:23:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-02-07 22:24:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('694', '6', 'mqtt接入', '6', 'rule_script_event', NULL, 'primary', 'N', '0', 'admin', TO_TIMESTAMP('2024-07-22 11:57:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('695', '0', '失败', 'o', 'common_status_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-07-18 17:48:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('696', '1', '成功', '1', 'common_status_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-07-18 17:49:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('697', '0', '开关按钮', 'switch', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-16 00:28:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('698', '1', '指示灯', 'light', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-16 00:07:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('699', '2', '基本形状', 'base', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-16 23:51:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('700', '3', '箭头图标', 'arrow', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 02:31:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('701', '4', '卡片图片', 'card', 'scada_gallery_type', ' ', 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 02:31:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('702', '5', '字母数字', 'letter', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 00:45:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('703', '6', '背景图片', 'bg', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 00:57:38.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('704', '7', '装饰框', 'decoration', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 00:58:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('705', '9', '天气符号', 'weather', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 02:31:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('706', '10', '自然植物', 'nature', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 02:32:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('707', '11', '交通标志', 'traffic', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 01:51:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('708', '12', '建筑物', 'build', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 01:51:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('709', '13', '阀门图标', 'valve', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 02:32:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('710', '14', '圆形管道', 'circular_pipe', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 02:13:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('711', '15', '方形管道', 'square_pipe', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 02:14:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('712', '16', '软管图标', 'hose', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 02:32:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('713', '17', '传送带', 'belt', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 02:14:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('714', '18', '电子设备', 'ed', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 02:29:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('715', '19', '罐体箱体', 'tank', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 02:38:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('716', '20', '化工罐塔', 'chemical', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 02:50:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('717', '21', '工业泵', 'pump', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 02:57:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('718', '22', '水泵图片', 'water_pump', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 02:57:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('719', '23', '风机图标', 'fan', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 03:06:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('720', '24', '电机图标', 'em', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 03:06:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('721', '25', '电力设施', 'power', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 02:58:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('722', '26', '搅拌机', 'mixer', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 02:59:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('723', '27', '反应器', 'reactor', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-17 02:59:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('724', '28', '暖通空调', 'hvac', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-06-17 03:01:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('725', '29', '工业冷却', 'cold', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-06-17 03:01:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('726', '30', '工业加热', 'heat', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-06-17 03:01:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('727', '31', '水处理设备', 'water', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-06-17 03:02:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('728', '32', '仪表设备', 'meter', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-06-17 03:02:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('729', '33', '机械设备', 'machine', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-06-17 03:03:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('730', '34', '控制柜', 'control', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-06-17 03:03:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('731', '35', '度量尺', 'rule', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-06-17 03:03:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('732', '36', '采矿图标', 'mine', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-06-17 03:04:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('733', '37', 'ISA符号', 'isa', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-06-17 03:04:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('734', '38', '电气符号', 'es', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-06-17 03:04:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('735', '39', '供暖符号', 'heat_symbols', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-06-17 03:05:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('736', '40', '其他', 'other', 'scada_gallery_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-06-17 03:05:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('437', '1', '自定义水质属性', 'waterQuality', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('438', '1', '自定义楼梯属性', 'floor', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('439', '1', '自定义高度属性', 'height', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('440', '1', '自定义运行时间属性', 'runningTime', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('441', '1', '自定义剩余时间属性', 'timeLeft', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('442', '1', '自定义运行状态属性', 'runningStatus', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('443', '1', '设备速度值属性', 'speed', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('444', '1', '自定义档位属性', 'gear', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '{"type":"enum","matchList":[{"text":"最小档","value":"MIN","thingsModelValue":""},{"text":"低档","value":"LOW","thingsModelValue":""},{"text":"中低档","value":"MIDDLE_LOW","thingsModelValue":""},{"text":"中档","value":"MIDDLE","thingsModelValue":""},{"text":"中高档","value":"MIDDLE_HIGH","thingsModelValue":""},{"text":"高档","value":"HIGH","thingsModelValue":""},{"text":"最大档","value":"MAX","thingsModelValue":""},{"text":"自动档","value":"AUTO","thingsModelValue":""},{"text":"随机档","value":"RANDOM","thingsModelValue":""}]}');
INSERT INTO "SYS_DICT_DATA" VALUES ('445', '1', '设备的状态属性', 'state', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '{"type":"enum","matchList":[{"text":"","value":"MIN","thingsModelValue":""},{"text":"清扫中","value":"CLEANING","thingsModelValue":""},{"text":"充电中","value":"CHARGING","thingsModelValue":""},{"text":"回充中","value":"RECHARGING","thingsModelValue":""},{"text":"休眠中","value":"SLEEPING","thingsModelValue":""},{"text":"待命中","value":"STAND_BY","thingsModelValue":""},{"text":"报错","value":"PEPORT_ERROR","thingsModelValue":""},{"text":"关机","value":"SHUT_DOWN","thingsModelValue":""},{"text":"遥控中","value":"REMOTE_CONTROLING","thingsModelValue":""},{"text":"已暂停","value":"PAUSED","thingsModelValue":""}]}');
INSERT INTO "SYS_DICT_DATA" VALUES ('446', '1', '空气中PM2.5的含量', 'pm2.5', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('447', '1', '空气中PM10的含量', 'pm10', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('448', '1', '运动信息属性', 'motionInfo', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('449', '1', '自定义水流属性', 'flow', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '{"matchList":[{"text":"动作","thingsModelValue":"","value":"action","matchList":[{"text":"出水、排水","thingsModelValue":"","value":"POUR_WATER"},{"text":"加水、注水","thingsModelValue":"","value":"FILL_WATER"}]},{"text":"范围","thingsModelValue":"","value":"select","matchList":[{"text":"顶部","thingsModelValue":"","value":"TOP"},{"text":"手持","thingsModelValue":"","value":"HANDLE_HELD"},{"text":"底部","thingsModelValue":"","value":"UNDER"}]},{"text":"控制","thingsModelValue":"","value":"control","matchList":[{"text":"开始","thingsModelValue":"","value":"START"},{"text":"停止","thingsModelValue":"","value":"STOP"}]}],"type":"object"}');
INSERT INTO "SYS_DICT_DATA" VALUES ('450', '1', '自定义复杂动作属性', 'complexActions', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('451', '1', '自定义定时动作属性', 'timer', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('452', '1', '自定义复位动作属性', 'reset', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('453', '1', '设备油箱的油量属性', 'oilCapacity', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('454', '1', '设备的工作状态属性', 'workState', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('455', '1', '设备是否可达属性', 'connectivity', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('456', '1', '设备通电状态的属性', 'powerState', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('457', '1', '设备的功率属性', 'powerLevel', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('458', '1', '空气中总挥发性有机化合物的浓度', 'tovc', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('459', '1', '空气中甲醛的浓度', 'formaldehyde', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('460', '1', '百分比属性', 'percentage', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('461', '1', '日期和时间属性', 'dateTime', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('462', '1', '设备可行驶距离属性', 'drivingDistance', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('463', '1', '设备的名称属性', 'name', 'dueros_attributes', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-08-23 11:28:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('464', '1', '折线图', '折线图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('465', '1', '柱状图', '柱状图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('466', '1', '饼图', '饼图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('467', '1', '散点图', '散点图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('468', '1', 'K线图', 'K线图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('469', '1', '雷达图', '雷达图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('470', '1', '盒须图', '盒须图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('471', '1', '热力图', '热力图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('472', '1', '关系图', '关系图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('473', '1', '水球图', '水球图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('474', '1', '树图', '树图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('475', '1', '矩形树图', '矩形树图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('476', '1', '旭日图', '旭日图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('477', '1', '平行坐标系', '平行坐标系', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('478', '1', '桑葚图', '桑葚图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('479', '1', '漏斗图', '漏斗图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('480', '1', '仪表图', '仪表图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('481', '1', '象形柱图', '象形柱图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('482', '1', '主题河流', '主题河流图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('483', '1', '路径图', '路径图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('484', '1', '3D柱图', '3D柱图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('485', '1', '3D地图', '3D地图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('486', '1', '词云图', '词云图', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('487', '1', '其他图表', '其他图表', 'scada_echart_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:54:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('516', '1', '960x600', '960x600', 'sys_page_size', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-24 11:18:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('517', '2', '1024x768', '1024x768', 'sys_page_size', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-24 11:17:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('518', '3', '1280x1024', '1280x1024', 'sys_page_size', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-24 11:22:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('519', '4', '1366x768', '1366x768', 'sys_page_size', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-24 11:22:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('520', '5', '1440x900', '1440x900', 'sys_page_size', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-24 11:26:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('521', '6', '1920x960', '1920x960', 'sys_page_size', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-24 11:27:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('522', '7', '1920x1080', '1920x1080', 'sys_page_size', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-24 11:27:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('523', '8', '2048x858', '2048x858', 'sys_page_size', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-24 11:28:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('524', '9', '2048x1080', '2048x1080', 'sys_page_size', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-24 11:28:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('525', '10', '3840x2160', '3840x2160', 'sys_page_size', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-24 11:28:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('526', '11', '3656x2664', '3656x2664', 'sys_page_size', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-24 11:28:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('527', '12', '4096x3112', '4096x3112', 'sys_page_size', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-09 18:05:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-24 11:29:05.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('528', '1', '授权码模式', 'authorization_code', 'oauth_authorization_model', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-27 14:23:59.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-27 14:25:47.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('529', '1', '客户端模式', 'client_credentials', 'oauth_authorization_model', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-27 14:24:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-06 18:00:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('530', '1', '密码模式', 'password', 'oauth_authorization_model', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-27 14:24:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('531', '1', '简化模式', 'implicit', 'oauth_authorization_model', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-27 14:25:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('532', '1', '刷新Token', 'fresh_token', 'oauth_authorization_model', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-27 14:25:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('533', '1', '短信', 'sms', 'notify_channel_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-30 09:45:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-21 10:31:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('535', '2', '微信', 'wechat', 'notify_channel_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-30 09:45:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-05 16:24:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('536', '5', '钉钉', 'dingtalk', 'notify_channel_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-30 09:45:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-10 15:28:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('537', '3', '语音', 'voice', 'notify_channel_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-30 09:45:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-05 16:24:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('539', '1', '阿里云', 'alibaba', 'notify_channel_sms_provider', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-30 09:45:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-05 16:49:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '');
INSERT INTO "SYS_DICT_DATA" VALUES ('540', '1', 'QQ', 'qq', 'notify_channel_email_provider', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-11-30 09:45:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-22 10:33:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '{"host":"","port":"","sender":"","password":""}');
INSERT INTO "SYS_DICT_DATA" VALUES ('543', '4', '邮箱', 'email', 'notify_channel_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-12-11 23:43:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-05 16:24:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('554', '1', '设备告警', 'alert', 'notify_service_code', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-12-18 14:58:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-25 14:35:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('558', '2', '验证码', 'captcha', 'notify_service_code', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-12-18 14:59:59.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-25 14:36:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('560', '1', '设备上报', '1', 'rule_script_event', NULL, 'primary', 'N', '0', 'admin', TO_TIMESTAMP('2023-12-19 11:40:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-20 02:23:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('561', '2', '平台下发', '2', 'rule_script_event', NULL, 'warning', 'N', '0', 'admin', TO_TIMESTAMP('2023-12-19 11:40:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-20 02:23:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('562', '3', '设备上线', '3', 'rule_script_event', NULL, 'success', 'N', '0', 'admin', TO_TIMESTAMP('2023-12-19 11:40:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-20 02:24:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('563', '4', '设备离线', '4', 'rule_script_event', NULL, 'info', 'N', '0', 'admin', TO_TIMESTAMP('2023-12-19 11:41:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-20 02:24:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('564', '1', '数据流', '1', 'rule_script_purpose', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-12-19 11:41:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('565', '2', '触发器', '2', 'rule_script_purpose', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-12-19 11:41:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('566', '3', '执行动作', '3', 'rule_script_purpose', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-12-19 11:41:59.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('567', '1', '消息重发', '1', 'rule_script_action', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-12-19 11:42:26.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('568', '2', '消息通知', '2', 'rule_script_action', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-12-19 11:43:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-19 11:43:38.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('569', '3', 'Http推送', '3', 'rule_script_action', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-12-19 11:43:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('570', '4', 'Mqtt桥接', '4', 'rule_script_action', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-12-19 11:43:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('571', '5', '数据库存储', '5', 'rule_script_action', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-12-19 11:44:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-20 17:08:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('572', '2', '腾讯云', 'tencent', 'notify_channel_sms_provider', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-12-21 10:11:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-10 14:34:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '');
INSERT INTO "SYS_DICT_DATA" VALUES ('573', '3', '天翼云', 'ctyun', 'notify_channel_sms_provider', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-12-21 10:11:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-05 16:50:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '');
INSERT INTO "SYS_DICT_DATA" VALUES ('574', '3', '华为云', 'huawei', 'notify_channel_sms_provider', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-12-21 10:12:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-05 16:50:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('575', '3', '云片', 'yunpian', 'notify_channel_sms_provider', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-12-21 10:12:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-05 16:50:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('576', '3', '亿美软通', 'emay', 'notify_channel_sms_provider', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-12-21 10:12:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-05 16:49:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('577', '3', '容连云', 'cloopen', 'notify_channel_sms_provider', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-12-21 10:13:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-05 16:49:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('578', '3', '京东云', 'jdcloud', 'notify_channel_sms_provider', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-12-21 10:13:37.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-05 16:50:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('579', '3', '网易云', 'netease', 'notify_channel_sms_provider', NULL, 'default', 'N', '1', 'admin', TO_TIMESTAMP('2023-12-21 10:13:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-05 16:50:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('580', '1', '微信小程序（订阅消息）', 'mini_program', 'notify_channel_wechat_provider', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-12-21 10:41:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-22 15:49:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '');
INSERT INTO "SYS_DICT_DATA" VALUES ('581', '1', '163', '163', 'notify_channel_email_provider', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-12-21 10:41:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-22 10:33:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '{"host":"","port":"","sender":"","password":""}');
INSERT INTO "SYS_DICT_DATA" VALUES ('582', '1', '阿里云', 'alibaba', 'notify_channel_voice_provider', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2023-12-27 14:58:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-11 09:59:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '');
INSERT INTO "SYS_DICT_DATA" VALUES ('583', '1', '工作通知', 'work', 'notify_channel_dingtalk_provider', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-01-10 15:32:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-02-02 17:19:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('584', '2', '群机器人', 'group_robot', 'notify_channel_dingtalk_provider', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-01-10 15:32:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-22 15:47:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('585', '3', '营销通知', 'marketing', 'notify_service_code', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-01-11 09:56:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-25 14:37:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('586', '2', '腾讯云', 'tencent', 'notify_channel_voice_provider', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-01-11 09:59:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('587', '1', '文本', 'text', 'dingtalk_msg_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-01-22 11:42:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('588', '2', 'markdown类型', 'markdown', 'dingtalk_msg_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-01-22 11:43:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('589', '2', '链接消息', 'link', 'dingtalk_msg_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-01-22 11:44:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('590', '2', '企业微信应用消息', 'wecom_apply', 'notify_channel_wechat_provider', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-01-22 15:40:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-22 17:06:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('591', '3', '企业微信群机器人', 'wecom_robot', 'notify_channel_wechat_provider', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-01-22 15:40:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-22 15:40:38.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('592', '1', '文本', 'text', 'wecom_msg_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-01-22 15:51:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('593', '2', 'markdown', 'markdown', 'wecom_msg_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-01-22 15:52:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('595', '4', '图文', 'news', 'wecom_msg_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-01-22 15:52:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('596', '1', '厂商', '1', 'department_type', NULL, 'success', 'N', '0', 'admin', TO_TIMESTAMP('2024-02-29 14:07:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-20 11:55:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '2,3,4');
INSERT INTO "SYS_DICT_DATA" VALUES ('597', '2', '生产厂商', '2', 'department_type', NULL, 'primary', 'N', '0', 'admin', TO_TIMESTAMP('2024-02-29 14:09:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-20 11:55:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '3,4');
INSERT INTO "SYS_DICT_DATA" VALUES ('598', '2', '经销商', '3', 'department_type', NULL, 'warning', 'N', '0', 'admin', TO_TIMESTAMP('2024-02-29 14:09:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-20 11:55:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '3,4');
INSERT INTO "SYS_DICT_DATA" VALUES ('599', '4', '服务商', '4', 'department_type', NULL, 'info', 'N', '0', 'admin', TO_TIMESTAMP('2024-02-29 14:09:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-20 11:55:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '4');
INSERT INTO "SYS_DICT_DATA" VALUES ('600', '8', '微信开放平台公众号', 'wechat_open_public_account', 'iot_social_platform', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-03-08 17:56:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '感谢您关注蜂信物联！');
INSERT INTO "SYS_DICT_DATA" VALUES ('601', '4', '微信公众号', 'public_account', 'notify_channel_wechat_provider', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-03-09 11:11:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('602', '4', '网关子设备', '4', 'iot_device_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-28 01:37:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-05-28 10:55:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('603', '0', 'WIFI', '1', 'sub_gateway_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-28 11:31:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('604', '1', '以太网', '2', 'sub_gateway_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-28 11:31:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('605', '2', 'RS485', '3', 'sub_gateway_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-28 11:31:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('606', '3', 'RS232', '4', 'sub_gateway_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-28 11:32:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('607', '4', 'LoRa', '5', 'sub_gateway_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-28 11:32:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('608', '5', 'ZigBee', '6', 'sub_gateway_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-28 11:32:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('609', '4', 'NB-IoT', '5', 'iot_network_method', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-28 11:35:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-05-28 11:35:26.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('610', '0', '原值', '1', 'variable_operation_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 14:40:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('611', '1', '累计值', '2', 'variable_operation_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 14:40:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('612', '2', '平均值', '3', 'variable_operation_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 14:41:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('613', '3', '最大值', '4', 'variable_operation_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 14:41:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('614', '4', '最小值', '5', 'variable_operation_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 14:41:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('615', '0', '1分钟', '60', 'variable_operation_interval', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:00:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('616', '1', '3分钟', '180', 'variable_operation_interval', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:00:59.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-05-29 15:01:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('617', '2', '5分钟', '300', 'variable_operation_interval', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:01:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-05-29 15:01:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('618', '3', '10分钟', '600', 'variable_operation_interval', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:02:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('619', '4', '15分钟', '900', 'variable_operation_interval', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:02:47.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('620', '5', '20分钟', '1200', 'variable_operation_interval', ' ', 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:03:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-05-29 15:03:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('621', '6', '30分钟', '1800', 'variable_operation_interval', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:03:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('622', '7', '5小时', '18000', 'variable_operation_interval', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:04:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-05-29 15:05:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('623', '8', '时', 'hour', 'variable_operation_interval', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:06:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('624', '9', '日', 'day', 'variable_operation_interval', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:07:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('625', '10', '周', 'week', 'variable_operation_interval', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:08:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('626', '11', '月', 'month', 'variable_operation_interval', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:08:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('627', '0', '00时', '00', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:24:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('628', '1', '01时', '01', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:24:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('629', '2', '02时', '02', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:24:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('630', '3', '03时', '03', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:28:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('631', '4', '04时', '04', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:28:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('632', '5', '05时', '05', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:28:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('633', '6', '06时', '06', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:29:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('634', '7', '07时', '07', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:29:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('635', '8', '08时', '08', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:30:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('636', '9', '09时', '09', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:31:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('637', '10', '10时', '10', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:31:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('638', '11', '11时', '11', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:33:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('639', '12', '12时', '12', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:34:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-05-29 15:34:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('640', '13', '13时', '13', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:34:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('641', '14', '14时', '14', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:34:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('642', '15', '15时', '15', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:34:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('643', '16', '16时', '16', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:35:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('644', '17', '17时', '17', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:35:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('645', '18', '18时', '18', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:35:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('646', '19', '19时', '19', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:36:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('647', '20', '20时', '20', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('648', '21', '21时', '21', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:36:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('649', '22', '22时', '22', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:36:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('650', '23', '23时', '23', 'variable_operation_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:36:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('651', '0', '周一', '1', 'variable_operation_week', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:41:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('652', '1', '周二', '2', 'variable_operation_week', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:41:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('653', '2', '周三', '3', 'variable_operation_week', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:41:47.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('654', '3', '周四', '4', 'variable_operation_week', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:42:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('655', '4', '周五', '5', 'variable_operation_week', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:42:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('656', '5', '周六', '6', 'variable_operation_week', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:42:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('657', '6', '周日', '7', 'variable_operation_week', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:42:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('658', '0', '1日', '1', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:49:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('659', '1', '2日', '2', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:49:38.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('660', '2', '3日', '3', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:51:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('661', '3', '4日', '4', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:52:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('662', '4', '5日', '5', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:52:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('663', '5', '6日', '6', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:52:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('664', '6', '7日', '7', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:52:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('665', '7', '8日', '8', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:53:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('666', '8', '9日', '9', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:53:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('667', '9', '10日', '10', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:53:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('668', '10', '11日', '11', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:53:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('669', '11', '12日', '12', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:54:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('670', '12', '13日', '13', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:54:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('671', '13', '14日', '14', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:54:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('672', '14', '15日', '15', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:54:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('673', '15', '16日', '16', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:54:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('674', '16', '17日', '17', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:55:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('675', '17', '18日', '18', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:55:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('676', '18', '19日', '19', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:55:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('677', '19', '20日', '20', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:56:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('678', '20', '21日', '21', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:56:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('679', '21', '22日', '22', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:56:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('680', '22', '23日', '23', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:56:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('681', '23', '24日', '24', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:57:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('682', '0', '25日', '25', 'variable_operation_day', '24', 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:57:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('683', '25', '26日', '26', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:57:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('684', '24', '25日', '25', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:57:59.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('685', '26', '27日', '27', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:58:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('686', '27', '28日', '28', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:58:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('687', '28', '29日', '29', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:58:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('688', '29', '30日', '30', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:59:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('689', '30', '31日', '31', 'variable_operation_day', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:59:37.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('690', '0', '设备数据', '1', 'device_status_deter', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-30 20:12:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-27 00:44:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('691', '1', '网关', '2', 'device_status_deter', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-30 20:12:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-27 00:44:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('692', '3', '10分钟', '600', 'iot_modbus_poll_time', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-05-30 20:20:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-05-30 20:21:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('693', '5', 'http接入', '5', 'rule_script_event', NULL, 'primary', 'N', '0', 'admin', TO_TIMESTAMP('2024-07-22 11:56:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-07-22 11:57:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('737', '6', 'MQTT', 'mqtt', 'notify_channel_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-12-30 14:11:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-12-30 14:11:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('738', '0', '网页通知', 'web', 'notify_channel_mqtt_provider', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-12-30 14:14:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('739', '5', 'HTTP', 'HTTP', 'iot_transport_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-12-30 14:14:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('740', '1', '分包拉取', '1', 'iot_firmware_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-12-30 14:14:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '', NULL, NULL);
INSERT INTO "SYS_DICT_DATA" VALUES ('741', '2', 'HTTP', '2', 'iot_firmware_type', NULL, 'default', 'N', '0', 'admin', TO_TIMESTAMP('2024-12-30 14:14:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '', NULL, NULL);

-- ----------------------------
-- Primary Key structure for table SYS_DICT_DATA
-- ----------------------------
ALTER TABLE "SYS_DICT_DATA" ADD CONSTRAINT "SYS_C0012607" PRIMARY KEY ("DICT_CODE");

-- ----------------------------
-- Checks structure for table SYS_DICT_DATA
-- ----------------------------
ALTER TABLE "SYS_DICT_DATA" ADD CONSTRAINT "SYS_C0012606" CHECK ("DICT_CODE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SYS_DICT_DATA
-- ----------------------------
CREATE TRIGGER "SYS_DICT_DATA_DICT_CODE_TRIG" BEFORE INSERT OR UPDATE ON "SYS_DICT_DATA" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.dict_code IS NULL THEN
SELECT  sys_dict_data_dict_code_1SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(dict_code),0) INTO v_newVal FROM sys_dict_data;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT sys_dict_data_dict_code_1SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.dict_code := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SYS_DICT_DATA_TRANSLATE
-- ----------------------------
DROP TABLE "SYS_DICT_DATA_TRANSLATE";
CREATE TABLE "SYS_DICT_DATA_TRANSLATE" (
                                                     "ID" NUMBER(38,0) NOT NULL,
                                                     "ZH_CN" VARCHAR2(200 CHAR),
                                                     "EN_US" VARCHAR2(200 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_DICT_DATA_TRANSLATE"."ID" IS 'ID';
COMMENT ON COLUMN "SYS_DICT_DATA_TRANSLATE"."ZH_CN" IS 'zh_CN';
COMMENT ON COLUMN "SYS_DICT_DATA_TRANSLATE"."EN_US" IS 'en_US';
COMMENT ON TABLE "SYS_DICT_DATA_TRANSLATE" IS '字典数据翻译表';

-- ----------------------------
-- Records of SYS_DICT_DATA_TRANSLATE
-- ----------------------------
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('1', '男', 'man');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('2', '女', 'woman');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('3', '未知', 'Unknown');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('4', '显示', 'display');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('5', '隐藏', 'hide');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('6', '正常', 'normal');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('7', '停用', 'Deactivated');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('8', '正常', 'normal');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('9', '暂停', 'Time out');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('10', '默认', 'default');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('11', '系统', 'system');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('12', '是', 'be');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('13', '否', 'not');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('14', '通知', 'notice');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('15', '公告', 'announcement');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('16', '正常', 'normal');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('17', '关闭', 'Shut down');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('18', '新增', 'New');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('19', '修改', 'revise');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('20', '删除', 'Delete');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('21', '授权', 'authorization');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('22', '导出', 'Export');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('23', '导入', 'Import');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('24', '强退', 'Forced retreat');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('25', '生成代码', 'Generate code');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('26', '清空数据', 'Clear the data');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('27', '成功', 'succeed');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('28', '失败', 'fail');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('100', '属性', 'attribute');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('101', '功能', 'function');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('102', '事件', 'event');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('103', '整数', 'integer');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('104', '小数', 'decimal fraction');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('105', '布尔', 'Boolean');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('106', '枚举', 'enumerate');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('107', '字符串', 'string');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('108', '是', 'be');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('109', '否', 'not');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('110', '数组', 'array');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('111', '未发布', 'Unpublished');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('112', '已发布', 'Published');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('113', '直连设备', 'Directly connected devices');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('114', '网关设备', 'Gateway devices');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('116', 'WIFI', 'WIFI');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('117', '蜂窝(2G/3G/4G/5G)', 'Cellular (2G/3G/4G/5G)');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('118', '以太网', 'Ethernet');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('119', '简单认证', 'Simple authentication');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('120', '加密认证', 'Cryptographic authentication');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('122', 'ESP8266/Arduino', 'ESP8266/Arduino');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('123', 'ESP32/Arduino', 'ESP32/Arduino');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('124', 'ESP8266/RTOS', 'ESP8266/RTOS');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('127', 'ESP32/ESP-IDF', 'ESP32/ESP-IDF');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('128', '树莓派/Python', 'Raspberry Pi/Python');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('129', '未激活', 'Not activated');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('130', '禁用', 'disable');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('131', '在线', 'online');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('132', '离线', 'offline');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('133', '启用', 'enable');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('134', '禁用', 'disable');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('135', '提醒通知', 'Reminder notifications');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('136', '轻微问题', 'Minor issues');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('137', '严重警告', 'Serious warning');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('138', '不需要处理', 'No processing is required');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('139', '未处理', 'Not processed');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('140', '已处理', 'Processed');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('141', '属性上报', 'Attribute escalation');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('142', '事件上报', 'Event escalation');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('143', '功能调用', 'Function calls');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('144', '设备升级', 'Equipment upgrades');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('145', '设备上线', 'The device goes online');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('146', '设备离线', 'The device is offline');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('147', '其他', 'other');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('148', '安卓/Android', 'Android/Android');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('149', '其他', 'other');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('150', '小度平台', 'Small platform');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('151', '天猫精灵', 'Tmall Genie');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('152', '小米小爱', 'Xiaomi Xiaoai');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('153', '其他平台', 'Other platforms');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('154', '微信登录', 'WeChat login');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('155', 'QQ登录', 'QQ login');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('156', '启用', 'enable');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('157', '未启用', 'Not enabled');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('158', '支付宝', 'Alipay');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('159', '自动定位', 'Auto-target');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('160', '设备定位', 'Device positioning');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('161', '自定义位置', 'Custom location');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('162', '简单+加密', 'Simple + Encrypted');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('163', '未使用', 'Unused');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('164', '已使用', 'Used');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('165', '对象', 'object');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('166', '监控设备', 'Monitor the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('167', '未使用', 'Unused');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('168', '在线', 'online');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('169', 'DVR', 'DVR');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('170', 'NVR', 'NVR');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('171', '报警控制器', 'Alarm controller');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('172', '摄像机', 'camera');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('173', 'IPC', 'IPC');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('174', '显示器', 'display');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('175', '报警输入设备', 'Alarm input device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('176', '报警输出设备', 'Alarm output device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('177', '语音输入设备', 'Voice input devices');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('178', '语音输出设备', 'Voice output devices');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('179', '移动传输设备', 'Mobile Transmission Devices');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('180', '报警控制器', 'Alarm controller');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('181', '摄像机', 'camera');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('182', 'IPC', 'IPC');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('183', '显示器', 'display');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('184', '报警输入设备', 'Alarm input device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('185', '报警输出设备', 'Alarm output device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('186', '语音输入设备', 'Voice input devices');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('187', '语音输出设备', 'Voice output devices');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('188', '移动传输设备', 'Mobile Transmission Devices');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('189', '离线', 'offline');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('190', '禁用', 'disable');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('191', '云端轮询', 'Cloud polling');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('192', '边缘采集', 'Edge acquisition');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('193', '1分钟', '1 minute');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('194', '2分钟', '2 minutes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('195', '5分钟', '5 minutes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('196', '03(读保持寄存器)', '03 (Read Hold Register)');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('197', '01(读线圈)', '01 (Reading coil)');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('198', 'MQTT', 'MQTT');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('199', 'TCP', 'TCP');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('200', 'COAP', 'COAP');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('201', 'UDP', 'UDP');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('230', '其他', 'other');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('231', '事件上报', 'Event escalation');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('232', '设备上线', 'The device goes online');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('233', '设备离线', 'The device is offline');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('234', '服务下发', 'Service delivery');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('235', '属性获取', 'Attribute acquisition');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('236', 'OTA升级', 'OTA upgrades');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('237', '读写', 'Read and write');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('238', '只读', 'read only');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('239', '全部设备', 'All equipment');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('240', '指定设备', 'Specify the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('241', 'GB28181', 'GB28181');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('242', '02(读离散量输入)', '02 (Read Discrete Input)');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('243', '04(读输入寄存器)', '04 (Read Input Register)');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('244', '微信开放平台网站应用', 'WeChat open platform website application');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('245', '微信开放平台移动应用', 'WeChat open platform mobile application');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('246', '微信开放平台小程序', 'WeChat Open Platform Mini Program');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('247', '微信开放平台网站应用个人中心绑定', 'WeChat open platform website application personal center binding');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('248', '16位 无符号', '16-bit unsigned');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('249', '16位 有符号', '16-bit signed');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('250', '32位 有符号(ABCD)', '32-bit Signed (ABCD)');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('251', '32位 有符号(CDAB)', '32-bit Signed (CDAB)');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('252', '32位 无符号(ABCD)', '32-bit Unsigned (ABCD)');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('253', '32位 无符号(CDAB)', '32-bit Unsigned (CDAB)');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('254', '32位 浮点数(ABCD)', '32-bit floating-point (ABCD)');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('255', '32位 浮点数(CDAB)', '32-bit Floating-Point (CDAB)');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('257', 'Java脚本引擎', 'Java Scripting Engine');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('258', 'JavaScript脚本引擎', 'JavaScript scripting engine');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('259', '普通脚本节点', 'Normal script nodes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('260', '选择脚本节点 (switch)', 'Selecting a Script Node (switch)');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('261', '条件脚本节点 (if)', 'Conditional Script Node (if)');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('262', '数量循环节点 (for)', 'Quantity Cycle Node (for)');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('263', '条件循环节点 (while)', 'Conditional Loop Node (while)');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('264', '退出循环节点 (break)', 'Exit Loop Node (Break)');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('265', 'groovy脚本引擎', 'Groovy scripting engine');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('266', '其他', 'other');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('267', '电灯', 'lamp');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('268', '空调', 'air conditioning');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('269', '窗帘', 'curtain');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('270', '窗纱', 'Screens');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('271', '插座', 'receptacle');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('272', '开关', 'switch');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('273', '冰箱', 'Refrigerator');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('274', '净水器', 'Water purifiers');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('275', '加湿器', 'Humidifier');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('276', '除湿器', 'Dehumidifiers');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('277', '电磁炉', 'Induction');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('278', '空气净化器', 'air purifier');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('279', '洗衣机', 'washer');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('280', '热水器', 'water heater');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('281', '燃气灶', 'Gas stoves');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('282', '电视机', 'television set');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('283', '网络盒子', 'Cyberbox');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('284', '油烟机', 'Range hood');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('285', '电风扇', 'fan');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('286', '投影仪', 'Projector');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('287', '扫地机器人', 'Robot vacuums');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('288', '热水壶', 'Kettle');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('289', '微波炉', 'microwave oven');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('290', '压力锅', 'pressure cooker');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('291', '电饭煲', 'rice cooker');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('292', '破壁机', 'Wall breaker');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('293', '新风机', 'Fresh air fan');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('294', '晾衣架', 'Drying racks');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('295', '烤箱设备', 'Oven equipment');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('296', '蒸烤箱', 'Steam oven');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('297', '蒸箱', 'Steamer');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('298', '电暖器', 'Electric heaters');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('299', '开窗器', 'Window opener');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('300', '摄像头', 'Camera');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('301', '相机', 'camera');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('302', '机器人', 'robot');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('303', '打印机', 'printer');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('304', '饮水机', 'Water dispenser');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('305', '鱼缸', 'fish tank');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('306', '浇花器', 'Flower waterer');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('307', '机顶盒', 'Stb');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('308', '香薰机', 'Aroma diffuser');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('309', 'DVD', 'DVD');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('310', '鞋柜', 'Shoe cabinet');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('311', '走步机', 'Walking machine');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('312', '跑步机', 'Treadmill');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('313', '床', 'bed');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('314', '浴霸', 'Bath bombs');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('315', '花洒', 'Showerhead');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('316', '浴缸', 'bathtub');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('317', '消毒柜', 'Sterilizer');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('318', '洗碗机', 'dishwasher');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('319', '沙发品类', 'Sofa category');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('320', '门铃', 'doorbell');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('321', '电梯', 'lift');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('322', '体重秤', 'Scales');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('323', '体脂秤', 'Body fat scales');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('324', '壁挂炉', 'Wall-hung boiler');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('325', '特定设备的组合场景', 'A combination of device-specific scenarios');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('326', '特定设备的组合场景', 'A combination of device-specific scenarios');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('327', '打开', 'Open it');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('328', '关闭', 'Shut down');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('329', '定时打开', 'Turn on at a timer');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('330', '定时关闭', 'Timed shutdown');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('331', '查询开关状态', 'Query the switching status');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('332', '设备启动', 'The device boots up');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('333', '设置灯光亮度', 'Set the brightness of the light');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('334', '调亮灯光', 'Turn the lights on');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('335', '调暗灯光', 'Dim the lights');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('336', '升高温度', 'Increase the temperature');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('337', '降低温度', 'Reduce the temperature');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('338', '设置温度', 'Set the temperature');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('339', '查询温度（当前温度和目标温度）', 'Query temperature (current temperature and target temperature)');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('340', '查询当前温度', 'Query the current temperature');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('341', '查询目标温度', 'Query the target temperature');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('342', '设置湿度模式', 'Set the humidity mode');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('343', '增大湿度', 'Increase humidity');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('344', '降低湿度', 'Reduce humidity');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('345', '查询湿度', 'Check the humidity');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('346', '查询目标湿度', 'Query the target humidity');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('347', '查询二氧化碳含量', 'Check the carbon dioxide content');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('348', '暂停', 'Time out');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('349', '继续', 'Go on');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('350', '调高音量', 'Turn up the volume');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('351', '调低音量', 'Turn down the volume');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('352', '设置音量', 'Set the volume');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('353', '设置静音状态', 'Set the mute status');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('354', '查询设备所在位置', 'Query the location of the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('355', '设置清扫位置', 'Set the sweeping position');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('356', '上锁/解锁', 'Locked/unlocked');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('357', '设置颜色', 'Set the color');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('358', '查询电量', 'Query the battery level');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('359', '开始充电', 'Start charging');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('360', '停止充电', 'Stop charging');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('361', '设置灯光色温', 'Set the color temperature of the light');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('362', '增高灯光色温', 'Increase the color temperature of the light');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('363', '降低灯光色温', 'Reduce the color temperature of the light');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('364', '查询风速', 'Query the wind speed');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('365', '设置风速', 'Set the wind speed');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('366', '增加风速', 'Increase wind speed');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('367', '减小风速', 'Reduce wind speed');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('368', '查询空气质量', 'Check the air quality');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('369', '设置吸力', 'Set the suction');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('370', '设置水量', 'Set the amount of water');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('371', '上一个频道', 'Previous channel');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('372', '下一个频道', 'Next channel');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('373', '设置频道', 'Set up a channel');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('374', '返回上个频道', 'Go back to the previous channel');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('375', '设置移动方向', 'Set the direction of movement');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('376', '设置模式', 'Set the mode');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('377', '取消设置的模式', 'Cancel the set mode');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('378', '定时设置模式', 'Timed setting mode');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('379', '定时取消设置的模式', 'The mode of scheduled unsetting');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('380', '查询水质', 'Check the water quality');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('381', '设置电梯楼层', 'Set up elevator floors');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('382', '电梯按下', 'The elevator presses');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('383', '电梯按上', 'The elevator presses on');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('384', '升高高度', 'Raise height');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('385', '降低高度', 'Lower the height');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('386', '查询运行时间', 'Query the run time');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('387', '查询剩余时间', 'Query the remaining time');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('388', '查询运行状态', 'Query the running status');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('389', '增加速度', 'Increase speed');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('390', '降低速度', 'Reduce the speed');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('391', '设置速度', 'Set the speed');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('392', '获取速度', 'Get speed');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('393', '设置档位', 'Set the gear');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('394', '查询设备所有状态', 'Query all device statuses');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('395', '查询PM2.5', 'Check PM2. 5');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('396', '查询PM10', 'Query PM10');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('397', '获取跑步信息', 'Get running information');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('398', '设置水流', 'Set the water flow');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('399', '执行自定义复杂动作', 'Perform custom complex actions');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('400', '设备定时', 'Device timing');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('401', '取消设备定时', 'Cancel the device schedule');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('402', '设备复位', 'The device resets');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('403', '设置功率', 'Set the power');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('404', '增大功率', 'Increase the power');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('405', '减小功率', 'Reduce power');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('406', '查询油量', 'Check the oil level');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('407', '打印', 'print');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('408', '设置摆风角度', 'Set the swing angle');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('409', '增大雾量', 'Increase the amount of fog');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('410', '见效雾量', 'Effective fog volume');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('411', '设置雾量', 'Set the amount of fog');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('412', '打开灶眼', 'Open the hearth');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('413', '关闭灶眼', 'Close the hearth');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('414', '定时打开灶眼', 'Open the stove eye regularly');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('415', '定时关闭灶眼', 'Close the burner regularly');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('416', '设备的开关状态属性', 'The on/off status properties of the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('417', '设备的亮度属性', 'The brightness attribute of the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('418', '设备对应的温度属性', 'The temperature attribute of the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('419', '湿度属性', 'Humidity attributes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('420', '空气中CO2的浓度', 'The concentration of CO2 in the air');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('421', '设备的暂停属性', 'The pause properties of the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('422', '设备的音量属性', 'The volume attribute of the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('423', '发声设备当前的静音属性', 'The current mute properties of the sounding device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('424', '设备的位置属性', 'The location properties of the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('425', '锁的状态属性', 'The state attribute of the lock');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('426', '设备的颜色', 'The color of the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('427', '设备电池的电量属性', 'The battery level attribute of the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('428', '自定义充电状态属性', 'Customize state-of-charge attributes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('429', '设备的色温属性', 'The color temperature properties of the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('430', '设备风速值属性', 'The wind speed value attribute of the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('431', '空气质量的属性', 'Attributes of air quality');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('432', '设备的吸力属性', 'Suction properties of the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('433', '设备的水量属性', 'The water volume attribute of the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('434', '电视频道属性', 'TV channel attributes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('435', '自定义方向属性', 'Custom orientation attributes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('436', '设备控制模式属性', 'Device control mode properties');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('437', '自定义水质属性', 'Customize water quality attributes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('438', '自定义楼梯属性', 'Customize stair properties');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('439', '自定义高度属性', 'Custom height attributes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('440', '自定义运行时间属性', 'Customize runtime properties');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('441', '自定义剩余时间属性', 'Customize the time remaining attributes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('442', '自定义运行状态属性', 'Customize the running status properties');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('443', '设备速度值属性', 'Device speed value attributes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('444', '自定义档位属性', 'Customize gear properties');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('445', '设备的状态属性', 'The status properties of the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('446', '空气中PM2.5的含量', 'PM2 in the air. 5 content');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('447', '空气中PM10的含量', 'The amount of PM10 in the air');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('448', '运动信息属性', 'Motion information attributes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('449', '自定义水流属性', 'Customize water flow attributes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('450', '自定义复杂动作属性', 'Customize complex action attributes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('451', '自定义定时动作属性', 'Customize timed action properties');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('452', '自定义复位动作属性', 'Customize the properties of the reset action');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('453', '设备油箱的油量属性', 'The fuel level attribute of the device''s fuel tank');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('454', '设备的工作状态属性', 'The work status attribute of the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('455', '设备是否可达属性', 'Whether the device is reachable or not');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('456', '设备通电状态的属性', 'The properties of the power-on status of the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('457', '设备的功率属性', 'The power attribute of the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('458', '空气中总挥发性有机化合物的浓度', 'The concentration of total volatile organic compounds in the air');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('459', '空气中甲醛的浓度', 'The concentration of formaldehyde in the air');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('460', '百分比属性', 'Percentage attributes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('461', '日期和时间属性', 'Date and time attributes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('462', '设备可行驶距离属性', 'The distance that can be traveled by the device attributes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('463', '设备的名称属性', 'Name attribute of the device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('464', '折线图', 'Line chart');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('465', '柱状图', 'histogram');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('466', '饼图', 'Pie charts');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('467', '散点图', 'Scatter plot');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('468', 'K线图', 'Candlestick chart');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('469', '雷达图', 'Radar chart');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('470', '盒须图', 'Box whisker diagram');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('471', '热力图', 'Heatmap');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('472', '关系图', 'Diagrams');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('473', '水球图', 'Water polo diagram');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('474', '树图', 'Tree diagram');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('475', '矩形树图', 'Rectangular tree diagram');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('476', '旭日图', 'Diagram of the Rising Sun');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('477', '平行坐标系', 'Parallel coordinate system');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('478', '桑葚图', 'Mulberry diagram');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('479', '漏斗图', 'Funnel charts');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('480', '仪表图', 'Gauge diagram');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('481', '象形柱图', 'Pictogram bar chart');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('482', '主题河流', 'Theme river');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('483', '路径图', 'Road map');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('484', '3D柱图', '3D bar chart');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('485', '3D地图', '3D maps');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('486', '词云图', 'Word cloud diagrams');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('487', '其他图表', 'Other charts');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('488', '按钮', 'button');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('489', '指示灯', 'Light');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('490', '工业泵', 'Industrial pumps');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('491', '储蓄罐', 'Piggy bank');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('492', '电机', 'Motor');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('493', '电力符号', 'Electricity symbol');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('494', '阀门', 'valve');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('495', '反应器', 'reactor');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('496', '风机', 'Fans');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('497', '管道', 'pipeline');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('498', '建筑物', 'building');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('499', '锅炉', 'boiler');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('500', '换热站', 'Heat exchange station');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('501', '机械设备', 'Machinery and equipment');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('502', '交通', 'traffic');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('503', '警示与标志', 'Warnings & Signs');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('504', '卡片', 'card');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('505', '空调系统', 'Air conditioning system');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('506', '流体符号', 'Fluid symbols');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('507', '背景模版', 'Background templates');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('508', '人物', 'figure');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('509', '天气', 'Weather');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('510', '物料运输', 'Material transport');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('511', '仪表', 'appearance');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('512', '装饰', 'ornament');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('513', '自然', 'nature');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('514', '全景', 'panorama');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('515', '3D图画', '3D drawings');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('516', '960x600', '960x600');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('517', '1024x768', '1024x768');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('518', '1280x1024', '1280x1024');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('519', '1366x768', '1366x768');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('520', '1440x900', '1440x900');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('521', '1920x960', '1920x960');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('522', '1920x1080', '1920x1080');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('523', '2048x858', '2048x858');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('524', '2048x1080', '2048x1080');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('525', '3840x2160', '3840x2160');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('526', '3656x2664', '3656x2664');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('527', '4096x3112', '4096x3112');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('528', '授权码模式', 'Authorization code mode');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('529', '客户端模式', 'Client-side mode');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('530', '密码模式', 'Password mode');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('531', '简化模式', 'Simplified mode');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('532', '刷新Token', 'Refresh the token');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('533', '短信', 'Sms');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('535', '微信', 'Wechat');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('536', '钉钉', 'DingTalk');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('537', '语音', 'Voice');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('539', '阿里云', 'Alibaba Cloud');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('540', 'QQ', 'QQ');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('543', '邮箱', 'mailbox');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('554', '设备告警', 'Device alarms');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('558', '验证码', 'Captcha');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('560', '设备上报', 'The device is escalated');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('561', '平台下发', 'Distributed by the platform');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('562', '设备上线', 'The device goes online');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('563', '设备离线', 'The device is offline');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('564', '数据流', 'data stream');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('565', '触发器', 'trigger');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('566', '执行动作', 'Perform the action');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('567', '消息重发', 'The message is retransmitted');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('568', '消息通知', 'Message notifications');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('569', 'Http推送', 'HTTP push');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('570', 'Mqtt桥接', 'MQTT bridging');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('571', '数据库存储', 'Database storage');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('572', '腾讯云', 'Tencent Cloud');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('573', '天翼云', 'Wing clouds');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('574', '华为云', 'HUAWEI CLOUD');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('575', '云片', 'Cloud sheets');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('576', '亿美软通', 'Yimei SoftStone');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('577', '容连云', 'Rong Lianyun');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('578', '京东云', 'JD Cloud');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('579', '网易云', 'NetEase Cloud');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('580', '微信小程序（订阅消息）', 'WeChat Mini Program (Subscribe to Messages) ');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('581', '163', '163');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('582', '阿里云', 'Alibaba Cloud');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('583', '工作通知', 'Job Notices');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('584', '群机器人', 'Swarm bots');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('585', '营销通知', 'Marketing Notifications');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('586', '腾讯云', 'Tencent Cloud');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('587', '文本', 'text');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('588', 'markdown类型', 'Markdown type');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('589', '链接消息', 'Link messages');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('590', '企业微信应用消息', 'WeCom app messages');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('591', '企业微信群机器人', 'Enterprise WeChat group robot');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('592', '文本', 'text');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('593', 'markdown', 'markdown');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('595', '图文', 'Graphic');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('596', '厂商', 'Manufacturers');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('597', '生产厂商', 'Manufacturer');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('598', '经销商', 'dealer');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('599', '服务商', 'Service');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('600', '微信开放平台公众号', 'WeChat open platform public account');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('601', '微信公众号', 'WeChat public account');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('602', '网关子设备', 'Gateway sub-device');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('603', 'WIFI', 'WIFI');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('604', '以太网', 'Ethernet');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('605', 'RS485', 'RS485');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('606', 'RS232', 'RS232');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('607', 'LoRa', 'LoRa');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('608', 'ZigBee', 'ZigBee');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('609', 'NB-IoT', 'NB-IoT');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('610', '原值', 'Original value');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('611', '累计值', 'Cumulative');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('612', '平均值', 'average value');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('613', '最大值', 'maximum');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('614', '最小值', 'minimum');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('615', '1分钟', '1 minute');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('616', '3分钟', '3 minutes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('617', '5分钟', '5 minutes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('618', '10分钟', '10 minutes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('619', '15分钟', '15 minutes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('620', '20分钟', '20 minutes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('621', '30分钟', '30 minutes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('622', '5小时', '5 hours');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('623', '时', 'time');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('624', '日', 'day');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('625', '周', 'week');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('626', '月', 'month');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('627', '00时', '00 hours');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('628', '01时', '01 hour');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('629', '02时', '02 hours');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('630', '03时', '03 hours');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('631', '04时', '04 hours');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('632', '05时', '05 hours');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('633', '06时', '06 hours');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('634', '07时', '07 hours');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('635', '08时', '08 hours');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('636', '09时', '09 hours');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('637', '10时', '10 o''clock');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('638', '11时', '11 o''clock');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('639', '12时', '12 o''clock');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('640', '13时', '13 o''clock');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('641', '14时', '14 o''clock');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('642', '15时', '15 o''clock');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('643', '16时', '16 o''clock');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('644', '17时', '17 o''clock');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('645', '18时', '18 o''clock');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('646', '19时', '19 o''clock');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('647', '20时', '20 o''clock');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('648', '21时', '21 o''clock');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('649', '22时', '22 o''clock');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('650', '23时', '23 o''clock');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('651', '周一', 'Monday');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('652', '周二', 'Tuesday');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('653', '周三', 'Wednesday');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('654', '周四', 'Thursday');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('655', '周五', 'Friday');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('656', '周六', 'Saturday');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('657', '周日', 'Sunday');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('658', '1日', '1 day');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('659', '2日', '2nd');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('660', '3日', '3rd');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('661', '4日', '4th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('662', '5日', '5th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('663', '6日', '6th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('664', '7日', '7th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('665', '8日', '8th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('666', '9日', '9th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('667', '10日', '10th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('668', '11日', '11th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('669', '12日', '12th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('670', '13日', '13th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('671', '14日', '14th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('672', '15日', '15th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('673', '16日', '16th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('674', '17日', '17th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('675', '18日', '18th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('676', '19日', '19th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('677', '20日', '20th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('678', '21日', '21st');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('679', '22日', '22nd');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('680', '23日', '23rd');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('681', '24日', '24th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('682', '25日', '25th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('683', '26日', '26th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('684', '25日', '25th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('685', '27日', '27th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('686', '28日', '28th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('687', '29日', '29th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('688', '30日', '30th');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('689', '31日', '31st');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('690', '设备数据', 'Device Data');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('691', '网关', 'gateway');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('692', '10分钟', '10 minutes');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('693', 'http接入', 'HTTP access');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('694', 'mqtt接入', 'MQTT access');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('695', '失败', 'fail');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('696', '成功', 'success');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('697', '开关按钮', 'switch button');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('698', '指示灯', 'indicator light');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('699', '基本形状', 'Basic shape');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('700', '箭头图标', 'Arrow icon');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('701', '卡片图片', 'Card image');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('702', '字母数字', 'Alphanumeric characters');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('703', '背景图片', 'Background image');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('704', '装饰框', 'Decorative frame');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('705', '天气符号', 'Weather symbols');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('706', '自然植物', 'Natural plants');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('707', '交通标志', 'traffic sign');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('708', '建筑物', 'building');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('709', '阀门图标', 'Valve icon');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('710', '圆形管道', 'Circular pipeline');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('711', '方形管道', 'Square pipeline');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('712', '软管图标', 'Hose icon');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('713', '传送带', 'Conveyor belt');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('714', '电子设备', 'Electronic devices');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('715', '罐体箱体', 'Tank body box');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('716', '化工罐塔', 'Chemical tank tower');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('717', '工业泵', 'Industrial pump');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('718', '水泵图片', 'Pump picture');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('719', '风机图标', 'Fan icon');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('720', '电机图标', 'Motor icon');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('721', '电力设施', 'Power facilities');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('722', '搅拌机', 'blender');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('723', '反应器', 'Reactor');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('724', '暖通空调', 'Heating, Ventilation, and Air Conditioning');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('725', '工业冷却', 'Industrial cooling');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('726', '工业加热', 'Industrial heating');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('727', '水处理设备', 'Water treatment equipment');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('728', '仪表设备', 'Instrument equipment');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('729', '机械设备', 'mechanical equipment');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('730', '控制柜', 'Control cabinet');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('731', '度量尺', 'Measuring ruler');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('732', '采矿图标', 'Mining icon');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('733', 'ISA符号', 'ISA symbol');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('734', '电气符号', 'Electrical symbols');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('735', '供暖符号', 'Heating symbol');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('736', '其他', 'other');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('737', 'MQTT', 'MQTT');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('738', '网页通知', 'Web Notifications');
INSERT INTO "SYS_DICT_DATA_TRANSLATE" VALUES ('739', 'HTTP', 'HTTP');
INSERT INTO "sys_dict_data_translate" VALUES ('740', '分包拉取', 'Subcontract Drawing');
INSERT INTO "sys_dict_data_translate" VALUES ('741', 'HTTP', 'HTTP');

-- ----------------------------
-- Primary Key structure for table SYS_DICT_DATA_TRANSLATE
-- ----------------------------
ALTER TABLE "SYS_DICT_DATA_TRANSLATE" ADD CONSTRAINT "SYS_C0012608" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table SYS_DICT_DATA_TRANSLATE
-- ----------------------------
ALTER TABLE "SYS_DICT_DATA_TRANSLATE" ADD CONSTRAINT "SYS_C0012438" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for SYS_DICT_TYPE
-- ----------------------------
DROP TABLE "SYS_DICT_TYPE";
CREATE TABLE "SYS_DICT_TYPE" (
                                           "DICT_ID" NUMBER(38,0) NOT NULL,
                                           "DICT_NAME" VARCHAR2(133 CHAR) DEFAULT '',
                                           "DICT_TYPE" VARCHAR2(133 CHAR) DEFAULT '',
                                           "STATUS" NUMBER(10,0) DEFAULT 0,
  "CREATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(666 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_DICT_TYPE"."DICT_ID" IS '字典主键';
COMMENT ON COLUMN "SYS_DICT_TYPE"."DICT_NAME" IS '字典名称';
COMMENT ON COLUMN "SYS_DICT_TYPE"."DICT_TYPE" IS '字典类型';
COMMENT ON COLUMN "SYS_DICT_TYPE"."STATUS" IS '状态（0正常 1停用）';
COMMENT ON COLUMN "SYS_DICT_TYPE"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "SYS_DICT_TYPE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "SYS_DICT_TYPE"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "SYS_DICT_TYPE"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "SYS_DICT_TYPE"."REMARK" IS '备注';
COMMENT ON TABLE "SYS_DICT_TYPE" IS '字典类型表';

-- ----------------------------
-- Records of SYS_DICT_TYPE
-- ----------------------------
INSERT INTO "SYS_DICT_TYPE" VALUES ('1', '用户性别', 'sys_user_sex', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '用户性别列表');
INSERT INTO "SYS_DICT_TYPE" VALUES ('2', '菜单状态', 'sys_show_hide', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '菜单状态列表');
INSERT INTO "SYS_DICT_TYPE" VALUES ('3', '系统开关', 'sys_normal_disable', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '系统开关列表');
INSERT INTO "SYS_DICT_TYPE" VALUES ('4', '任务状态', 'sys_job_status', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '任务状态列表');
INSERT INTO "SYS_DICT_TYPE" VALUES ('5', '任务分组', 'sys_job_group', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '任务分组列表');
INSERT INTO "SYS_DICT_TYPE" VALUES ('6', '系统是否', 'sys_yes_no', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '系统是否列表');
INSERT INTO "SYS_DICT_TYPE" VALUES ('7', '通知类型', 'sys_notice_type', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '通知类型列表');
INSERT INTO "SYS_DICT_TYPE" VALUES ('8', '通知状态', 'sys_notice_status', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '通知状态列表');
INSERT INTO "SYS_DICT_TYPE" VALUES ('9', '操作类型', 'sys_oper_type', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '操作类型列表');
INSERT INTO "SYS_DICT_TYPE" VALUES ('10', '系统状态', 'sys_common_status', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '登录状态列表');
INSERT INTO "SYS_DICT_TYPE" VALUES ('100', '物模型类别', 'iot_things_type', '0', 'admin', TO_TIMESTAMP('2021-12-12 16:39:47.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-15 22:49:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '属性、动作、事件');
INSERT INTO "SYS_DICT_TYPE" VALUES ('101', '数据类型', 'iot_data_type', '0', 'admin', TO_TIMESTAMP('2021-12-12 20:16:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-12 20:17:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'integer、decimal、bool、string、enum');
INSERT INTO "SYS_DICT_TYPE" VALUES ('102', '是否', 'iot_yes_no', '0', 'admin', TO_TIMESTAMP('2021-12-12 20:24:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-19 15:12:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '是、否');
INSERT INTO "SYS_DICT_TYPE" VALUES ('103', '产品状态', 'iot_product_status', '0', 'admin', TO_TIMESTAMP('2021-12-19 15:00:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '未发布、已发布（不能修改）');
INSERT INTO "SYS_DICT_TYPE" VALUES ('104', '设备类型', 'iot_device_type', '0', 'admin', TO_TIMESTAMP('2021-12-19 15:03:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '直连设备、网关子设备、网关设备');
INSERT INTO "SYS_DICT_TYPE" VALUES ('105', '联网方式', 'iot_network_method', '0', 'admin', TO_TIMESTAMP('2021-12-19 15:07:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-01-14 02:11:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'wifi、蜂窝(2G/3G/4G/5G)、以太网、其他');
INSERT INTO "SYS_DICT_TYPE" VALUES ('106', '认证方式', 'iot_vertificate_method', '0', 'admin', TO_TIMESTAMP('2021-12-19 15:11:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-06-05 12:57:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1=简单认证、2=加密认证、3=简单+加密');
INSERT INTO "SYS_DICT_TYPE" VALUES ('107', '设备芯片', 'iot_device_chip', '0', 'admin', TO_TIMESTAMP('2021-12-24 15:53:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-01-22 00:14:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'ESP8266、ESP32、树莓派');
INSERT INTO "SYS_DICT_TYPE" VALUES ('109', '设备状态', 'iot_device_status', '0', 'admin', TO_TIMESTAMP('2021-12-27 22:19:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-27 22:20:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '未激活、禁用、在线、离线');
INSERT INTO "SYS_DICT_TYPE" VALUES ('110', '是否启用', 'iot_is_enable', '0', 'admin', TO_TIMESTAMP('2022-01-12 23:24:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-01-12 23:24:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '启用、禁用');
INSERT INTO "SYS_DICT_TYPE" VALUES ('111', '告警类型', 'iot_alert_level', '0', 'admin', TO_TIMESTAMP('2022-01-13 14:56:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-01-13 15:04:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1=提醒通知，2=轻微问题，3=严重警告');
INSERT INTO "SYS_DICT_TYPE" VALUES ('112', '处理状态', 'iot_process_status', '0', 'admin', TO_TIMESTAMP('2022-01-13 15:04:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-01-13 15:06:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1=不需要处理,2=未处理,3=已处理');
INSERT INTO "SYS_DICT_TYPE" VALUES ('113', '设备日志类型', 'iot_device_log_type', '0', 'admin', TO_TIMESTAMP('2022-01-13 15:09:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-03-13 00:22:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1=属性上报，2=调用功能,3=事件上报，4=设备升级，5=设备上线，6=设备离线');
INSERT INTO "SYS_DICT_TYPE" VALUES ('114', 'Oauth开放平台', 'oauth_platform', '0', 'admin', TO_TIMESTAMP('2022-02-07 20:27:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-05-21 13:44:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1=小度，2=天猫精灵，3=小爱，4=其他');
INSERT INTO "SYS_DICT_TYPE" VALUES ('115', '第三方登录平台', 'iot_social_platform', '0', 'admin', TO_TIMESTAMP('2022-04-12 15:28:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-04-12 15:37:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'Wechat、QQ、');
INSERT INTO "SYS_DICT_TYPE" VALUES ('116', '第三方登录平台状态', 'iot_social_platform_status', '0', 'admin', TO_TIMESTAMP('2022-04-20 17:02:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-04-20 17:02:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '第三方登录平台状态');
INSERT INTO "SYS_DICT_TYPE" VALUES ('117', '设备定位方式', 'iot_location_way', '0', 'admin', TO_TIMESTAMP('2022-05-21 13:45:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-05-21 13:46:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1=IP自动定位，2=设备定位，3=自定义');
INSERT INTO "SYS_DICT_TYPE" VALUES ('118', '授权码状态', 'iot_auth_status', '0', 'admin', TO_TIMESTAMP('2022-06-07 17:38:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '1=未分配，2=使用中');
INSERT INTO "SYS_DICT_TYPE" VALUES ('119', 'SipID状态', 'sip_gen_status', '0', 'admin', TO_TIMESTAMP('2023-02-19 15:43:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-02-19 15:45:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '1=未使用，2=使用中');
INSERT INTO "SYS_DICT_TYPE" VALUES ('120', '监控设备类型', 'video_type', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:06:38.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('121', '通道类型', 'channel_type', '0', 'admin', TO_TIMESTAMP('2023-02-22 01:11:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('122', '轮询方式', 'data_collect_type', '0', 'admin', TO_TIMESTAMP('2023-02-28 13:55:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('123', '批量采集时间', 'iot_modbus_poll_time', '0', 'admin', TO_TIMESTAMP('2023-02-28 14:38:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('124', '寄存器功能码', 'iot_modbus_status_code', '0', 'admin', TO_TIMESTAMP('2023-02-28 15:19:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('125', '传输协议类型', 'iot_transport_type', '0', 'admin', TO_TIMESTAMP('2023-02-28 16:35:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('126', '设备事件类型', 'iot_event_type', '0', 'admin', TO_TIMESTAMP('2023-03-29 00:24:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('127', '指令下发类型', 'iot_function_type', '0', 'admin', TO_TIMESTAMP('2023-03-29 00:37:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('128', '读写类型', 'iot_data_read_write', '0', 'admin', TO_TIMESTAMP('2023-04-09 02:11:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('129', '升级范围', 'oat_update_limit', '0', 'admin', TO_TIMESTAMP('2023-04-09 23:51:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('130', '云存储平台类型', 'oss_platform_type', '0', 'admin', TO_TIMESTAMP('2023-04-12 00:26:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('131', 'modbus数据类型', 'iot_modbus_data_type', '0', 'admin', TO_TIMESTAMP('2023-09-04 13:54:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('132', '小度音箱关联设备', 'dueros_related_device', '0', 'admin', TO_TIMESTAMP('2023-09-22 09:45:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-09-22 09:45:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '小度音箱支持的设备、场景类型，在设备下配置关联');
INSERT INTO "SYS_DICT_TYPE" VALUES ('133', '小度音箱操作类型', 'dueros_actions', '0', 'admin', TO_TIMESTAMP('2023-09-22 09:45:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-09-22 09:45:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '小度音箱智能家居设备操作类型，在产品物模型下配置');
INSERT INTO "SYS_DICT_TYPE" VALUES ('134', '小度音箱设备属性', 'dueros_attributes', '0', 'admin', TO_TIMESTAMP('2023-09-22 09:45:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-09-22 09:45:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '物模型对应小度音箱智能家居关联设备属性，在产品物模型下配置');
INSERT INTO "SYS_DICT_TYPE" VALUES ('135', '组态图表类型', 'scada_echart_type', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:47:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-09 17:52:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('136', '组态图库类型', 'scada_gallery_type', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:50:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-10 10:56:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('140', '规则脚本类型', 'rule_script_type', '0', 'admin', TO_TIMESTAMP('2023-11-04 01:48:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-04 01:50:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('141', '规则脚本语言', 'rule_script_language', '0', 'admin', TO_TIMESTAMP('2023-11-04 01:50:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('142', '页面大小', 'sys_page_size', '0', 'admin', TO_TIMESTAMP('2023-11-09 17:50:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('143', 'Oauth授权模式', 'oauth_authorization_model', '0', 'admin', TO_TIMESTAMP('2023-11-27 14:21:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('144', '通知渠道类型', 'notify_channel_type', '0', 'admin', TO_TIMESTAMP('2023-11-30 09:45:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-30 09:45:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '通知渠道');
INSERT INTO "SYS_DICT_TYPE" VALUES ('145', '通知短信服务商', 'notify_channel_sms_provider', '0', 'admin', TO_TIMESTAMP('2023-11-30 09:45:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-30 09:45:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '短信服务商');
INSERT INTO "SYS_DICT_TYPE" VALUES ('146', '通知邮箱服务商', 'notify_channel_email_provider', '0', 'admin', TO_TIMESTAMP('2023-11-30 09:45:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-30 09:45:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '邮箱服务商');
INSERT INTO "SYS_DICT_TYPE" VALUES ('148', '通知业务编码', 'notify_service_code', '0', 'admin', TO_TIMESTAMP('2023-12-18 14:56:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('149', '规则脚本事件', 'rule_script_event', '0', 'admin', TO_TIMESTAMP('2023-12-19 11:33:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '1=设备上报，2=平台下发，3=设备上线，4=设备离线');
INSERT INTO "SYS_DICT_TYPE" VALUES ('150', '规则脚本用途', 'rule_script_purpose', '0', 'admin', TO_TIMESTAMP('2023-12-19 11:38:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '1=数据流，2=触发器，3=执行动作');
INSERT INTO "SYS_DICT_TYPE" VALUES ('151', '规则脚本动作', 'rule_script_action', '0', 'admin', TO_TIMESTAMP('2023-12-19 11:39:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '1=消息重发，2=消息通知，3=Http推送，4=Mqtt桥接，5=数据库存储');
INSERT INTO "SYS_DICT_TYPE" VALUES ('152', '通知微信服务商', 'notify_channel_wechat_provider', '0', 'admin', TO_TIMESTAMP('2023-12-21 10:37:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('153', '通知语音服务商', 'notify_channel_voice_provider', '0', 'admin', TO_TIMESTAMP('2023-12-27 14:58:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('154', '通知钉钉服务商', 'notify_channel_dingtalk_provider', '0', 'admin', TO_TIMESTAMP('2024-01-10 15:27:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('155', '通知钉钉消息类型', 'dingtalk_msg_type', '0', 'admin', TO_TIMESTAMP('2024-01-22 11:41:26.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-22 11:44:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('156', '通知企业微信消息类型', 'wecom_msg_type', '0', 'admin', TO_TIMESTAMP('2024-01-22 11:49:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-22 11:51:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('157', '机构类型', 'department_type', '0', 'admin', TO_TIMESTAMP('2024-02-29 11:38:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('158', '网关子设备通讯方式', 'sub_gateway_type', '0', 'admin', TO_TIMESTAMP('2024-05-28 11:31:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('159', '变量统计方式', 'variable_operation_type', '0', 'admin', TO_TIMESTAMP('2024-05-29 14:39:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('160', '时间周期间隔', 'variable_operation_interval', '0', 'admin', TO_TIMESTAMP('2024-05-29 14:58:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('161', '时间周期时间', 'variable_operation_time', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:23:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('162', '时间周期周', 'variable_operation_week', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:40:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('163', '时间周期日', 'variable_operation_day', '0', 'admin', TO_TIMESTAMP('2024-05-29 15:49:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('164', '设备状态判断方式', 'device_status_deter', '0', 'admin', TO_TIMESTAMP('2024-05-30 20:11:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '用于网关子设备的状态判断');
INSERT INTO "SYS_DICT_TYPE" VALUES ('165', '公共状态', 'common_status_type', '0', 'admin', TO_TIMESTAMP('2024-07-18 17:48:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('166', '通知MQTT服务商', 'notify_channel_mqtt_provider', '0', 'admin', TO_TIMESTAMP('2024-12-30 14:13:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_DICT_TYPE" VALUES ('167', '固件类型', 'iot_firmware_type', '0', 'admin', TO_TIMESTAMP('2025-02-13 16:11:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);

-- ----------------------------
-- Primary Key structure for table SYS_DICT_TYPE
-- ----------------------------
ALTER TABLE "SYS_DICT_TYPE" ADD CONSTRAINT "SYS_C0012609" PRIMARY KEY ("DICT_ID");

-- ----------------------------
-- Checks structure for table SYS_DICT_TYPE
-- ----------------------------
ALTER TABLE "SYS_DICT_TYPE" ADD CONSTRAINT "SYS_C0012439" CHECK ("DICT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SYS_DICT_TYPE
-- ----------------------------
CREATE TRIGGER "SYS_DICT_TYPE_DICT_ID_TRIG" BEFORE INSERT OR UPDATE ON "SYS_DICT_TYPE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.dict_id IS NULL THEN
SELECT  sys_dict_type_dict_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(dict_id),0) INTO v_newVal FROM sys_dict_type;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT sys_dict_type_dict_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.dict_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SYS_DICT_TYPE_TRANSLATE
-- ----------------------------
DROP TABLE "SYS_DICT_TYPE_TRANSLATE";
CREATE TABLE "SYS_DICT_TYPE_TRANSLATE" (
                                                     "ID" NUMBER(38,0) NOT NULL,
                                                     "ZH_CN" VARCHAR2(200 CHAR),
                                                     "EN_US" VARCHAR2(200 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_DICT_TYPE_TRANSLATE"."ID" IS 'ID';
COMMENT ON COLUMN "SYS_DICT_TYPE_TRANSLATE"."ZH_CN" IS 'zh_CN';
COMMENT ON COLUMN "SYS_DICT_TYPE_TRANSLATE"."EN_US" IS 'en_US';
COMMENT ON TABLE "SYS_DICT_TYPE_TRANSLATE" IS '字典类型翻译表';

-- ----------------------------
-- Records of SYS_DICT_TYPE_TRANSLATE
-- ----------------------------
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('1', '用户性别', 'User gender');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('2', '菜单状态', 'Menu status');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('3', '系统开关', 'System switches');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('4', '任务状态', 'Task status');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('5', '任务分组', 'Task grouping');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('6', '系统是否', 'Whether the system is');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('7', '通知类型', 'Notification type');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('8', '通知状态', 'Notification status');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('9', '操作类型', 'The type of operation');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('10', '系统状态', 'System status');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('100', '物模型类别', 'TSL model category');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('101', '数据类型', 'data type');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('102', '是否', 'Whether');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('103', '产品状态', 'Product status');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('104', '设备类型', 'Device type');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('105', '联网方式', 'Networking');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('106', '认证方式', 'Authentication method');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('107', '设备芯片', 'Device chips');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('109', '设备状态', 'Device status');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('110', '是否启用', 'Whether it is enabled');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('111', '告警类型', 'Alarm type');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('112', '处理状态', 'Processing status');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('113', '设备日志类型', 'Device log type');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('114', 'Oauth开放平台', 'OAuth Open Platform');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('115', '第三方登录平台', 'Third-party login platform');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('116', '第三方登录平台状态', 'Third-party login platform status');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('117', '设备定位方式', 'How the device is located');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('118', '授权码状态', 'Authorization code status');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('119', 'SipID状态', 'SipID status');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('120', '监控设备类型', 'Monitor device types');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('121', '通道类型', 'Channel type');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('122', '轮询方式', 'Polling method');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('123', '批量采集时间', 'Batch collection time');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('124', '寄存器功能码', 'Register function code');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('125', '传输协议类型', 'The type of transport protocol');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('126', '设备事件类型', 'Device event type');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('127', '指令下发类型', 'The type of command delivery');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('128', '读写类型', 'Read and write type');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('129', '升级范围', 'Scope of upgrade');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('130', '云存储平台类型', 'The type of cloud storage platform');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('131', 'modbus数据类型', 'Modbus data type');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('132', '小度音箱关联设备', 'Small speakers are associated with devices');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('133', '小度音箱操作类型', 'Small speaker operation type');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('134', '小度音箱设备属性', 'Small speaker device attributes');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('135', '组态图表类型', 'Configure the chart type');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('136', '组态图库类型', 'Configure the library type');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('140', '规则脚本类型', 'The type of rule script');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('141', '规则脚本语言', 'Rule scripting language');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('142', '页面大小', 'Page size');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('143', 'Oauth授权模式', 'OAuth authorization model');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('144', '通知渠道类型', 'The type of notification channel');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('145', '通知短信服务商', 'Notify the SMS provider');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('146', '通知邮箱服务商', 'Notify your email service provider');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('148', '通知业务编码', 'Notification service code');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('149', '规则脚本事件', 'Rule script events');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('150', '规则脚本用途', 'Rule script usage');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('151', '规则脚本动作', 'Rule script actions');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('152', '通知微信服务商', 'Notify the WeChat service provider');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('153', '通知语音服务商', 'Notify the voice service provider');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('154', '通知钉钉服务商', 'Notify the DingTalk service provider');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('155', '通知钉钉消息类型', 'Notification DingTalk message type');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('156', '通知企业微信消息类型', 'Notify the WeCom message type');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('157', '机构类型', 'Type of institution');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('158', '网关子设备通讯方式', 'The communication mode of the gateway sub-device');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('159', '变量统计方式', 'How variables are counted');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('160', '时间周期间隔', 'Time period intervals');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('161', '时间周期时间', 'Time period time');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('162', '时间周期周', 'Time period week');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('163', '时间周期日', 'Time period day');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('164', '设备状态判断方式', 'How to determine the device status');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('165', '公共状态', 'Public status');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('166', '通知MQTT服务商', 'Notify the MQTT service provider');
INSERT INTO "SYS_DICT_TYPE_TRANSLATE" VALUES ('167', '固件类型', 'Firmware Type');

-- ----------------------------
-- Primary Key structure for table SYS_DICT_TYPE_TRANSLATE
-- ----------------------------
ALTER TABLE "SYS_DICT_TYPE_TRANSLATE" ADD CONSTRAINT "SYS_C0012610" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table SYS_DICT_TYPE_TRANSLATE
-- ----------------------------
ALTER TABLE "SYS_DICT_TYPE_TRANSLATE" ADD CONSTRAINT "SYS_C0012440" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for SYS_JOB
-- ----------------------------
DROP TABLE "SYS_JOB";
CREATE TABLE "SYS_JOB" (
                                     "JOB_ID" NUMBER(38,0) NOT NULL,
                                     "JOB_NAME" VARCHAR2(85 CHAR) NOT NULL DEFAULT '',
                                     "JOB_GROUP" VARCHAR2(85 CHAR) NOT NULL DEFAULT 'DEFAULT',
                                     "INVOKE_TARGET" VARCHAR2(666 CHAR) NOT NULL,
                                     "CRON_EXPRESSION" VARCHAR2(340 CHAR) DEFAULT '',
                                     "MISFIRE_POLICY" VARCHAR2(26 CHAR) DEFAULT '3',
                                     "CONCURRENT" CHAR(1 CHAR) DEFAULT '1',
  "STATUS" NUMBER(10,0) DEFAULT 0,
  "CREATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(666 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_JOB"."JOB_ID" IS '任务ID';
COMMENT ON COLUMN "SYS_JOB"."JOB_NAME" IS '任务名称';
COMMENT ON COLUMN "SYS_JOB"."JOB_GROUP" IS '任务组名';
COMMENT ON COLUMN "SYS_JOB"."INVOKE_TARGET" IS '调用目标字符串';
COMMENT ON COLUMN "SYS_JOB"."CRON_EXPRESSION" IS 'cron执行表达式';
COMMENT ON COLUMN "SYS_JOB"."MISFIRE_POLICY" IS '计划执行错误策略（1立即执行 2执行一次 3放弃执行）';
COMMENT ON COLUMN "SYS_JOB"."CONCURRENT" IS '是否并发执行（0允许 1禁止）';
COMMENT ON COLUMN "SYS_JOB"."STATUS" IS '状态（0正常 1暂停）';
COMMENT ON COLUMN "SYS_JOB"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "SYS_JOB"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "SYS_JOB"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "SYS_JOB"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "SYS_JOB"."REMARK" IS '备注信息';
COMMENT ON TABLE "SYS_JOB" IS '定时任务调度表';

-- ----------------------------
-- Records of SYS_JOB
-- ----------------------------
INSERT INTO "SYS_JOB" VALUES ('5', '设备定时同步', 'SYSTEM', 'syncDeviceStatusJob.syncDeviceStatus', '0 0/1 * * * ? ', '1', '1', '0', 'admin', TO_TIMESTAMP('2023-03-24 10:57:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-07-20 10:00:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_JOB" VALUES ('6', '监控在线状态更新', 'SYSTEM', 'deviceJob.updateSipDeviceOnlineStatus(90)', '0 0/2 * * * ?', '1', '0', '0', 'admin', TO_TIMESTAMP('2023-04-14 16:18:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-07-20 10:00:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');

-- ----------------------------
-- Primary Key structure for table SYS_JOB
-- ----------------------------
ALTER TABLE "SYS_JOB" ADD CONSTRAINT "SYS_C0012611" PRIMARY KEY ("JOB_ID", "JOB_NAME", "JOB_GROUP");

-- ----------------------------
-- Checks structure for table SYS_JOB
-- ----------------------------
ALTER TABLE "SYS_JOB" ADD CONSTRAINT "SYS_C0012441" CHECK ("JOB_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_JOB" ADD CONSTRAINT "SYS_C0012442" CHECK ("JOB_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_JOB" ADD CONSTRAINT "SYS_C0012443" CHECK ("JOB_GROUP" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_JOB" ADD CONSTRAINT "SYS_C0012444" CHECK ("INVOKE_TARGET" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SYS_JOB
-- ----------------------------
CREATE TRIGGER "SYS_JOB_JOB_ID_TRIG" BEFORE INSERT OR UPDATE ON "SYS_JOB" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.job_id IS NULL THEN
SELECT  sys_job_job_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(job_id),0) INTO v_newVal FROM sys_job;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT sys_job_job_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.job_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SYS_JOB_LOG
-- ----------------------------
DROP TABLE "SYS_JOB_LOG";
CREATE TABLE "SYS_JOB_LOG" (
                                         "JOB_LOG_ID" NUMBER(38,0) NOT NULL,
                                         "JOB_NAME" VARCHAR2(85 CHAR) NOT NULL,
                                         "JOB_GROUP" VARCHAR2(85 CHAR) NOT NULL,
                                         "INVOKE_TARGET" VARCHAR2(666 CHAR) NOT NULL,
                                         "JOB_MESSAGE" VARCHAR2(666 CHAR),
                                         "STATUS" NUMBER(10,0) DEFAULT 0,
  "EXCEPTION_INFO" CLOB DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_JOB_LOG"."JOB_LOG_ID" IS '任务日志ID';
COMMENT ON COLUMN "SYS_JOB_LOG"."JOB_NAME" IS '任务名称';
COMMENT ON COLUMN "SYS_JOB_LOG"."JOB_GROUP" IS '任务组名';
COMMENT ON COLUMN "SYS_JOB_LOG"."INVOKE_TARGET" IS '调用目标字符串';
COMMENT ON COLUMN "SYS_JOB_LOG"."JOB_MESSAGE" IS '日志信息';
COMMENT ON COLUMN "SYS_JOB_LOG"."STATUS" IS '执行状态（0正常 1失败）';
COMMENT ON COLUMN "SYS_JOB_LOG"."EXCEPTION_INFO" IS '异常信息';
COMMENT ON COLUMN "SYS_JOB_LOG"."CREATE_TIME" IS '创建时间';
COMMENT ON TABLE "SYS_JOB_LOG" IS '定时任务调度日志表';

-- ----------------------------
-- Records of SYS_JOB_LOG
-- ----------------------------
INSERT INTO "SYS_JOB_LOG" VALUES ('1', 'modbus云端轮询', 'SYSTEM', 'propGetServiceImpl.fetchProperty', 'modbus云端轮询 总共耗时：3毫秒', '0', '', TO_TIMESTAMP('2024-02-07 15:32:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "SYS_JOB_LOG" VALUES ('2', 'modbus云端轮询', 'SYSTEM', 'propGetServiceImpl.fetchProperty', 'modbus云端轮询 总共耗时：44毫秒', '0', '', TO_TIMESTAMP('2024-02-07 15:32:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "SYS_JOB_LOG" VALUES ('3', 'modbus云端轮询', 'SYSTEM', 'propGetServiceImpl.fetchProperty', 'modbus云端轮询 总共耗时：32毫秒', '0', '', TO_TIMESTAMP('2024-02-07 15:32:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "SYS_JOB_LOG" VALUES ('4', 'modbus云端轮询', 'SYSTEM', 'propGetServiceImpl.fetchProperty', 'modbus云端轮询 总共耗时：15毫秒', '0', '', TO_TIMESTAMP('2024-02-07 15:32:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "SYS_JOB_LOG" VALUES ('5', 'modbus云端轮询', 'SYSTEM', 'propGetServiceImpl.fetchProperty', 'modbus云端轮询 总共耗时：3毫秒', '0', '', TO_TIMESTAMP('2024-02-07 15:33:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "SYS_JOB_LOG" VALUES ('6', 'modbus云端轮询', 'SYSTEM', 'propGetServiceImpl.fetchProperty', 'modbus云端轮询 总共耗时：44毫秒', '0', '', TO_TIMESTAMP('2024-02-07 15:33:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "SYS_JOB_LOG" VALUES ('7', 'modbus云端轮询', 'SYSTEM', 'propGetServiceImpl.fetchProperty', 'modbus云端轮询 总共耗时：32毫秒', '0', '', TO_TIMESTAMP('2024-02-07 15:33:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "SYS_JOB_LOG" VALUES ('8', 'modbus云端轮询', 'SYSTEM', 'propGetServiceImpl.fetchProperty', 'modbus云端轮询 总共耗时：14毫秒', '0', '', TO_TIMESTAMP('2024-02-07 15:33:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "SYS_JOB_LOG" VALUES ('9', 'modbus云端轮询', 'SYSTEM', 'propGetServiceImpl.fetchProperty', 'modbus云端轮询 总共耗时：3毫秒', '0', '', TO_TIMESTAMP('2024-02-07 15:34:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "SYS_JOB_LOG" VALUES ('10', 'modbus云端轮询', 'SYSTEM', 'propGetServiceImpl.fetchProperty', 'modbus云端轮询 总共耗时：44毫秒', '0', '', TO_TIMESTAMP('2024-02-07 15:34:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "SYS_JOB_LOG" VALUES ('11', 'modbus云端轮询', 'SYSTEM', 'propGetServiceImpl.fetchProperty', 'modbus云端轮询 总共耗时：31毫秒', '0', '', TO_TIMESTAMP('2024-02-07 15:34:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "SYS_JOB_LOG" VALUES ('12', '设备定时同步', 'SYSTEM', 'syncDeviceStatusJob.syncDeviceStatus', '设备定时同步 总共耗时：17毫秒', '0', '', TO_TIMESTAMP('2024-11-12 11:11:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "SYS_JOB_LOG" VALUES ('13', '设备定时同步', 'SYSTEM', 'syncDeviceStatusJob.syncDeviceStatus', '设备定时同步 总共耗时：13毫秒', '0', '', TO_TIMESTAMP('2024-11-12 11:12:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "SYS_JOB_LOG" VALUES ('14', '监控在线状态更新', 'SYSTEM', 'deviceJob.updateSipDeviceOnlineStatus(90)', '监控在线状态更新 总共耗时：86毫秒', '0', '', TO_TIMESTAMP('2024-11-12 11:12:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));
INSERT INTO "SYS_JOB_LOG" VALUES ('15', '设备定时同步', 'SYSTEM', 'syncDeviceStatusJob.syncDeviceStatus', '设备定时同步 总共耗时：8毫秒', '0', '', TO_TIMESTAMP('2024-11-12 11:13:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'));

-- ----------------------------
-- Primary Key structure for table SYS_JOB_LOG
-- ----------------------------
ALTER TABLE "SYS_JOB_LOG" ADD CONSTRAINT "SYS_C0012612" PRIMARY KEY ("JOB_LOG_ID");

-- ----------------------------
-- Checks structure for table SYS_JOB_LOG
-- ----------------------------
ALTER TABLE "SYS_JOB_LOG" ADD CONSTRAINT "SYS_C0012445" CHECK ("JOB_LOG_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_JOB_LOG" ADD CONSTRAINT "SYS_C0012446" CHECK ("JOB_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_JOB_LOG" ADD CONSTRAINT "SYS_C0012447" CHECK ("JOB_GROUP" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_JOB_LOG" ADD CONSTRAINT "SYS_C0012448" CHECK ("INVOKE_TARGET" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SYS_JOB_LOG
-- ----------------------------
CREATE TRIGGER "SYS_JOB_LOG_JOB_LOG_ID_TRIG" BEFORE INSERT OR UPDATE ON "SYS_JOB_LOG" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.job_log_id IS NULL THEN
SELECT  sys_job_log_job_log_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(job_log_id),0) INTO v_newVal FROM sys_job_log;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT sys_job_log_job_log_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.job_log_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SYS_LOGININFOR
-- ----------------------------
DROP TABLE "SYS_LOGININFOR";
CREATE TABLE "SYS_LOGININFOR" (
                                            "INFO_ID" NUMBER(38,0) NOT NULL,
                                            "USER_NAME" VARCHAR2(66 CHAR) DEFAULT '',
                                            "IPADDR" VARCHAR2(170 CHAR) DEFAULT '',
                                            "LOGIN_LOCATION" VARCHAR2(340 CHAR) DEFAULT '',
                                            "BROWSER" VARCHAR2(66 CHAR) DEFAULT '',
                                            "OS" VARCHAR2(66 CHAR) DEFAULT '',
                                            "STATUS" NUMBER(10,0) DEFAULT 0,
  "MSG" VARCHAR2(340 CHAR) DEFAULT '',
  "LOGIN_TIME" TIMESTAMP(6)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_LOGININFOR"."INFO_ID" IS '访问ID';
COMMENT ON COLUMN "SYS_LOGININFOR"."USER_NAME" IS '用户账号';
COMMENT ON COLUMN "SYS_LOGININFOR"."IPADDR" IS '登录IP地址';
COMMENT ON COLUMN "SYS_LOGININFOR"."LOGIN_LOCATION" IS '登录地点';
COMMENT ON COLUMN "SYS_LOGININFOR"."BROWSER" IS '浏览器类型';
COMMENT ON COLUMN "SYS_LOGININFOR"."OS" IS '操作系统';
COMMENT ON COLUMN "SYS_LOGININFOR"."STATUS" IS '登录状态（0成功 1失败）';
COMMENT ON COLUMN "SYS_LOGININFOR"."MSG" IS '提示消息';
COMMENT ON COLUMN "SYS_LOGININFOR"."LOGIN_TIME" IS '访问时间';
COMMENT ON TABLE "SYS_LOGININFOR" IS '系统访问记录';

-- ----------------------------
-- Records of SYS_LOGININFOR
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table SYS_LOGININFOR
-- ----------------------------
ALTER TABLE "SYS_LOGININFOR" ADD CONSTRAINT "SYS_C0012613" PRIMARY KEY ("INFO_ID");

-- ----------------------------
-- Checks structure for table SYS_LOGININFOR
-- ----------------------------
ALTER TABLE "SYS_LOGININFOR" ADD CONSTRAINT "SYS_C0012449" CHECK ("INFO_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SYS_LOGININFOR
-- ----------------------------
CREATE TRIGGER "SYS_LOGININFOR_INFO_ID_TRIG" BEFORE INSERT OR UPDATE ON "SYS_LOGININFOR" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.info_id IS NULL THEN
SELECT  sys_logininfor_info_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(info_id),0) INTO v_newVal FROM sys_logininfor;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT sys_logininfor_info_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.info_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SYS_MENU
-- ----------------------------
DROP TABLE "SYS_MENU";
CREATE TABLE "SYS_MENU" (
                                      "MENU_ID" NUMBER(38,0) NOT NULL,
                                      "MENU_NAME" VARCHAR2(66 CHAR) NOT NULL,
                                      "PARENT_ID" NUMBER(38,0) DEFAULT 0,
                                      "ORDER_NUM" NUMBER(10,0) DEFAULT 0,
                                      "PATH" VARCHAR2(266 CHAR) DEFAULT '',
                                      "COMPONENT" VARCHAR2(340 CHAR),
                                      "QUERY_PARAM" VARCHAR2(340 CHAR),
                                      "IS_FRAME" NUMBER(10,0) DEFAULT 1,
                                      "IS_CACHE" NUMBER(10,0) DEFAULT 0,
                                      "MENU_TYPE" CHAR(1 CHAR) DEFAULT '',
  "VISIBLE" CHAR(1 CHAR) DEFAULT '0',
  "STATUS" NUMBER(10,0) DEFAULT 0,
  "PERMS" VARCHAR2(133 CHAR),
  "ICON" VARCHAR2(133 CHAR) DEFAULT '#',
  "CREATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(666 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_MENU"."MENU_ID" IS '菜单ID';
COMMENT ON COLUMN "SYS_MENU"."MENU_NAME" IS '菜单名称';
COMMENT ON COLUMN "SYS_MENU"."PARENT_ID" IS '父菜单ID';
COMMENT ON COLUMN "SYS_MENU"."ORDER_NUM" IS '显示顺序';
COMMENT ON COLUMN "SYS_MENU"."PATH" IS '路由地址';
COMMENT ON COLUMN "SYS_MENU"."COMPONENT" IS '组件路径';
COMMENT ON COLUMN "SYS_MENU"."QUERY_PARAM" IS '路由参数';
COMMENT ON COLUMN "SYS_MENU"."IS_FRAME" IS '是否为外链（0是 1否）';
COMMENT ON COLUMN "SYS_MENU"."IS_CACHE" IS '是否缓存（0缓存 1不缓存）';
COMMENT ON COLUMN "SYS_MENU"."MENU_TYPE" IS '菜单类型（M目录 C菜单 F按钮）';
COMMENT ON COLUMN "SYS_MENU"."VISIBLE" IS '菜单状态（0显示 1隐藏）';
COMMENT ON COLUMN "SYS_MENU"."STATUS" IS '菜单状态（0正常 1停用）';
COMMENT ON COLUMN "SYS_MENU"."PERMS" IS '权限标识';
COMMENT ON COLUMN "SYS_MENU"."ICON" IS '菜单图标';
COMMENT ON COLUMN "SYS_MENU"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "SYS_MENU"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "SYS_MENU"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "SYS_MENU"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "SYS_MENU"."REMARK" IS '备注';
COMMENT ON TABLE "SYS_MENU" IS '菜单权限表';

-- ----------------------------
-- Records of SYS_MENU
-- ----------------------------
INSERT INTO "SYS_MENU" VALUES ('3111', '通知模板修改', '3108', '3', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'notify:template:edit', '#', 'admin', TO_TIMESTAMP('2024-01-03 11:03:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3112', '通知模板删除', '3108', '4', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'notify:template:remove', '#', 'admin', TO_TIMESTAMP('2024-01-03 11:03:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3113', '通知模板导出', '3108', '5', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'notify:template:export', '#', 'admin', TO_TIMESTAMP('2024-01-03 11:04:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3114', '通知模板测试', '3108', '6', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'notify:template:send', '#', 'admin', TO_TIMESTAMP('2024-01-03 11:07:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3115', '通知日志', '3000', '7', 'notifylog', 'notify/log/index', NULL, '1', '0', 'C', '0', '0', 'notify:log:list', 'notify_log', 'admin', TO_TIMESTAMP('2023-12-28 10:10:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-03 11:05:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3116', '通知日志导出', '3115', '2', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'notify:log:export', '#', 'admin', TO_TIMESTAMP('2024-01-03 11:06:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-02-19 09:08:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3117', '通知日志删除', '3115', '3', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'notify:log:remove', '#', 'admin', TO_TIMESTAMP('2024-01-03 11:06:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-02-19 09:08:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3147', '告警配置', '3051', '6', 'alert', 'iot/alert/index', NULL, '1', '0', 'C', '0', '0', 'iot:alert:list', 'alert', 'admin', TO_TIMESTAMP('2023-11-12 10:58:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-02-01 02:36:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3148', '规则脚本导出', '3055', '5', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:script:export', '#', 'admin', TO_TIMESTAMP('2024-02-18 16:29:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-02-18 16:38:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3149', '规则脚本查询', '3055', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:script:query', '#', 'admin', TO_TIMESTAMP('2024-02-18 16:29:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3150', '规则脚本新增', '3055', '2', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:script:add', '#', 'admin', TO_TIMESTAMP('2024-02-18 16:29:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-02-18 16:37:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3151', '规则脚本修改', '3055', '3', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:script:edit', '#', 'admin', TO_TIMESTAMP('2024-02-18 16:30:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-02-18 16:37:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3152', '规则脚本删除', '3055', '4', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:script:remove', '#', 'admin', TO_TIMESTAMP('2024-02-18 16:30:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-02-18 16:37:59.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3153', '告警配置导出', '3147', '5', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:alert:export', '#', 'admin', TO_TIMESTAMP('2024-02-18 16:35:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-02-18 16:38:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3154', '告警配置查询', '3147', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:alert:query', '#', 'admin', TO_TIMESTAMP('2024-02-18 16:36:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-02-18 16:38:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3155', '告警配置新增', '3147', '2', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:alert:add', '#', 'admin', TO_TIMESTAMP('2024-02-18 16:36:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-02-18 16:38:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3156', '告警配置修改', '3147', '3', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:alert:edit', '#', 'admin', TO_TIMESTAMP('2024-02-18 16:37:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-02-18 16:38:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3157', '告警配置删除', '3147', '4', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:alert:remove', '#', 'admin', TO_TIMESTAMP('2024-02-18 16:37:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-02-18 16:38:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3158', '通知日志详情', '3115', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'notify:log:query', '#', 'admin', TO_TIMESTAMP('2024-02-19 09:08:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3159', '组态管理', '0', '8', 'scada', NULL, NULL, '1', '0', 'M', '0', '0', ' ', 'group', 'admin', TO_TIMESTAMP('2023-11-10 09:56:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-20 15:57:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3160', '独立组态', '3159', '1', 'center', 'scada/center/indieScada', NULL, '1', '0', 'C', '0', '0', 'scada:center:list', 'product', 'admin', TO_TIMESTAMP('2024-03-01 11:38:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-01 16:13:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '组态中心菜单');
INSERT INTO "SYS_MENU" VALUES ('3161', '组态中心查询', '3159', '6', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:center:query', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3162', '组态中心新增', '3159', '6', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:center:add', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3163', '组态中心修改', '3159', '6', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:center:edit', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3164', '组态中心删除', '3159', '6', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:center:remove', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3165', '组态中心导出', '3159', '6', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:center:export', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3166', '图表管理', '3159', '2', 'echart', 'scada/echart/index', NULL, '1', '0', 'C', '0', '0', 'scada:echart:list', 'chart', 'admin', TO_TIMESTAMP('2024-03-01 11:38:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-01 16:15:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '图表管理菜单');
INSERT INTO "SYS_MENU" VALUES ('3167', '图表管理查询', '3166', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:echart:query', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3168', '图表管理新增', '3166', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:echart:add', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3169', '图表管理修改', '3166', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:echart:edit', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3170', '图表管理删除', '3166', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:echart:remove', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3171', '图表管理导出', '3166', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:echart:export', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3172', '图库管理', '3159', '3', 'gallery', 'scada/gallery/index', NULL, '1', '0', 'C', '0', '0', 'scada:gallery:list', 'picture', 'admin', TO_TIMESTAMP('2024-03-01 11:38:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-01 16:21:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '图库管理菜单');
INSERT INTO "SYS_MENU" VALUES ('3173', '图库管理查询', '3172', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:gallery:query', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3174', '图库管理新增', '3172', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:gallery:add', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3175', '图库管理修改', '3172', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:gallery:edit', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3176', '图库管理删除', '3172', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:gallery:remove', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3177', '图库管理导出', '3172', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:gallery:export', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3178', '模型管理', '3159', '5', 'model', 'scada/model/index', NULL, '1', '0', 'C', '0', '0', 'scada:model:list', 'model', 'admin', TO_TIMESTAMP('2024-03-01 11:38:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-01 16:21:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '模型管理菜单');
INSERT INTO "SYS_MENU" VALUES ('3179', '模型管理查询', '3178', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:model:query', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3180', '模型管理新增', '3178', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:model:add', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3181', '模型管理修改', '3178', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:model:edit', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3182', '模型管理删除', '3178', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:model:remove', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3183', '模型管理导出', '3178', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:model:export', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3184', '组件管理', '3159', '4', 'component', 'scada/component/index', NULL, '1', '0', 'C', '0', '0', 'scada:component:list', 'redis', 'admin', TO_TIMESTAMP('2024-03-01 11:38:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-01 16:21:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '组件管理菜单');
INSERT INTO "SYS_MENU" VALUES ('3185', '组件管理查询', '3184', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:component:query', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3186', '组件管理新增', '3184', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:component:add', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3187', '组件管理修改', '3184', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:component:edit', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3188', '组件管理删除', '3184', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:component:remove', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3189', '组件管理导出', '3184', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scada:component:export', '#', 'admin', TO_TIMESTAMP('2024-03-01 11:38:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3190', '云云对接', '0', '3', 'speaker', NULL, NULL, '1', '0', 'M', '0', '0', ' ', 'cloud', 'admin', TO_TIMESTAMP('2023-10-17 09:14:05.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-13 10:45:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3191', '音箱配置', '3190', '1', 'clientDetails', 'speaker/clientDetails/index', NULL, '1', '0', 'C', '0', '0', 'iot:clientDetails:list', 'speaker', 'admin', TO_TIMESTAMP('2022-02-07 22:08:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-11 15:55:43.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '云云对接菜单');
INSERT INTO "SYS_MENU" VALUES ('3197', '小度音箱', '3190', '2', 'dueros', 'speaker/dueros/index', NULL, '1', '0', 'C', '0', '0', 'dueros:relatedProduct:list', 'dueros', 'admin', TO_TIMESTAMP('2023-10-19 17:03:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-07 11:13:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '小度音箱');
INSERT INTO "SYS_MENU" VALUES ('3198', '关联产品查询', '3197', '0', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'dueros:relatedProduct:query', '#', 'admin', TO_TIMESTAMP('2023-12-06 11:10:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-06 15:13:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3199', '关联物模查询', '3197', '4', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'dueros:relatedThingsModel:query', '#', 'admin', TO_TIMESTAMP('2023-12-06 11:14:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-06 15:15:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3200', '关联产品新增', '3197', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'dueros:relatedProduct:add', '#', 'admin', TO_TIMESTAMP('2023-10-19 17:03:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-06 15:14:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3201', '关联产品删除', '3197', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'dueros:relatedProduct:delete', '#', 'admin', TO_TIMESTAMP('2023-10-19 17:03:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-06 15:15:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3202', '关联产品编辑', '3197', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'dueros:relatedProduct:edit', '#', 'admin', TO_TIMESTAMP('2023-10-19 17:03:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-06 15:15:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3203', '关联物模编辑', '3197', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'dueros:relatedThingsModel:edit', '#', 'admin', TO_TIMESTAMP('2023-10-19 17:03:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-06 15:17:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3204', '关联物模删除', '3197', '6', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'dueros:relatedThingsModel:delete', '#', 'admin', TO_TIMESTAMP('2023-10-19 17:03:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-06 15:17:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3205', '组态详情预览', '3159', '6', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'scada:center:preview', '#', 'admin', TO_TIMESTAMP('2024-03-08 09:23:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3206', '产品模型列表', '2043', '10', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:model:list', '#', 'admin', TO_TIMESTAMP('2024-03-18 17:01:05.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-18 17:01:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3207', '产品模型详情', '2043', '11', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:model:query', '#', 'admin', TO_TIMESTAMP('2024-03-18 17:01:05.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-18 17:01:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3208', '产品模型导入', '2043', '12', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:model:import', '#', 'admin', TO_TIMESTAMP('2024-03-18 17:01:05.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-18 17:01:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3209', '产品模型新增', '2043', '13', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:model:add', '#', 'admin', TO_TIMESTAMP('2024-03-18 17:01:05.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-18 17:01:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3210', '产品模型修改', '2043', '14', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:model:edit', '#', 'admin', TO_TIMESTAMP('2024-03-18 17:01:05.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-18 17:01:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3211', '产品模型删除', '2043', '15', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:model:remove', '#', 'admin', TO_TIMESTAMP('2024-03-18 17:01:05.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-18 17:01:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3214', '设备定时详情', '2148', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:device:timer:query', '#', 'admin', TO_TIMESTAMP('2024-03-19 11:18:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3215', '设备定时新增', '2148', '2', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:device:timer:add', '#', 'admin', TO_TIMESTAMP('2024-03-19 11:18:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3216', '设备定时修改', '2148', '3', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:device:timer:edit', '#', 'admin', TO_TIMESTAMP('2024-03-19 11:18:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3217', '设备定时执行', '2148', '4', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:device:timer:execute', '#', 'admin', TO_TIMESTAMP('2024-03-19 11:18:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3218', '设备定时删除', '2148', '5', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:device:timer:remove', '#', 'admin', TO_TIMESTAMP('2024-03-19 11:18:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3219', '设备用户详情', '2147', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:device:user:query', '#', 'admin', TO_TIMESTAMP('2024-03-19 11:18:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3220', '分享设备', '2147', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:device:user:share', '#', 'admin', TO_TIMESTAMP('2024-03-19 11:18:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3221', '设备用户修改', '2147', '2', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:device:user:edit', '#', 'admin', TO_TIMESTAMP('2024-03-19 11:18:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3222', '取消分享', '2147', '3', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:device:user:remove', '#', 'admin', TO_TIMESTAMP('2024-03-19 11:18:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3223', '录像管理列表', '3099', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:sip:record:list', '#', 'admin', TO_TIMESTAMP('2024-03-19 11:18:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3224', '查看录像', '3099', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:sip:record:query', '#', 'admin', TO_TIMESTAMP('2024-03-19 11:18:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3225', '录像下载', '3099', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:sip:record:download', '#', 'admin', TO_TIMESTAMP('2024-03-19 11:18:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-19 15:48:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3226', '场景联动执行', '2085', '6', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:scene:run', '#', 'admin', TO_TIMESTAMP('2024-03-19 16:15:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3227', '字典刷新', '105', '6', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'system:dict:refresh', '#', 'admin', TO_TIMESTAMP('2024-03-19 16:38:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-19 16:38:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3228', '参数刷新', '106', '6', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'system:config:refresh', '#', 'admin', TO_TIMESTAMP('2024-03-19 16:40:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3229', '三方登录详情', '2141', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:platform:query', '#', 'admin', TO_TIMESTAMP('2024-03-19 11:18:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3230', '三方登录新增', '2141', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:platform:add', '#', 'admin', TO_TIMESTAMP('2024-03-19 11:18:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3231', '三方登录修改', '2141', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:platform:edit', '#', 'admin', TO_TIMESTAMP('2024-03-19 11:18:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3232', '三方登录导出', '2141', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:platform:export', '#', 'admin', TO_TIMESTAMP('2024-03-19 11:18:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3233', '三方登录删除', '2141', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:platform:remove', '#', 'admin', TO_TIMESTAMP('2024-03-19 11:18:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3234', '任务执行', '110', '8', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'monitor:job:run', '#', 'admin', TO_TIMESTAMP('2024-03-19 17:05:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3235', '缓存列表', '124', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'monitor:cache:list', '#', 'admin', TO_TIMESTAMP('2024-03-19 17:09:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3236', '缓存删除', '124', '2', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'monitor:cache:remove', '#', 'admin', TO_TIMESTAMP('2024-03-19 17:10:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3237', '客户端列表', '3032', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:emqx:client:list', '#', 'admin', TO_TIMESTAMP('2024-03-19 17:19:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3238', '客户端踢出', '3032', '2', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:emqx:client:remove', '#', 'admin', TO_TIMESTAMP('2024-03-19 17:20:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3239', '设备分配', '2007', '10', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:device:assignment', '#', 'admin', TO_TIMESTAMP('2024-04-10 09:40:59.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3240', '设备回收', '2007', '11', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:device:recovery', '#', 'admin', TO_TIMESTAMP('2024-04-10 09:41:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3247', '设备分享列表', '2007', '1', 'share', 'iot/share/index', NULL, '1', '0', 'C', '0', '0', 'iot:share:list', '#', 'admin', TO_TIMESTAMP('2024-04-17 14:33:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '设备分享菜单');
INSERT INTO "SYS_MENU" VALUES ('3248', '设备分享用户', '3247', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:share:user', '#', 'admin', TO_TIMESTAMP('2024-04-17 14:33:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3249', '设备分享详情', '3247', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:share:query', '#', 'admin', TO_TIMESTAMP('2024-04-17 14:33:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3250', '设备分享新增', '3247', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:share:add', '#', 'admin', TO_TIMESTAMP('2024-04-17 14:33:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3251', '设备分享修改', '3247', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:share:edit', '#', 'admin', TO_TIMESTAMP('2024-04-17 14:33:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3252', '设备分享删除', '3247', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:share:remove', '#', 'admin', TO_TIMESTAMP('2024-04-17 14:33:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3253', '设备分享导出', '3247', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:share:export', '#', 'admin', TO_TIMESTAMP('2024-04-17 14:33:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3254', '设备定时导出', '2148', '5', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:device:timer:export', '#', 'admin', TO_TIMESTAMP('2024-03-19 11:18:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3255', '设备联动', '2000', '7', 'linkage', 'iot/device/device-linkage', NULL, '1', '0', 'C', '0', '0', NULL, 'tree-table', 'admin', TO_TIMESTAMP('2024-05-10 17:54:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3256', '终端用户', '5', '5', 'terminal', 'system/terminalUser/index', NULL, '1', '0', 'C', '0', '0', NULL, 'build', 'admin', TO_TIMESTAMP('2024-05-10 17:55:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3257', '告警用户', '2007', '1', 'user', 'iot/device/alert/user', NULL, '1', '0', 'C', '0', '0', 'iot:device:alert:user:list', '#', 'admin', TO_TIMESTAMP('2024-05-16 10:50:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '设备告警用户菜单');
INSERT INTO "SYS_MENU" VALUES ('3258', '告警用户查询', '3257', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:device:alert:user:query', '#', 'admin', TO_TIMESTAMP('2024-05-16 10:50:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3259', '告警用户新增', '3257', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:device:alert:user:add', '#', 'admin', TO_TIMESTAMP('2024-05-16 10:50:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3260', '告警用户删除', '3257', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:device:alert:user:remove', '#', 'admin', TO_TIMESTAMP('2024-05-16 10:50:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3261', '文件记录', '3046', '4', 'detail', 'system/oss/index', NULL, '1', '0', 'C', '0', '0', 'oss:detail:list', 'documentation', 'admin', TO_TIMESTAMP('2024-07-29 17:32:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '文件记录菜单');
INSERT INTO "SYS_MENU" VALUES ('3262', '文件记录查询', '3261', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'oss:detail:query', '#', 'admin', TO_TIMESTAMP('2024-07-29 17:32:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3263', '文件记录新增', '3261', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'oss:detail:add', '#', 'admin', TO_TIMESTAMP('2024-07-29 17:32:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3264', '文件记录修改', '3261', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'oss:detail:edit', '#', 'admin', TO_TIMESTAMP('2024-07-29 17:32:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3265', '文件记录删除', '3261', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'oss:detail:remove', '#', 'admin', TO_TIMESTAMP('2024-07-29 17:32:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3266', '文件记录导出', '3261', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'oss:detail:export', '#', 'admin', TO_TIMESTAMP('2024-07-29 17:32:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3267', '文件存储配置新增', '3261', '6', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'oss:config:add', '#', 'admin', TO_TIMESTAMP('2024-07-29 17:32:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3268', '文件存储配置修改', '3261', '7', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'oss:config:edit', '#', 'admin', TO_TIMESTAMP('2024-07-29 17:32:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3269', '文件存储配置删除', '3261', '8', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'oss:config:remove', '#', 'admin', TO_TIMESTAMP('2024-07-29 17:32:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3270', '数据桥接', '3051', '1', 'bridge', 'iot/bridge/index', NULL, '1', '0', 'C', '0', '0', 'iot:bridge:list', 'mq', 'admin', TO_TIMESTAMP('2024-07-29 17:33:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '数据桥接菜单');
INSERT INTO "SYS_MENU" VALUES ('3271', '数据桥接查询', '3270', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:bridge:query', '#', 'admin', TO_TIMESTAMP('2024-07-29 17:33:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3272', '数据桥接新增', '3270', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:bridge:add', '#', 'admin', TO_TIMESTAMP('2024-07-29 17:33:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3273', '数据桥接修改', '3270', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:bridge:edit', '#', 'admin', TO_TIMESTAMP('2024-07-29 17:33:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3274', '数据桥接删除', '3270', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:bridge:remove', '#', 'admin', TO_TIMESTAMP('2024-07-29 17:33:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3275', '数据桥接导出', '3270', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:bridge:export', '#', 'admin', TO_TIMESTAMP('2024-07-29 17:33:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3276', '密码修改', '5', '6', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'systerm:user:updatePwd', '#', 'admin', TO_TIMESTAMP('2024-07-12 15:25:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-07-12 15:26:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3277', '设备编号批量生成', '2007', '14', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:device:batchGenerator', '#', 'admin', TO_TIMESTAMP('2024-07-19 15:28:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3278', '设备记录导出', '2007', '13', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:device:record:export', '#', 'admin', TO_TIMESTAMP('2024-07-19 15:28:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3279', '设备记录', '2007', '12', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:device:record:list', '#', 'admin', TO_TIMESTAMP('2024-07-19 15:28:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3280', '系统授权', '3', '1', 'sysclient', 'system/sysclient/index', NULL, '1', '0', 'C', '0', '0', 'system:sysclient:list', 'authenticate', 'admin', TO_TIMESTAMP('2024-07-29 17:33:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '系统授权菜单');
INSERT INTO "SYS_MENU" VALUES ('3281', '系统授权查询', '3280', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'system:sysclient:query', '#', 'admin', TO_TIMESTAMP('2024-07-29 17:33:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3282', '系统授权新增', '3280', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'system:sysclient:add', '#', 'admin', TO_TIMESTAMP('2024-07-29 17:33:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3283', '系统授权修改', '3280', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'system:sysclient:edit', '#', 'admin', TO_TIMESTAMP('2024-07-29 17:33:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3284', '系统授权删除', '3280', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'system:sysclient:remove', '#', 'admin', TO_TIMESTAMP('2024-07-29 17:33:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3285', '系统授权导出', '3280', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'system:sysclient:export', '#', 'admin', TO_TIMESTAMP('2024-07-29 17:33:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3286', '产品modbus配置参数', '2043', '1', 'params', ' ', NULL, '1', '0', 'M', '0', '0', 'modbus:params:list', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '产品modbus配置参数菜单');
INSERT INTO "SYS_MENU" VALUES ('3287', '产品modbus配置参数查询', '3286', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'modbus:params:query', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3288', '产品modbus配置参数新增', '3286', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'modbus:params:add', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3289', '产品modbus配置参数修改', '3286', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'modbus:params:edit', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3290', '产品modbus配置参数删除', '3286', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'modbus:params:remove', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3291', '产品modbus配置参数导出', '3286', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'modbus:params:export', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3292', '轮训任务', '2007', '1', 'modbusjob', ' ', NULL, '1', '0', 'M', '0', '0', 'modbus:job:list', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '轮训任务列菜单');
INSERT INTO "SYS_MENU" VALUES ('3293', '轮训任务查询', '3292', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'modbus:job:query', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3294', '轮训任务新增', '3292', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'modbus:job:add', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3295', '轮训任务修改', '3292', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'modbus:job:edit', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3296', '轮训任务删除', '3292', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'modbus:job:remove', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3297', '轮训任务导出', '3292', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'modbus:job:export', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3298', 'modbus配置', '2043', '1', 'config', ' ', NULL, '1', '0', 'M', '0', '0', 'modbus:config:list', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, 'modbus配置菜单');
INSERT INTO "SYS_MENU" VALUES ('1', '系统管理', '0', '6', 'system', NULL, ' ', '1', '0', 'M', '0', '0', ' ', 'system', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-07-06 16:29:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '系统管理目录');
INSERT INTO "SYS_MENU" VALUES ('2', '系统监控', '0', '6', 'monitor', NULL, ' ', '1', '0', 'M', '0', '0', ' ', 'monitor', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-07-06 16:24:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '系统监控目录');
INSERT INTO "SYS_MENU" VALUES ('3', '系统工具', '0', '8', 'tool', NULL, ' ', '1', '0', 'M', '0', '0', ' ', 'tool', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-07-06 16:26:26.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '系统工具目录');
INSERT INTO "SYS_MENU" VALUES ('4', '蜂信物联', '0', '99', 'http://fastbee.cn', NULL, ' ', '0', '0', 'M', '0', '0', ' ', 'guide', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-11 18:10:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '若依官网地址');
INSERT INTO "SYS_MENU" VALUES ('5', '企业管理', '0', '5', 'enterprise', NULL, ' ', '1', '0', 'M', '0', '0', ' ', 'authenticate', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-03-20 15:57:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '企业管理目录');
INSERT INTO "SYS_MENU" VALUES ('100', '用户管理', '5', '1', 'user', 'system/user/index', ' ', '1', '0', 'C', '0', '0', 'system:user:list', 'user', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '用户管理菜单');
INSERT INTO "SYS_MENU" VALUES ('101', '角色管理', '5', '2', 'role', 'system/role/index', ' ', '1', '0', 'C', '0', '0', 'system:role:list', 'peoples', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '角色管理菜单');
INSERT INTO "SYS_MENU" VALUES ('102', '菜单管理', '5', '3', 'menu', 'system/menu/index', ' ', '1', '0', 'C', '0', '0', 'system:menu:list', 'tree-table', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '菜单管理菜单');
INSERT INTO "SYS_MENU" VALUES ('103', '机构管理', '5', '4', 'dept', 'system/dept/index', ' ', '1', '0', 'C', '0', '0', 'system:dept:list', 'tree', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '部门管理菜单');
INSERT INTO "SYS_MENU" VALUES ('104', '岗位管理', '1', '5', 'post', 'system/post/index', ' ', '1', '0', 'C', '0', '0', 'system:post:list', 'post', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '岗位管理菜单');
INSERT INTO "SYS_MENU" VALUES ('105', '字典管理', '1', '6', 'dict', 'system/dict/index', ' ', '1', '0', 'C', '0', '0', 'system:dict:list', 'dict', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '字典管理菜单');
INSERT INTO "SYS_MENU" VALUES ('106', '参数设置', '1', '7', 'config', 'system/config/index', ' ', '1', '0', 'C', '0', '0', 'system:config:list', 'edit', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '参数设置菜单');
INSERT INTO "SYS_MENU" VALUES ('107', '通知公告', '1', '8', 'notice', 'system/notice/index', ' ', '1', '0', 'C', '0', '0', 'system:notice:list', 'message', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '通知公告菜单');
INSERT INTO "SYS_MENU" VALUES ('108', '日志管理', '1', '9', 'log', ' ', ' ', '1', '0', 'M', '0', '0', ' ', 'log', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '日志管理菜单');
INSERT INTO "SYS_MENU" VALUES ('109', '在线用户', '2', '1', 'online', 'monitor/online/index', ' ', '1', '0', 'C', '0', '0', 'monitor:online:list', 'online', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '在线用户菜单');
INSERT INTO "SYS_MENU" VALUES ('110', '定时任务', '2', '2', 'job', 'monitor/job/index', ' ', '1', '0', 'C', '0', '0', 'monitor:job:list', 'job', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '定时任务菜单');
INSERT INTO "SYS_MENU" VALUES ('111', '数据监控', '2', '3', 'druid', 'monitor/druid/index', ' ', '1', '0', 'C', '0', '0', 'monitor:druid:list', 'druid', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '数据监控菜单');
INSERT INTO "SYS_MENU" VALUES ('112', '服务监控', '2', '4', 'server', 'monitor/server/index', ' ', '1', '0', 'C', '0', '0', 'monitor:server:list', 'server', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '服务监控菜单');
INSERT INTO "SYS_MENU" VALUES ('113', '缓存监控', '2', '5', 'cache', 'monitor/cache/index', ' ', '1', '0', 'C', '0', '0', 'monitor:cache:list', 'redis', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '缓存监控菜单');
INSERT INTO "SYS_MENU" VALUES ('114', '表单构建', '3', '1', 'build', 'tool/build/index', ' ', '1', '0', 'C', '0', '0', 'tool:build:list', 'build', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '表单构建菜单');
INSERT INTO "SYS_MENU" VALUES ('115', '代码生成', '3', '2', 'gen', 'tool/gen/index', ' ', '1', '0', 'C', '0', '0', 'tool:gen:list', 'code', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '代码生成菜单');
INSERT INTO "SYS_MENU" VALUES ('116', '系统接口', '3', '3', 'swagger', 'tool/swagger/index', ' ', '1', '0', 'C', '0', '0', 'tool:swagger:list', 'swagger', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '系统接口菜单');
INSERT INTO "SYS_MENU" VALUES ('124', '缓存列表', '2', '6', 'cacheList', 'monitor/cache/list', ' ', '1', '0', 'C', '0', '0', 'monitor:cache:list', 'redis-list', 'admin', TO_TIMESTAMP('2023-03-10 23:22:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '缓存列表菜单');
INSERT INTO "SYS_MENU" VALUES ('500', '操作日志', '108', '1', 'operlog', 'monitor/operlog/index', ' ', '1', '0', 'C', '0', '0', 'monitor:operlog:list', 'form', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '操作日志菜单');
INSERT INTO "SYS_MENU" VALUES ('501', '登录日志', '108', '2', 'logininfor', 'monitor/logininfor/index', ' ', '1', '0', 'C', '0', '0', 'monitor:logininfor:list', 'logininfor', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '登录日志菜单');
INSERT INTO "SYS_MENU" VALUES ('1001', '用户查询', '100', '1', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:user:query', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1002', '用户新增', '100', '2', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:user:add', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1003', '用户修改', '100', '3', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:user:edit', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1004', '用户删除', '100', '4', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:user:remove', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1005', '用户导出', '100', '5', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:user:export', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1006', '用户导入', '100', '6', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:user:import', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1007', '重置密码', '100', '7', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:user:resetPwd', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1008', '角色查询', '101', '1', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:role:query', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1009', '角色新增', '101', '2', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:role:add', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1010', '角色修改', '101', '3', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:role:edit', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1011', '角色删除', '101', '4', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:role:remove', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1012', '角色导出', '101', '5', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:role:export', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1013', '菜单查询', '102', '1', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:menu:query', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1014', '菜单新增', '102', '2', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:menu:add', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1015', '菜单修改', '102', '3', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:menu:edit', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1016', '菜单删除', '102', '4', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:menu:remove', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1017', '部门查询', '103', '1', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:dept:query', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1018', '部门新增', '103', '2', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:dept:add', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1019', '部门修改', '103', '3', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:dept:edit', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1020', '部门删除', '103', '4', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:dept:remove', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1021', '岗位查询', '104', '1', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:post:query', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1022', '岗位新增', '104', '2', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:post:add', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1023', '岗位修改', '104', '3', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:post:edit', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1024', '岗位删除', '104', '4', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:post:remove', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1025', '岗位导出', '104', '5', ' ', ' ', ' ', '1', '0', 'F', '0', '0', 'system:post:export', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1026', '字典查询', '105', '1', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'system:dict:query', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1027', '字典新增', '105', '2', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'system:dict:add', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1028', '字典修改', '105', '3', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'system:dict:edit', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1029', '字典删除', '105', '4', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'system:dict:remove', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1030', '字典导出', '105', '5', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'system:dict:export', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1031', '参数查询', '106', '1', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'system:config:query', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1032', '参数新增', '106', '2', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'system:config:add', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1033', '参数修改', '106', '3', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'system:config:edit', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1034', '参数删除', '106', '4', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'system:config:remove', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1035', '参数导出', '106', '5', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'system:config:export', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1036', '公告查询', '107', '1', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'system:notice:query', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1037', '公告新增', '107', '2', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'system:notice:add', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1038', '公告修改', '107', '3', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'system:notice:edit', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1039', '公告删除', '107', '4', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'system:notice:remove', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1040', '操作查询', '500', '1', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'monitor:operlog:query', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1041', '操作删除', '500', '2', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'monitor:operlog:remove', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1042', '日志导出', '500', '4', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'monitor:operlog:export', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1043', '登录查询', '501', '1', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'monitor:logininfor:query', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1044', '登录删除', '501', '2', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'monitor:logininfor:remove', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1045', '日志导出', '501', '3', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'monitor:logininfor:export', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1046', '在线查询', '109', '1', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'monitor:online:query', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1047', '批量强退', '109', '2', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'monitor:online:batchLogout', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1048', '单条强退', '109', '3', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'monitor:online:forceLogout', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1049', '任务查询', '110', '1', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'monitor:job:query', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1050', '任务新增', '110', '2', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'monitor:job:add', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1051', '任务修改', '110', '3', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'monitor:job:edit', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1052', '任务删除', '110', '4', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'monitor:job:remove', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1053', '状态修改', '110', '5', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'monitor:job:changeStatus', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1054', '任务导出', '110', '7', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'monitor:job:export', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1055', '生成查询', '115', '1', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'tool:gen:query', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1056', '生成修改', '115', '2', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'tool:gen:edit', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1057', '生成删除', '115', '3', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'tool:gen:remove', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1058', '导入代码', '115', '2', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'tool:gen:import', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1059', '预览代码', '115', '4', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'tool:gen:preview', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1060', '生成代码', '115', '5', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'tool:gen:code', '#', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('1065', '账户解锁', '501', '4', '#', ' ', ' ', '1', '0', 'F', '0', '0', 'monitor:logininfor:unlock', '#', 'admin', TO_TIMESTAMP('2023-03-10 23:23:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2000', '设备管理', '0', '0', 'iot', NULL, NULL, '1', '0', 'M', '0', '0', ' ', 'iot', 'admin', TO_TIMESTAMP('2021-12-15 23:57:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-26 23:55:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('2001', '产品分类', '2000', '2', 'category', 'iot/category/index', NULL, '1', '0', 'C', '0', '0', 'iot:category:list', 'category', 'admin', TO_TIMESTAMP('2021-12-16 00:40:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-26 23:56:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '产品分类菜单');
INSERT INTO "SYS_MENU" VALUES ('2002', '产品分类查询', '2001', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:category:query', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2003', '产品分类新增', '2001', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:category:add', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2004', '产品分类修改', '2001', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:category:edit', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2005', '产品分类删除', '2001', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:category:remove', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2006', '产品分类导出', '2001', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:category:export', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2007', '设备管理', '2000', '6', 'device', 'iot/device/index', NULL, '1', '0', 'C', '0', '0', 'iot:device:list', 'device', 'admin', TO_TIMESTAMP('2021-12-16 00:40:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-01-08 15:47:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '设备菜单');
INSERT INTO "SYS_MENU" VALUES ('2008', '设备查询', '2007', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:device:query', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2009', '设备新增', '2007', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:device:add', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2010', '设备修改', '2007', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:device:edit', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-19 11:55:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('2011', '设备删除', '2007', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:device:remove', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-19 11:39:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('2012', '设备导出', '2007', '8', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:device:export', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-19 11:39:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('2013', '产品固件', '3000', '4', 'firmware', 'iot/firmware/index', NULL, '1', '0', 'C', '0', '0', 'iot:firmware:list', 'firmware', 'admin', TO_TIMESTAMP('2021-12-16 00:40:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-26 23:56:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '产品固件菜单');
INSERT INTO "SYS_MENU" VALUES ('2014', '产品固件查询', '2013', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:firmware:query', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2015', '产品固件新增', '2013', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:firmware:add', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2016', '产品固件修改', '2013', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:firmware:edit', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2017', '产品固件删除', '2013', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:firmware:remove', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2018', '产品固件导出', '2013', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:firmware:export', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2019', '设备分组', '2000', '5', 'group', 'iot/group/index', NULL, '1', '0', 'C', '0', '0', 'iot:group:list', 'group', 'admin', TO_TIMESTAMP('2021-12-16 00:40:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-26 23:56:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '设备分组菜单');
INSERT INTO "SYS_MENU" VALUES ('2020', '设备分组查询', '2019', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:group:query', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2021', '设备分组新增', '2019', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:group:add', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2022', '设备分组修改', '2019', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:group:edit', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2023', '设备分组删除', '2019', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:group:remove', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2024', '设备分组导出', '2019', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:group:export', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:40:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2043', '产品管理', '2000', '3', 'product', 'iot/product/index', NULL, '1', '0', 'C', '0', '0', 'iot:product:list', 'product', 'admin', TO_TIMESTAMP('2021-12-16 00:41:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-26 23:58:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '产品菜单');
INSERT INTO "SYS_MENU" VALUES ('2044', '产品查询', '2043', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:product:query', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:41:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2045', '产品新增', '2043', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:product:add', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:41:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2046', '产品修改', '2043', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:product:edit', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:41:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2047', '产品删除', '2043', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:product:remove', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:41:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2048', '产品导出', '2043', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:product:export', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:41:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2049', '通用物模型', '2000', '1', 'template', 'iot/template/index', NULL, '1', '0', 'C', '0', '0', 'iot:template:list', 'model', 'admin', TO_TIMESTAMP('2021-12-16 00:41:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-26 23:56:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '通用物模型菜单');
INSERT INTO "SYS_MENU" VALUES ('2050', '通用物模型查询', '2049', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:template:query', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:41:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2051', '通用物模型新增', '2049', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:template:add', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:41:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2052', '通用物模型修改', '2049', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:template:edit', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:41:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2053', '通用物模型删除', '2049', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:template:remove', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:41:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2054', '通用物模型导出', '2049', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:template:export', '#', 'admin', TO_TIMESTAMP('2021-12-16 00:41:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2067', '告警记录', '3051', '7', 'alertLog', 'iot/alert/log', NULL, '1', '0', 'C', '0', '0', 'iot:alertLog:list', 'log', 'admin', TO_TIMESTAMP('2022-01-13 17:16:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-04-25 09:35:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '设备告警菜单');
INSERT INTO "SYS_MENU" VALUES ('2068', '设备告警查询', '2067', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:alertLog:query', '#', 'admin', TO_TIMESTAMP('2022-01-13 17:16:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-06-11 00:38:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('2069', '设备告警新增', '2067', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:alertLog:add', '#', 'admin', TO_TIMESTAMP('2022-01-13 17:16:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-06-11 00:38:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('2070', '设备告警修改', '2067', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:alertLog:edit', '#', 'admin', TO_TIMESTAMP('2022-01-13 17:16:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-06-11 00:38:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('2071', '设备告警删除', '2067', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:alertLog:remove', '#', 'admin', TO_TIMESTAMP('2022-01-13 17:16:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-06-11 00:38:38.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('2072', '设备告警导出', '2067', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:alertLog:export', '#', 'admin', TO_TIMESTAMP('2022-01-13 17:16:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-06-11 00:38:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('2085', '场景联动', '3051', '8', 'scene', 'iot/scene/index', NULL, '1', '0', 'C', '0', '0', 'iot:scene:list', 'scene', 'admin', TO_TIMESTAMP('2022-01-13 17:16:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-11-02 22:01:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '场景联动菜单');
INSERT INTO "SYS_MENU" VALUES ('2086', '场景联动查询', '2085', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:scene:query', '#', 'admin', TO_TIMESTAMP('2022-01-13 17:16:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2087', '场景联动新增', '2085', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:scene:add', '#', 'admin', TO_TIMESTAMP('2022-01-13 17:16:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2088', '场景联动修改', '2085', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:scene:edit', '#', 'admin', TO_TIMESTAMP('2022-01-13 17:16:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2089', '场景联动删除', '2085', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:scene:remove', '#', 'admin', TO_TIMESTAMP('2022-01-13 17:16:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2090', '场景联动导出', '2085', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:scene:export', '#', 'admin', TO_TIMESTAMP('2022-01-13 17:16:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2099', '云云对接查询', '3191', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:clientDetails:query', '#', 'admin', TO_TIMESTAMP('2022-02-07 22:08:59.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2100', '云云对接新增', '3191', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:clientDetails:add', '#', 'admin', TO_TIMESTAMP('2022-02-07 22:08:59.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2101', '云云对接修改', '3191', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:clientDetails:edit', '#', 'admin', TO_TIMESTAMP('2022-02-07 22:08:59.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2102', '云云对接删除', '3191', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:clientDetails:remove', '#', 'admin', TO_TIMESTAMP('2022-02-07 22:08:59.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2103', '云云对接导出', '3191', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:clientDetails:export', '#', 'admin', TO_TIMESTAMP('2022-02-07 22:08:59.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2104', 'EMQ管理', '0', '3', 'emqx', NULL, NULL, '1', '0', 'M', '1', '0', ' ', 'mq', 'admin', TO_TIMESTAMP('2022-02-26 00:42:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-09-27 01:48:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('2123', '新闻分类', '1', '10', 'newsCategory', 'iot/newsCategory/index', NULL, '1', '0', 'C', '0', '0', 'iot:newsCategory:list', 'category', 'admin', TO_TIMESTAMP('2022-04-11 16:47:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-05-12 17:20:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '新闻分类菜单');
INSERT INTO "SYS_MENU" VALUES ('2124', '新闻分类查询', '2123', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:newsCategory:query', '#', 'admin', TO_TIMESTAMP('2022-04-11 16:47:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2125', '新闻分类新增', '2123', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:newsCategory:add', '#', 'admin', TO_TIMESTAMP('2022-04-11 16:47:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2126', '新闻分类修改', '2123', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:newsCategory:edit', '#', 'admin', TO_TIMESTAMP('2022-04-11 16:47:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2127', '新闻分类删除', '2123', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:newsCategory:remove', '#', 'admin', TO_TIMESTAMP('2022-04-11 16:47:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2128', '新闻分类导出', '2123', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:newsCategory:export', '#', 'admin', TO_TIMESTAMP('2022-04-11 16:47:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2129', '新闻资讯', '1', '11', 'news', 'iot/news/index', NULL, '1', '0', 'C', '0', '0', 'iot:news:list', 'documentation', 'admin', TO_TIMESTAMP('2022-04-11 16:47:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-05-12 17:20:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '新闻资讯菜单');
INSERT INTO "SYS_MENU" VALUES ('2130', '新闻资讯查询', '2129', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:news:query', '#', 'admin', TO_TIMESTAMP('2022-04-11 16:47:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2131', '新闻资讯新增', '2129', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:news:add', '#', 'admin', TO_TIMESTAMP('2022-04-11 16:47:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2132', '新闻资讯修改', '2129', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:news:edit', '#', 'admin', TO_TIMESTAMP('2022-04-11 16:47:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2133', '新闻资讯删除', '2129', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:news:remove', '#', 'admin', TO_TIMESTAMP('2022-04-11 16:47:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2134', '新闻资讯导出', '2129', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:news:export', '#', 'admin', TO_TIMESTAMP('2022-04-11 16:47:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2136', '产品授权码查询', '2043', '6', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:authorize:query', '#', 'admin', TO_TIMESTAMP('2022-04-11 17:17:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-06-04 21:21:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('2137', '产品授权码新增', '2043', '7', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:authorize:add', '#', 'admin', TO_TIMESTAMP('2022-04-11 17:17:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-06-04 21:21:59.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('2138', '产品授权码修改', '2043', '8', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:authorize:edit', '#', 'admin', TO_TIMESTAMP('2022-04-11 17:17:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-06-04 21:22:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('2139', '产品授权码删除', '2043', '9', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:authorize:remove', '#', 'admin', TO_TIMESTAMP('2022-04-11 17:17:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-06-04 21:22:26.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('2140', '产品授权码导出', '2043', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:authorize:export', '#', 'admin', TO_TIMESTAMP('2022-04-11 17:17:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2141', '三方登录', '1', '12', 'platform', 'iot/platform/index', NULL, '1', '1', 'C', '0', '0', 'iot:platform:list', 'cloud', 'admin', TO_TIMESTAMP('2022-04-11 18:55:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-08-31 11:10:47.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('2142', '平台查询', '2142', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:platform:query', '#', 'admin', TO_TIMESTAMP('2022-04-11 19:10:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2147', '设备用户列表', '2007', '6', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:device:user:list', '#', 'admin', TO_TIMESTAMP('2022-06-10 01:08:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-06-10 01:10:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('2148', '设备定时', '2007', '7', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:device:timer:list', '#', 'admin', TO_TIMESTAMP('2022-06-10 01:10:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2149', '固定大屏', '3049', '2', 'https://iot.fastbee.cn/bigScreen', NULL, NULL, '0', '0', 'C', '0', '0', ' ', 'monitor', 'admin', TO_TIMESTAMP('2022-08-13 22:32:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-09 15:59:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('2167', '可视化管理', '3049', '0', 'https://fastbee.online/view/#/project/items', NULL, NULL, '0', '0', 'C', '0', '0', ' ', 'eye-open', 'admin', TO_TIMESTAMP('2022-11-06 21:44:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'zzy', TO_TIMESTAMP('2024-04-25 12:02:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('2168', '通道管理', '3046', '1', 'sip', 'iot/sip/index', NULL, '1', '0', 'C', '0', '0', 'iot:video:list', 'live', 'admin', TO_TIMESTAMP('2023-02-21 00:21:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-09-24 18:17:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('2169', '视频配置查询', '2168', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:video:query', '#', 'admin', TO_TIMESTAMP('2023-02-22 07:55:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2170', '视频配置新增', '2168', '2', ' ', NULL, NULL, '1', '0', 'F', '0', '0', ' iot:video:add', '#', 'admin', TO_TIMESTAMP('2023-02-22 07:56:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2171', '视频配置修改', '2168', '3', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:video:edit', '#', 'admin', TO_TIMESTAMP('2023-02-22 07:57:26.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2172', '视频配置删除', '2168', '4', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:video:remove', '#', 'admin', TO_TIMESTAMP('2023-02-22 07:58:03.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2173', '固件任务', '3000', '1', 'task', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:task:list', '#', 'admin', TO_TIMESTAMP('2023-02-28 01:17:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '【请填写功能名称】菜单');
INSERT INTO "SYS_MENU" VALUES ('2174', '固件任务查询', '2173', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:task:query', '#', 'admin', TO_TIMESTAMP('2023-02-28 01:18:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2175', '固件任务新增', '2173', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:task:add', '#', 'admin', TO_TIMESTAMP('2023-02-28 01:18:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2176', '固件任务修改', '2173', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:task:edit', '#', 'admin', TO_TIMESTAMP('2023-02-28 01:18:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2177', '固件任务删除', '2173', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:task:remove', '#', 'admin', TO_TIMESTAMP('2023-02-28 01:18:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2178', '固件任务导出', '2173', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:task:export', '#', 'admin', TO_TIMESTAMP('2023-02-28 01:18:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2179', '固件详情', '3000', '1', 'detail', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:detail:list', '#', 'admin', TO_TIMESTAMP('2023-02-28 01:20:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '固件详情菜单');
INSERT INTO "SYS_MENU" VALUES ('2180', '固件详情查询', '2179', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:detail:query', '#', 'admin', TO_TIMESTAMP('2023-02-28 01:20:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2181', '固件详情新增', '2179', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:detail:add', '#', 'admin', TO_TIMESTAMP('2023-02-28 01:20:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2182', '固件详情修改', '2179', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:detail:edit', '#', 'admin', TO_TIMESTAMP('2023-02-28 01:20:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2183', '固件详情删除', '2179', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:detail:remove', '#', 'admin', TO_TIMESTAMP('2023-02-28 01:20:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('2184', '固件详情导出', '2179', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:detail:export', '#', 'admin', TO_TIMESTAMP('2023-02-28 01:20:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3000', '运维管理', '0', '1', 'template', NULL, NULL, '1', '0', 'M', '0', '0', ' ', 'tree', 'admin', TO_TIMESTAMP('2021-12-15 23:57:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-02-28 11:51:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3001', '设备服务下发日志', '2000', '1', 'log', 'iot/log/index', NULL, '1', '0', 'F', '0', '0', 'iot:log:list', '#', 'admin', TO_TIMESTAMP('2023-02-28 11:22:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '设备服务下发日志菜单');
INSERT INTO "SYS_MENU" VALUES ('3002', '设备服务下发日志查询', '3001', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:log:query', '#', 'admin', TO_TIMESTAMP('2023-02-28 11:22:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3003', '设备服务下发日志新增', '3001', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:log:add', '#', 'admin', TO_TIMESTAMP('2023-02-28 11:22:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3004', '设备服务下发日志修改', '3001', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:log:edit', '#', 'admin', TO_TIMESTAMP('2023-02-28 11:22:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3005', '设备服务下发日志删除', '3001', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:log:remove', '#', 'admin', TO_TIMESTAMP('2023-02-28 11:22:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3006', '设备服务下发日志导出', '3001', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:log:export', '#', 'admin', TO_TIMESTAMP('2023-02-28 11:22:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3007', '协议管理', '3000', '1', 'protocol', 'iot/protocol/index', NULL, '1', '0', 'C', '0', '0', 'iot:protocol:list', 'connect', 'admin', TO_TIMESTAMP('2023-02-28 11:26:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-12 22:02:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '协议菜单');
INSERT INTO "SYS_MENU" VALUES ('3008', '协议查询', '3007', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:protocol:query', '#', 'admin', TO_TIMESTAMP('2023-02-28 11:26:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3009', '协议新增', '3007', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:protocol:add', '#', 'admin', TO_TIMESTAMP('2023-02-28 11:26:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3010', '协议修改', '3007', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:protocol:edit', '#', 'admin', TO_TIMESTAMP('2023-02-28 11:26:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3011', '协议删除', '3007', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:protocol:remove', '#', 'admin', TO_TIMESTAMP('2023-02-28 11:26:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3012', '协议导出', '3007', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:protocol:export', '#', 'admin', TO_TIMESTAMP('2023-02-28 11:26:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3031', 'Netty管理', '0', '7', 'netty', NULL, NULL, '1', '0', 'M', '0', '0', ' ', 'mq', 'admin', TO_TIMESTAMP('2022-02-26 00:42:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-09-27 01:48:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3032', '客户端', '3031', '1', 'client', 'iot/netty/clients', NULL, '1', '0', 'C', '0', '0', 'iot:emqx:client', 'client', 'admin', TO_TIMESTAMP('2022-02-26 00:45:39.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-06-03 14:11:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3033', '事件日志', '2000', '1', 'log', 'iot/log/index', NULL, '1', '0', 'F', '0', '0', 'iot:event:list', '#', 'admin', TO_TIMESTAMP('2023-03-28 14:23:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '事件日志菜单');
INSERT INTO "SYS_MENU" VALUES ('3034', '事件日志查询', '3033', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:event:query', '#', 'admin', TO_TIMESTAMP('2023-03-28 14:23:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3035', '事件日志新增', '3033', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:event:add', '#', 'admin', TO_TIMESTAMP('2023-03-28 14:23:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3036', '事件日志修改', '3033', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:event:edit', '#', 'admin', TO_TIMESTAMP('2023-03-28 14:23:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3037', '事件日志删除', '3033', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:event:remove', '#', 'admin', TO_TIMESTAMP('2023-03-28 14:23:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3038', '事件日志导出', '3033', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'iot:event:export', '#', 'admin', TO_TIMESTAMP('2023-03-28 14:23:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3044', '服务下发', '2007', '9', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:service:invoke', '#', 'admin', TO_TIMESTAMP('2023-06-29 22:55:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-19 11:40:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3046', '视频中心', '0', '3', 'video', NULL, NULL, '1', '0', 'M', '0', '0', ' ', 'build', 'admin', TO_TIMESTAMP('2023-05-16 22:05:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-07-06 16:22:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3047', '分屏显示', '3046', '0', 'splitview', 'iot/sip/splitview', NULL, '1', '0', 'C', '0', '0', ' ', 'build', 'admin', TO_TIMESTAMP('2023-05-16 22:08:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-05-20 15:31:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3048', '视频配置', '3046', '2', 'mediaServer', 'iot/sip/mediaServer', NULL, '1', '0', 'C', '0', '0', ' ', 'edit', 'admin', TO_TIMESTAMP('2023-05-16 22:09:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-09-24 18:17:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3049', '数据可视化', '0', '4', 'screen', NULL, NULL, '1', '0', 'M', '0', '0', ' ', 'monitor-a', 'admin', TO_TIMESTAMP('2023-07-06 16:16:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-07-06 16:29:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3051', '规则引擎', '0', '4', 'ruleengine', NULL, NULL, '1', '0', 'M', '0', '0', ' ', 'channel', 'admin', TO_TIMESTAMP('2023-07-03 21:22:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-13 10:46:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3052', '可视化大屏', '3049', '3', 'https://iot.fastbee.cn/view/#/chart/preview/8bfbff4471264767a6b34f9da254de44', NULL, NULL, '0', '0', 'C', '0', '0', ' ', 'monitor', 'admin', TO_TIMESTAMP('2023-07-06 16:52:01.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-11-09 15:59:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3055', '规则脚本', '3051', '2', 'script', 'iot/scene/script', NULL, '1', '0', 'C', '0', '0', 'iot:script:list', 'code', 'admin', TO_TIMESTAMP('2023-07-06 21:03:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-02-18 16:27:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3099', '录像管理', '3046', '3', 'record', 'iot/record/record', NULL, '1', '0', 'C', '0', '0', ' ', 'video', 'admin', TO_TIMESTAMP('2023-05-16 22:09:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-09-24 18:14:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3100', 'Mqtt统计', '3031', '2', 'mqtt', 'iot/netty/mqtt', NULL, '1', '0', 'C', '0', '0', 'monitor:server:list', 'monitor', 'admin', TO_TIMESTAMP('2023-09-02 22:16:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3102', '通知渠道', '3000', '7', 'channel', 'notify/channel/index', NULL, '1', '0', 'C', '0', '0', 'notify:channel:list', 'notify_channel', 'admin', TO_TIMESTAMP('2023-12-01 10:18:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-03 11:00:37.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '通知渠道菜单');
INSERT INTO "SYS_MENU" VALUES ('3103', '通知渠道查询', '3102', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'notify:channel:query', '#', 'admin', TO_TIMESTAMP('2023-12-01 10:18:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-03 11:01:24.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3104', '通知渠道新增', '3102', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'notify:channel:add', '#', 'admin', TO_TIMESTAMP('2023-12-01 10:18:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-03 11:01:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3105', '通知渠道修改', '3102', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'notify:channel:edit', '#', 'admin', TO_TIMESTAMP('2023-12-01 10:18:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-03 11:01:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3106', '通知渠道删除', '3102', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'notify:channel:remove', '#', 'admin', TO_TIMESTAMP('2023-12-01 10:18:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-03 11:01:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3107', '通知渠道导出', '3102', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'notify:channel:export', '#', 'admin', TO_TIMESTAMP('2023-12-01 10:18:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-03 11:01:52.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3108', '通知模板', '3000', '7', 'notifyTemplate', 'notify/template/index', NULL, '1', '0', 'C', '0', '0', 'notify:template:list', 'template', 'admin', TO_TIMESTAMP('2023-12-22 15:19:44.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-03 11:02:12.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3109', '通知模板查询', '3108', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'notify:template:query', '#', 'admin', TO_TIMESTAMP('2024-01-03 11:02:55.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3110', '通知模板新增', '3108', '2', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'notify:template:add', '#', 'admin', TO_TIMESTAMP('2024-01-03 11:03:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3299', 'modbus配置查询', '3298', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'modbus:config:query', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3300', 'modbus配置新增', '3298', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'modbus:config:add', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3301', 'modbus配置修改', '3298', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'modbus:config:edit', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3302', 'modbus配置删除', '3298', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'modbus:config:remove', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3303', 'modbus配置导出', '3298', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'modbus:config:export', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3304', '指令偏好设置', '2007', '1', 'preferences', ' ', NULL, '1', '0', 'M', '0', '0', 'order:preferences:list', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '指令偏好设置菜单');
INSERT INTO "SYS_MENU" VALUES ('3305', '指令偏好设置查询', '3304', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'order:preferences:query', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3306', '指令偏好设置新增', '3304', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'order:preferences:add', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3307', '指令偏好设置修改', '3304', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'order:preferences:edit', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3308', '指令偏好设置删除', '3304', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'order:preferences:remove', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3309', '指令偏好设置导出', '3304', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'order:preferences:export', '#', 'admin', TO_TIMESTAMP('2024-07-22 14:51:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3310', '指令权限', '3000', '1', 'control', 'iot/order/index', NULL, '1', '0', 'C', '0', '0', 'order:control:list', 'switch', 'admin', TO_TIMESTAMP('2024-07-15 22:57:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-07-18 13:56:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '指令权限控制菜单');
INSERT INTO "SYS_MENU" VALUES ('3311', '指令权限控制查询', '3310', '1', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'order:control:query', '#', 'admin', TO_TIMESTAMP('2024-07-15 22:57:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3312', '指令权限控制新增', '3310', '2', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'order:control:add', '#', 'admin', TO_TIMESTAMP('2024-07-15 22:57:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3313', '指令权限控制修改', '3310', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'order:control:edit', '#', 'admin', TO_TIMESTAMP('2024-07-15 22:57:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3314', '指令权限控制删除', '3310', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'order:control:remove', '#', 'admin', TO_TIMESTAMP('2024-07-15 22:57:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3315', '指令权限控制导出', '3310', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'order:control:export', '#', 'admin', TO_TIMESTAMP('2024-07-15 22:57:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3316', '场景管理', '0', '1', 'scene', NULL, NULL, '1', '0', 'M', '0', '0', ' ', 'scene', 'admin', TO_TIMESTAMP('2024-05-17 17:28:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-05-23 11:43:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3317', '场景列表', '3316', '1', 'list/index', 'scene/list/index', ' ', '1', '0', 'C', '0', '0', 'scene:model:list', 'product', 'admin', TO_TIMESTAMP('2024-05-17 17:33:46.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-05-23 11:37:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3318', '变量列表', '3317', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'scene:modelData:list', '#', 'admin', TO_TIMESTAMP('2024-07-29 14:40:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3319', '场景变量启用', '3317', '2', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'scene:modelData:editEnable', '#', 'admin', TO_TIMESTAMP('2024-07-29 10:28:14.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3320', '场景列表查询', '3317', '3', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scene:model:query', '#', 'admin', TO_TIMESTAMP('2024-05-20 00:54:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-05-23 11:37:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3321', '场景列表新增', '3317', '4', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scene:model:add', '#', 'admin', TO_TIMESTAMP('2024-05-20 00:54:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-05-23 11:38:05.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3322', '场景列表修改', '3317', '5', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scene:model:edit', '#', 'admin', TO_TIMESTAMP('2024-05-20 00:54:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-05-23 11:38:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3323', '场景列表删除', '3317', '6', '#', ' ', NULL, '1', '0', 'F', '0', '0', 'scene:model:remove', '#', 'admin', TO_TIMESTAMP('2024-05-20 00:54:37.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-05-23 11:38:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3324', '场景组态设计', '3317', '7', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'scene:model:scada:design', '#', 'admin', TO_TIMESTAMP('2024-05-23 16:08:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-05-23 16:09:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3325', '场景组态运行', '3317', '8', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'scene:model:scada:run', '#', 'admin', TO_TIMESTAMP('2024-05-23 16:10:15.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3326', '视频监控', '3317', '9', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'scene:SipRelation:list', '#', 'admin', TO_TIMESTAMP('2024-07-29 10:22:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3327', '设备配置列表', '3316', '2', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'scene:modelDevice:list', '#', 'admin', TO_TIMESTAMP('2024-07-29 10:06:31.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-07-29 10:17:33.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3328', '设备配置新增', '3327', '2', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'scene:modelDevice:add', '#', 'admin', TO_TIMESTAMP('2024-07-29 10:07:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-07-29 10:12:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3329', '设备配置修改', '3327', '3', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'scene:modelDevice:edit', '#', 'admin', TO_TIMESTAMP('2024-07-29 10:07:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-07-29 10:12:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3330', '设备配置删除', '3327', '4', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'scene:modelDevice:remove', '#', 'admin', TO_TIMESTAMP('2024-07-29 10:08:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-07-29 10:12:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3331', '设备变量列表', '3316', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'scene:modelDeviceData:list', '#', 'admin', TO_TIMESTAMP('2024-07-29 10:12:17.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3332', '场景变量列表', '3331', '3', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'scene:modelTag:list', '#', 'admin', TO_TIMESTAMP('2024-07-29 10:17:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3333', '场景变量查看', '3331', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'scene:modelTag:query', '#', 'admin', TO_TIMESTAMP('2024-07-29 10:25:05.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3334', '场景变量新增', '3331', '2', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'scene:modelTag:add', '#', 'admin', TO_TIMESTAMP('2024-07-29 10:25:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3335', '场景变量修改', '3331', '3', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'scene:modelTag:edit', '#', 'admin', TO_TIMESTAMP('2024-07-29 10:26:47.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3336', '场景变量删除', '3331', '4', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'scene:modelTag:remove', '#', 'admin', TO_TIMESTAMP('2024-07-29 10:27:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3337', '国际化配置', '1', '2', 'appLang', 'system/app/lang', NULL, '1', '0', 'C', '0', '0', 'app:language:list', 'international', 'sunrain', TO_TIMESTAMP('2024-05-20 14:15:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'sunrain', TO_TIMESTAMP('2024-05-22 17:33:56.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3338', '国际化配置新增', '3337', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'app:language:add', '#', 'sunrain', TO_TIMESTAMP('2024-05-20 14:16:11.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'sunrain', TO_TIMESTAMP('2024-05-20 14:27:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3339', '国际化配置查询', '3337', '2', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'app:language:query', '#', 'sunrain', TO_TIMESTAMP('2024-05-20 14:16:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'sunrain', TO_TIMESTAMP('2024-05-20 14:27:32.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3340', '国际化配置修改', '3337', '3', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'app:language:edit', '#', 'sunrain', TO_TIMESTAMP('2024-05-20 14:17:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'sunrain', TO_TIMESTAMP('2024-05-20 14:27:21.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3341', '国际化配置删除', '3337', '4', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'app:language:remove', '#', 'sunrain', TO_TIMESTAMP('2024-05-20 14:19:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'sunrain', TO_TIMESTAMP('2024-05-20 14:27:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3342', '国际化配置导出', '3337', '5', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'app:language:export', '#', 'sunrain', TO_TIMESTAMP('2024-05-20 14:19:53.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'sunrain', TO_TIMESTAMP('2024-05-20 14:27:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3343', '数据中心', '0', '4', 'dataCenter', NULL, NULL, '1', '0', 'M', '0', '0', NULL, 'column-chart', 'admin', TO_TIMESTAMP('2024-05-24 14:42:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3344', '数据分析', '3343', '2', 'analysis', 'dataCenter/analysis', NULL, '1', '0', 'C', '0', '0', 'dataCenter:analysis:list', 'curve-chart', 'admin', TO_TIMESTAMP('2024-06-11 15:46:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3345', '历史记录', '3343', '1', 'history', 'dataCenter/history', NULL, '1', '0', 'C', '0', '0', 'dataCenter:history:list', 'excel', 'admin', TO_TIMESTAMP('2024-05-24 14:44:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-05-24 14:46:07.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3346', '历史记录查询', '3345', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'dataCenter:history:query', '#', 'admin', TO_TIMESTAMP('2024-05-24 14:46:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-05-24 14:47:26.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3347', '模板组态', '3159', '1', 'center/temp', 'scada/center/tempScada', NULL, '1', '0', 'C', '0', '0', 'scada:center:list', 'template', 'admin', TO_TIMESTAMP('2024-03-01 11:38:48.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-06-01 17:18:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '组态中心菜单');
INSERT INTO "SYS_MENU" VALUES ('3348', '场景组态', '3159', '1', 'center/scene', 'scada/center/sceneScada', NULL, '1', '0', 'C', '0', '0', 'scada:center:list', 'scene', 'admin', TO_TIMESTAMP('2024-05-16 18:32:47.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-07-24 15:43:38.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3349', '平台下发指令', '2007', '10', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:message:post', '#', 'admin', TO_TIMESTAMP('2024-08-02 09:59:50.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3350', '指令编码', '2007', '11', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:message:encode', '#', 'admin', TO_TIMESTAMP('2024-08-02 10:00:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3351', '指令解码', '2007', '12', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:message:decode', '#', 'admin', TO_TIMESTAMP('2024-08-02 10:00:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3352', '子设备', '2007', '10', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'sub:gateway:list', '#', 'admin', TO_TIMESTAMP('2024-08-06 14:26:36.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3353', '子设备详情', '3352', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'sub:gateway:query', '#', 'admin', TO_TIMESTAMP('2024-08-06 14:27:26.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3354', '子设备新增', '3352', '2', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'sub:gateway:add', '#', 'admin', TO_TIMESTAMP('2024-08-06 14:27:37.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3355', '子设备修改', '3352', '3', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'sub:gateway:edit', '#', 'admin', TO_TIMESTAMP('2024-08-06 14:28:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3356', '子设备删除', '3352', '4', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'sub:gateway:remove', '#', 'admin', TO_TIMESTAMP('2024-08-06 14:28:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3357', '组态中心分享', '3159', '11', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'scada:center:share', '#', 'admin', TO_TIMESTAMP('2024-08-19 17:31:42.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-08-19 17:32:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3358', '设备绑定', '2168', '5', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:relation:add', '#', 'admin', TO_TIMESTAMP('2024-08-06 14:28:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3359', '监控设备关联列表', '2168', '6', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:relation:list', '#', 'admin', TO_TIMESTAMP('2024-09-26 15:42:23.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3360', '监控设备关联详细', '2168', '7', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:relation:query', '#', 'admin', TO_TIMESTAMP('2024-09-26 15:43:06.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3361', '监控设备关联修改', '2168', '8', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:relation:edit', '#', 'admin', TO_TIMESTAMP('2024-09-26 15:44:37.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3362', '监控设备关联删除', '2168', '9', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:relation:remove', '#', 'admin', TO_TIMESTAMP('2024-09-26 15:45:10.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3363', '产品modbus关联子产品', '2043', '16', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'productModbus:gateway:list', '#', 'admin', TO_TIMESTAMP('2024-09-11 14:44:04.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-09-11 14:48:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3364', '新增产品modbus关联子产品', '3363', '0', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'productModbus:gateway:add', '#', 'admin', TO_TIMESTAMP('2024-09-11 14:45:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3365', '修改产品modbus关联子产品', '3363', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'productModbus:gateway:edit', '#', 'admin', TO_TIMESTAMP('2024-09-11 14:45:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3366', '删除产品modbus关联子产品', '3363', '2', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'productModbus:gateway:remove', '#', 'admin', TO_TIMESTAMP('2024-09-11 14:46:20.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3367', '产品modbus轮询任务', '2043', '17', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'productModbus:job:list', '#', 'admin', TO_TIMESTAMP('2024-09-11 14:47:40.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-09-11 14:48:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ');
INSERT INTO "SYS_MENU" VALUES ('3368', '新增产品modbus轮询任务', '3367', '0', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'productModbus:job:add', '#', 'admin', TO_TIMESTAMP('2024-09-11 14:48:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3369', '修改产品modbus轮询任务', '3367', '1', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'productModbus:job:edit', '#', 'admin', TO_TIMESTAMP('2024-09-11 14:48:54.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3370', '删除产品modbus轮询任务', '3367', '2', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'productModbus:job:remove', '#', 'admin', TO_TIMESTAMP('2024-09-11 14:54:59.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3371', 'modbus配置导入', '3298', '6', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'modbus:config:import', '#', 'admin', TO_TIMESTAMP('2024-09-11 16:10:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');
INSERT INTO "SYS_MENU" VALUES ('3372', '固件升级推送', '2173', '6', ' ', NULL, NULL, '1', '0', 'F', '0', '0', 'iot:task:upgrade', '#', 'admin', TO_TIMESTAMP('2024-09-11 16:10:35.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, ' ');

-- ----------------------------
-- Primary Key structure for table SYS_MENU
-- ----------------------------
ALTER TABLE "SYS_MENU" ADD CONSTRAINT "SYS_C0012614" PRIMARY KEY ("MENU_ID");

-- ----------------------------
-- Checks structure for table SYS_MENU
-- ----------------------------
ALTER TABLE "SYS_MENU" ADD CONSTRAINT "SYS_C0012450" CHECK ("MENU_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_MENU" ADD CONSTRAINT "SYS_C0012451" CHECK ("MENU_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SYS_MENU
-- ----------------------------
CREATE TRIGGER "SYS_MENU_MENU_ID_TRIG" BEFORE INSERT OR UPDATE ON "SYS_MENU" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.menu_id IS NULL THEN
SELECT  sys_menu_menu_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(menu_id),0) INTO v_newVal FROM sys_menu;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT sys_menu_menu_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.menu_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SYS_MENU_TRANSLATE
-- ----------------------------
DROP TABLE "SYS_MENU_TRANSLATE";
CREATE TABLE "SYS_MENU_TRANSLATE" (
                                                "ID" NUMBER(38,0) NOT NULL,
                                                "ZH_CN" VARCHAR2(200 CHAR),
                                                "EN_US" VARCHAR2(200 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_MENU_TRANSLATE"."ID" IS '菜单ID';
COMMENT ON COLUMN "SYS_MENU_TRANSLATE"."ZH_CN" IS 'zh_CN菜单名称';
COMMENT ON COLUMN "SYS_MENU_TRANSLATE"."EN_US" IS 'en菜单名称';
COMMENT ON TABLE "SYS_MENU_TRANSLATE" IS '菜单权限翻译表';

-- ----------------------------
-- Records of SYS_MENU_TRANSLATE
-- ----------------------------
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3369', '修改产品modbus轮询任务', 'Modify product Modbus polling task');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3370', '删除产品modbus轮询任务', 'Delete product Modbus polling task');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3371', 'modbus配置导入', 'Modbus configuration import');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1', '系统管理', 'system management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2', '系统监控', 'System monitoring');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3', '系统工具', 'System Tools');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('4', '蜂信物联', 'Bee Trust IoT');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('5', '企业管理', 'business management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('100', '用户管理', 'user management ');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('101', '角色管理', 'Role management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('102', '菜单管理', 'Menu management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('103', '机构管理', 'organizational management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('104', '岗位管理', 'Job management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('105', '字典管理', 'Dictionary management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('106', '参数设置', 'Parameter settings');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('107', '通知公告', 'Notice Announcement');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('108', '日志管理', 'Log management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('109', '在线用户', 'Online users');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('110', '定时任务', 'Scheduled tasks');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('111', '数据监控', 'Data monitoring');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('112', '服务监控', 'Service monitoring');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('113', '缓存监控', 'Cache monitoring');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('114', '表单构建', 'Form construction');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('115', '代码生成', 'code generation');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('116', '系统接口', 'system interface ');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('124', '缓存列表', 'Cache List');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('500', '操作日志', 'Operation log');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('501', '登录日志', 'Login log');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1001', '用户查询', 'User query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1002', '用户新增', 'User addition');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1003', '用户修改', 'User modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1004', '用户删除', 'User deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1005', '用户导出', 'User export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1006', '用户导入', 'User import');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1007', '重置密码', 'reset password ');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1008', '角色查询', 'Role query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1009', '角色新增', 'New role addition');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1010', '角色修改', 'Role modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1011', '角色删除', 'Role deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1012', '角色导出', 'Character export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1013', '菜单查询', 'Menu query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1014', '菜单新增', 'Menu addition');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1015', '菜单修改', 'Menu modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1016', '菜单删除', 'Menu deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1017', '部门查询', 'Departmental inquiry');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1018', '部门新增', 'Department addition');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1019', '部门修改', 'Department modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1020', '部门删除', 'Department deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1021', '岗位查询', 'Job Search');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1022', '岗位新增', 'Job addition');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1023', '岗位修改', 'Position modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1024', '岗位删除', 'Position deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1025', '岗位导出', 'Job export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1026', '字典查询', 'Dictionary query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1027', '字典新增', 'Dictionary addition');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1028', '字典修改', 'Dictionary modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1029', '字典删除', 'Dictionary deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1030', '字典导出', 'Dictionary export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1031', '参数查询', 'Parameter query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1032', '参数新增', 'Parameter addition');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1033', '参数修改', 'Parameter modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1034', '参数删除', 'Parameter deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1035', '参数导出', 'Parameter export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1036', '公告查询', 'Announcement inquiry');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1037', '公告新增', 'Announcement added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1038', '公告修改', 'Announcement modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1039', '公告删除', 'Announcement deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1040', '操作查询', 'Operation query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1041', '操作删除', 'Operation deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1042', '日志导出', 'Log export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1043', '登录查询', 'Login query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1044', '登录删除', 'Login Delete');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1045', '日志导出', 'Log export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1046', '在线查询', 'Online inquiry');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1047', '批量强退', 'Batch forced refunds');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1048', '单条强退', 'Single strong refund');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1049', '任务查询', 'Task query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1050', '任务新增', 'Task addition');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1051', '任务修改', 'Task modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1052', '任务删除', 'Task deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1053', '状态修改', 'Status modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1054', '任务导出', 'Task export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1055', '生成查询', 'Generate query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1056', '生成修改', 'Generate modifications');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1057', '生成删除', 'Generate Delete');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1058', '导入代码', 'Import code');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1059', '预览代码', 'Preview code');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1060', '生成代码', 'Generate code');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('1065', '账户解锁', 'Account unlocking');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2000', '设备管理', 'device management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2001', '产品分类', 'Product classification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2002', '产品分类查询', 'Product classification query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2003', '产品分类新增', 'Product classification added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2004', '产品分类修改', 'Product classification modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2005', '产品分类删除', 'Delete product category');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2006', '产品分类导出', 'Product classification export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2007', '设备管理', 'device management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2008', '设备查询', 'Equipment inquiry');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2009', '设备新增', 'Equipment addition');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2010', '设备修改', 'Equipment modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2011', '设备删除', 'Device deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2012', '设备导出', 'Device export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2013', '产品固件', 'Product firmware');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2014', '产品固件查询', 'Product firmware query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2015', '产品固件新增', 'Product firmware addition');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2016', '产品固件修改', 'Product firmware modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2017', '产品固件删除', 'Product firmware deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2018', '产品固件导出', 'Product firmware export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2019', '设备分组', 'Equipment grouping');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2020', '设备分组查询', 'Equipment grouping query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2021', '设备分组新增', 'New equipment grouping');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2022', '设备分组修改', 'Equipment grouping modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2023', '设备分组删除', 'Device group deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2024', '设备分组导出', 'Equipment group export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2043', '产品管理', 'product management ');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2044', '产品查询', 'Product inquiry');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2045', '产品新增', 'Product addition');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2046', '产品修改', 'Product modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2047', '产品删除', 'Product deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2048', '产品导出', 'Product export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2049', '通用物模型', 'Universal object model');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2050', '通用物模型查询', 'General object model query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2051', '通用物模型新增', 'Addition of Universal Object Model');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2052', '通用物模型修改', 'Modification of Universal Object Model');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2053', '通用物模型删除', 'Universal object model deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2054', '通用物模型导出', 'Export of Universal Object Model');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2067', '告警记录', 'Alarm Log ');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2068', '设备告警查询', 'Equipment alarm query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2069', '设备告警新增', 'Equipment alarm addition');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2070', '设备告警修改', 'Equipment alarm modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2071', '设备告警删除', 'Device alarm deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2072', '设备告警导出', 'Equipment alarm export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2085', '场景联动', 'Scene linkage');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2086', '场景联动查询', 'Scene linkage query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2087', '场景联动新增', 'New scene linkage');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2088', '场景联动修改', 'Scene linkage modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2089', '场景联动删除', 'Scene linkage deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2090', '场景联动导出', 'Scene linkage export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2099', '云云对接查询', 'Cloud to cloud docking query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2100', '云云对接新增', 'Cloud to Cloud Connection Added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2101', '云云对接修改', 'Yunyun docking modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2102', '云云对接删除', 'Cloud docking deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2103', '云云对接导出', 'Cloud docking export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2104', 'EMQ管理', 'EMQ Management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2123', '新闻分类', 'News classification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2124', '新闻分类查询', 'News classification query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2125', '新闻分类新增', 'New news category added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2126', '新闻分类修改', 'News classification modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2127', '新闻分类删除', 'Delete news category');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2128', '新闻分类导出', 'Export news categories');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2129', '新闻资讯', 'News and Information');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2130', '新闻资讯查询', 'News and Information Inquiry');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2131', '新闻资讯新增', 'New news and information added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2132', '新闻资讯修改', 'News and Information Modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2133', '新闻资讯删除', 'Delete news and information');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2134', '新闻资讯导出', 'Export news and information');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2136', '产品授权码查询', 'Product authorization code query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2137', '产品授权码新增', 'Product authorization code added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2138', '产品授权码修改', 'Product authorization code modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2139', '产品授权码删除', 'Product authorization code deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2140', '产品授权码导出', 'Export of Product Authorization Code');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2141', '三方登录', 'Three party login');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2142', '平台查询', 'Platform query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2147', '设备用户列表', 'List of device users');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2148', '设备定时', 'Equipment timing');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2149', '固定大屏', 'Fixed large screen');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2167', '可视化管理', 'Visual management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2168', '通道管理', 'Channel management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2169', '视频配置查询', 'Video configuration query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2170', '视频配置新增', 'Video configuration added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2171', '视频配置修改', 'Video configuration modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2172', '视频配置删除', 'Video configuration deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2173', '固件任务', 'Firmware task');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2174', '固件任务查询', 'Firmware task query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2175', '固件任务新增', 'New firmware task added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2176', '固件任务修改', 'Firmware task modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2177', '固件任务删除', 'Firmware task deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2178', '固件任务导出', 'Firmware task export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2179', '固件详情', 'Firmware Details');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2180', '固件详情查询', 'Firmware Details Query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2181', '固件详情新增', 'Firmware details added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2182', '固件详情修改', 'Firmware details modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2183', '固件详情删除', 'Firmware details deleted');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('2184', '固件详情导出', 'Firmware details export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3000', '运维管理', 'Mocha ITOM ');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3001', '设备服务下发日志', 'Device service issuance log');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3002', '设备服务下发日志查询', 'Device service issuance log query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3003', '设备服务下发日志新增', 'Add new logs for device service issuance');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3004', '设备服务下发日志修改', 'Device service issue log modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3005', '设备服务下发日志删除', 'Device service issues log deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3006', '设备服务下发日志导出', 'Export logs issued by device services');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3007', '协议管理', 'Protocol management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3008', '协议查询', 'Protocol inquiry');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3009', '协议新增', 'Protocol addition');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3010', '协议修改', 'Protocol modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3011', '协议删除', 'Protocol deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3012', '协议导出', 'Protocol export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3031', 'Netty管理', 'Netty Management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3032', '客户端', 'client');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3033', '事件日志', 'Event log');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3034', '事件日志查询', 'Event log query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3035', '事件日志新增', 'Event log addition');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3036', '事件日志修改', 'Event log modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3037', '事件日志删除', 'Event log deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3038', '事件日志导出', 'Event log export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3044', '服务下发', 'Service Issuance');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3046', '视频中心', 'Video Center');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3047', '分屏显示', 'Split screen display');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3048', '视频配置', 'Video configuration');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3049', '数据可视化', 'Data visualization');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3051', '规则引擎', 'Rule engine');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3052', '可视化大屏', 'Visual large screen');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3055', '规则脚本', 'Rule Script');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3099', '录像管理', 'Video management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3100', 'Mqtt统计', 'Mqtt statistics');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3102', '通知渠道', 'Notification channels');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3103', '通知渠道查询', 'Notification channel inquiry');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3104', '通知渠道新增', 'Notification channel added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3105', '通知渠道修改', 'Notification channel modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3106', '通知渠道删除', 'Notification channel deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3107', '通知渠道导出', 'Notification channel export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3108', '通知模板', 'Notification Template');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3109', '通知模板查询', 'Notification template query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3110', '通知模板新增', 'Notification Template Added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3111', '通知模板修改', 'Notification Template Modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3112', '通知模板删除', 'Notification template deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3113', '通知模板导出', 'Notification Template Export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3114', '通知模板测试', 'Notification Template Testing');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3115', '通知日志', 'Notification log');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3116', '通知日志导出', 'Notification log export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3117', '通知日志删除', 'Notification log deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3147', '告警配置', 'Alarm configuration');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3148', '规则脚本导出', 'Rule script export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3149', '规则脚本查询', 'Rule script query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3150', '规则脚本新增', 'New rule script added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3151', '规则脚本修改', 'Rule script modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3152', '规则脚本删除', 'Rule script deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3153', '告警配置导出', 'Alarm configuration export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3154', '告警配置查询', 'Alarm configuration query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3155', '告警配置新增', 'Alarm configuration added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3156', '告警配置修改', 'Alarm configuration modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3157', '告警配置删除', 'Alarm configuration deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3158', '通知日志详情', 'Notification log details');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3159', '组态管理', 'Configuration management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3160', '独立组态', 'Independent configuration');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3161', '组态中心查询', 'Configuration Center Query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3162', '组态中心新增', 'New configuration center added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3163', '组态中心修改', 'Configuration Center Modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3164', '组态中心删除', 'Delete configuration center');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3165', '组态中心导出', 'Export from Configuration Center');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3166', '图表管理', 'Chart management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3167', '图表管理查询', 'Chart management query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3168', '图表管理新增', 'Chart Management Added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3169', '图表管理修改', 'Chart management modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3170', '图表管理删除', 'Chart management deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3171', '图表管理导出', 'Chart management export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3172', '图库管理', 'Library Management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3173', '图库管理查询', 'Library management query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3174', '图库管理新增', 'Library Management Added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3175', '图库管理修改', 'Library management modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3176', '图库管理删除', 'Library Management Delete');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3177', '图库管理导出', 'Library Management Export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3178', '模型管理', 'Model management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3179', '模型管理查询', 'Model management query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3180', '模型管理新增', 'New Model Management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3181', '模型管理修改', 'Model management modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3182', '模型管理删除', 'Model management deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3183', '模型管理导出', 'Model management export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3184', '组件管理', 'Component Management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3185', '组件管理查询', 'Component management query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3186', '组件管理新增', 'New Component Management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3187', '组件管理修改', 'Component management modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3188', '组件管理删除', 'Component management deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3189', '组件管理导出', 'Component management export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3190', '云云对接', 'Cloud to Cloud Connection');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3191', '音箱配置', 'Speaker configuration');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3197', '小度音箱', 'Xiaodu speaker');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3198', '关联产品查询', 'Related product query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3199', '关联物模查询', 'Related Model Query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3200', '关联产品新增', 'Add related products');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3201', '关联产品删除', 'Related product deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3202', '关联产品编辑', 'Related product editing');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3203', '关联物模编辑', 'Related Model Editing');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3204', '关联物模删除', 'Related object model deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3205', '组态详情预览', 'Preview of configuration details');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3206', '产品模型列表', 'Product Model List');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3207', '产品模型详情', 'Product Model Details');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3208', '产品模型导入', 'Product model import');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3209', '产品模型新增', 'Product Model Addition');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3210', '产品模型修改', 'Product model modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3211', '产品模型删除', 'Product model deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3214', '设备定时详情', 'Equipment timing details');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3215', '设备定时新增', 'Equipment scheduled addition');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3216', '设备定时修改', 'Equipment scheduled modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3217', '设备定时执行', 'Equipment scheduled execution');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3218', '设备定时删除', 'Equipment scheduled deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3219', '设备用户详情', 'Device User Details');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3220', '分享设备', 'Share devices');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3221', '设备用户修改', 'Device user modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3222', '取消分享', 'Cancel sharing');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3223', '录像管理列表', 'Video management list');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3224', '查看录像', 'View video recording');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3225', '录像下载', 'Video download');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3226', '场景联动执行', 'Scene linkage execution');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3227', '字典刷新', 'Dictionary refresh');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3228', '参数刷新', 'Parameter refresh');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3229', '三方登录详情', 'Three party login details');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3230', '三方登录新增', 'Three party login added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3231', '三方登录修改', 'Three party login modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3232', '三方登录导出', 'Three party login export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3233', '三方登录删除', 'Three party login deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3234', '任务执行', 'Task Execution');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3235', '缓存列表', 'Cache List');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3236', '缓存删除', 'Cache deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3237', '客户端列表', 'Client List');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3238', '客户端踢出', 'Client kicked out');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3239', '设备分配', 'Equipment allocation');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3240', '设备回收', 'Equipment recycling');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3247', '设备分享列表', 'Equipment Sharing List');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3248', '设备分享用户', 'Device Sharing Users');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3249', '设备分享详情', 'Device Sharing Details');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3250', '设备分享新增', 'New device sharing');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3251', '设备分享修改', 'Device sharing and modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3252', '设备分享删除', 'Device sharing and deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3253', '设备分享导出', 'Device sharing export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3254', '设备定时导出', 'Equipment timed export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3255', '设备联动', 'Equipment linkage');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3256', '终端用户', 'end user');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3257', '告警用户', 'Alert user');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3258', '告警用户查询', 'Alarm user query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3259', '告警用户新增', 'Alarm user addition');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3260', '告警用户删除', 'Alarm user to delete');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3261', '文件记录', 'files recording');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3262', '文件记录查询', 'File record query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3263', '文件记录新增', 'File record addition');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3264', '文件记录修改', 'Document record modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3265', '文件记录删除', 'File record deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3266', '文件记录导出', 'Export file records');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3267', '文件存储配置新增', 'New file storage configuration added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3268', '文件存储配置修改', 'File storage configuration modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3269', '文件存储配置删除', 'File storage configuration deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3270', '数据桥接', 'Data bridging');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3271', '数据桥接查询', 'Data bridging query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3272', '数据桥接新增', 'New addition of data bridging');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3273', '数据桥接修改', 'Data bridging modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3274', '数据桥接删除', 'Data bridging deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3275', '数据桥接导出', 'Data Bridge Export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3276', '密码修改', 'Password modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3277', '设备编号批量生成', 'Batch generation of device numbers');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3278', '设备记录导出', 'Export device records');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3279', '设备记录', 'Equipment records');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3280', '系统授权', 'System authorization');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3281', '系统授权查询', 'System authorization query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3282', '系统授权新增', 'System authorization added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3283', '系统授权修改', 'System authorization modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3284', '系统授权删除', 'System authorization deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3285', '系统授权导出', 'System authorization export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3286', '产品modbus配置参数', 'Product Modbus configuration parameters');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3287', '产品modbus配置参数查询', 'Product Modbus configuration parameter query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3288', '产品modbus配置参数新增', 'New configuration parameters for product Modbus');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3289', '产品modbus配置参数修改', 'Product Modbus configuration parameter modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3290', '产品modbus配置参数删除', 'Product Modbus configuration parameter deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3291', '产品modbus配置参数导出', 'Product Modbus configuration parameter export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3292', '轮训任务', 'Rotation training task');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3293', '轮训任务查询', 'Rotation training task query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3294', '轮训任务新增', 'New rotation training tasks added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3295', '轮训任务修改', 'Modification of rotation training tasks');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3296', '轮训任务删除', 'Delete rotation training task');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3297', '轮训任务导出', 'Export rotation training tasks');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3298', 'modbus配置', 'Modbus configuration');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3299', 'modbus配置查询', 'Modbus configuration query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3300', 'modbus配置新增', 'Modbus configuration added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3301', 'modbus配置修改', 'Modbus configuration modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3302', 'modbus配置删除', 'Modbus configuration deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3303', 'modbus配置导出', 'Modbus configuration export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3304', '指令偏好设置', 'Instruction preference settings');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3305', '指令偏好设置查询', 'Instruction preference setting query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3306', '指令偏好设置新增', 'New instruction preference settings added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3307', '指令偏好设置修改', 'Command preference setting modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3308', '指令偏好设置删除', 'Delete command preference settings');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3309', '指令偏好设置导出', 'Export command preference settings');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3310', '指令权限', 'Command Authority');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3311', '指令权限控制查询', 'Command permission control query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3312', '指令权限控制新增', 'Instruction permission control added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3313', '指令权限控制修改', 'Command permission control modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3314', '指令权限控制删除', 'Command permission control deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3315', '指令权限控制导出', 'Command permission control export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3316', '场景管理', 'Scene management');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3317', '场景列表', 'Scene List');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3318', '变量列表', 'Variable List');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3319', '场景变量启用', 'Enable scene variables');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3320', '场景列表查询', 'Scene List Query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3321', '场景列表新增', 'New scene list added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3322', '场景列表修改', 'Scene list modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3323', '场景列表删除', 'Scene list deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3324', '场景组态设计', 'Scene configuration design');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3325', '场景组态运行', 'Scenario configuration operation');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3326', '视频监控', 'Video surveillance');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3327', '设备配置列表', 'Equipment configuration list');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3328', '设备配置新增', 'New device configuration');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3329', '设备配置修改', 'Equipment configuration modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3330', '设备配置删除', 'Device configuration deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3331', '设备变量列表', 'List of device variables');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3332', '场景变量列表', 'List of scene variables');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3333', '场景变量查看', 'View scene variables');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3334', '场景变量新增', 'New scene variables added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3335', '场景变量修改', 'Scene variable modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3336', '场景变量删除', 'Scene variable deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3337', '国际化配置', 'International configuration');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3338', '国际化配置新增', 'International configuration added');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3339', '国际化配置查询', 'Internationalization configuration query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3340', '国际化配置修改', 'Internationalization configuration modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3341', '国际化配置删除', 'Internationalization configuration deletion');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3342', '国际化配置导出', 'International configuration export');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3343', '数据中心', 'Data Center');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3344', '数据分析', 'Data analysis');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3345', '历史记录', 'Historical records');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3346', '历史记录查询', 'Historical record query');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3347', '模板组态', 'Template configuration');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3348', '场景组态', 'Scene configuration');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3349', '平台下发指令', 'Platform issues instructions');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3350', '指令编码', 'Instruction encoding');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3351', '指令解码', 'Instruction decoding');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3352', '子设备', 'Sub devices');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3353', '子设备详情', 'Details of sub devices');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3354', '子设备新增', 'Addition of sub devices');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3355', '子设备修改', 'Sub device modification');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3356', '子设备删除', 'Delete sub devices');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3357', '组态中心分享', 'scada Sharing');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3358', '设备绑定', 'Device binding');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3359', '监控设备关联列表', 'Watch device association list');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3360', '监控设备关联详细', 'Watch device association detail');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3361', '监控设备关联修改', 'Watch device association edit');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3362', '监控设备关联删除', 'Watch device association remove');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3363', '产品modbus关联子产品', 'Product Modbus related sub products');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3364', '新增产品modbus关联子产品', 'New product Modbus associated sub product');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3365', '修改产品modbus关联子产品', 'Modify product Modbus associated sub products');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3366', '删除产品modbus关联子产品', 'Delete product Modbus associated sub products');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3367', '产品modbus轮询任务', 'Product Modbus polling task');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3368', '新增产品modbus轮询任务', 'New product Modbus polling task');
INSERT INTO "SYS_MENU_TRANSLATE" VALUES ('3372', '固件升级推送', 'Firmware task upgrade');

-- ----------------------------
-- Primary Key structure for table SYS_MENU_TRANSLATE
-- ----------------------------
ALTER TABLE "SYS_MENU_TRANSLATE" ADD CONSTRAINT "SYS_C0012615" PRIMARY KEY ("ID");

-- ----------------------------
-- Checks structure for table SYS_MENU_TRANSLATE
-- ----------------------------
ALTER TABLE "SYS_MENU_TRANSLATE" ADD CONSTRAINT "SYS_C0012452" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for SYS_NOTICE
-- ----------------------------
DROP TABLE "SYS_NOTICE";
CREATE TABLE "SYS_NOTICE" (
                                        "NOTICE_ID" NUMBER(10,0) NOT NULL,
                                        "NOTICE_TITLE" VARCHAR2(66 CHAR) NOT NULL,
                                        "NOTICE_TYPE" CHAR(1 CHAR) NOT NULL,
  "NOTICE_CONTENT" BLOB,
  "STATUS" NUMBER(10,0) DEFAULT 0,
  "CREATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(340 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_NOTICE"."NOTICE_ID" IS '公告ID';
COMMENT ON COLUMN "SYS_NOTICE"."NOTICE_TITLE" IS '公告标题';
COMMENT ON COLUMN "SYS_NOTICE"."NOTICE_TYPE" IS '公告类型（1通知 2公告）';
COMMENT ON COLUMN "SYS_NOTICE"."NOTICE_CONTENT" IS '公告内容';
COMMENT ON COLUMN "SYS_NOTICE"."STATUS" IS '公告状态（0正常 1关闭）';
COMMENT ON COLUMN "SYS_NOTICE"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "SYS_NOTICE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "SYS_NOTICE"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "SYS_NOTICE"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "SYS_NOTICE"."REMARK" IS '备注';
COMMENT ON TABLE "SYS_NOTICE" IS '通知公告表';

-- ----------------------------
-- Records of SYS_NOTICE
-- ----------------------------
INSERT INTO "SYS_NOTICE" VALUES ('1', 'FastBeeV1.2版本发布', '2', HEXTORAW('3C703EE8BF99E698AFE6B58BE8AF95E58685E5AEB9EFBC8CE696B0E78988E69CACE58A9FE883BDEFBC9A3C2F703E3C6F6C3E3C6C693EE694AFE68C81E5A49AE7A79FE688B73C2F6C693E3C6C693EE694AFE68C81E8AEBEE5A487E58886E4BAAB3C2F6C693E3C6C693EE694AFE68C81E697B6E5BA8FE695B0E68DAEE5BA933C2F6C693E3C6C693EE7AE80E58D95E8AEA4E8AF81E5928CE58AA0E5AF86E8AEA4E8AF81E7BB9FE4B8803C2F6C693E3C2F6F6C3E'), '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-09-26 21:21:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '管理员');
INSERT INTO "SYS_NOTICE" VALUES ('2', 'FastBee sdk支持树莓派', '1', HEXTORAW('3C703EE8BF99E698AFE6B58BE8AF95E58685E5AEB9EFBC8CE79BAEE5898D73646BE694AFE68C81E79A84E78988E69CAC3A3C2F703E3C703E3C62723E3C2F703E3C703E3C62723E3C2F703E3C6F6C3E3C6C693E41726475696E6F20657370383236363C2F6C693E3C6C693E41726475696E6F2065737033323C2F6C693E3C6C693E6573702D6964663C2F6C693E3C6C693E72617370626572727920E6A091E88E93E6B4BE3C2F6C693E3C2F6F6C3E'), '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-09-26 21:21:41.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '管理员');

-- ----------------------------
-- Primary Key structure for table SYS_NOTICE
-- ----------------------------
ALTER TABLE "SYS_NOTICE" ADD CONSTRAINT "SYS_C0012616" PRIMARY KEY ("NOTICE_ID");

-- ----------------------------
-- Checks structure for table SYS_NOTICE
-- ----------------------------
ALTER TABLE "SYS_NOTICE" ADD CONSTRAINT "SYS_C0012453" CHECK ("NOTICE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_NOTICE" ADD CONSTRAINT "SYS_C0012454" CHECK ("NOTICE_TITLE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_NOTICE" ADD CONSTRAINT "SYS_C0012455" CHECK ("NOTICE_TYPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SYS_NOTICE
-- ----------------------------
CREATE TRIGGER "SYS_NOTICE_NOTICE_ID_TRIG" BEFORE INSERT OR UPDATE ON "SYS_NOTICE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.notice_id IS NULL THEN
SELECT  sys_notice_notice_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(notice_id),0) INTO v_newVal FROM sys_notice;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT sys_notice_notice_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.notice_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SYS_OPER_LOG
-- ----------------------------
DROP TABLE "SYS_OPER_LOG";
CREATE TABLE "SYS_OPER_LOG" (
                                          "OPER_ID" NUMBER(38,0) NOT NULL,
                                          "TITLE" VARCHAR2(66 CHAR) DEFAULT '',
                                          "BUSINESS_TYPE" NUMBER(10,0) DEFAULT 0,
                                          "METHOD" VARCHAR2(133 CHAR) DEFAULT '',
                                          "REQUEST_METHOD" VARCHAR2(13 CHAR) DEFAULT '',
                                          "OPERATOR_TYPE" NUMBER(10,0) DEFAULT 0,
                                          "OPER_NAME" VARCHAR2(66 CHAR) DEFAULT '',
                                          "DEPT_NAME" VARCHAR2(66 CHAR) DEFAULT '',
                                          "OPER_URL" VARCHAR2(340 CHAR) DEFAULT '',
                                          "OPER_IP" VARCHAR2(170 CHAR) DEFAULT '',
                                          "OPER_LOCATION" VARCHAR2(340 CHAR) DEFAULT '',
                                          "OPER_PARAM" CLOB DEFAULT '',
                                          "JSON_RESULT" CLOB DEFAULT '',
                                          "STATUS" NUMBER(10,0) DEFAULT 0,
                                          "ERROR_MSG" CLOB DEFAULT '',
                                          "OPER_TIME" TIMESTAMP(6)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_OPER_LOG"."OPER_ID" IS '操作日志ID';
COMMENT ON COLUMN "SYS_OPER_LOG"."TITLE" IS '模块标题';
COMMENT ON COLUMN "SYS_OPER_LOG"."BUSINESS_TYPE" IS '业务类型（0其它 1新增 2修改 3删除）';
COMMENT ON COLUMN "SYS_OPER_LOG"."METHOD" IS '方法名称';
COMMENT ON COLUMN "SYS_OPER_LOG"."REQUEST_METHOD" IS '请求方式';
COMMENT ON COLUMN "SYS_OPER_LOG"."OPERATOR_TYPE" IS '操作类别（0其它 1后台用户 2手机端用户）';
COMMENT ON COLUMN "SYS_OPER_LOG"."OPER_NAME" IS '操作人员';
COMMENT ON COLUMN "SYS_OPER_LOG"."DEPT_NAME" IS '部门名称';
COMMENT ON COLUMN "SYS_OPER_LOG"."OPER_URL" IS '请求URL';
COMMENT ON COLUMN "SYS_OPER_LOG"."OPER_IP" IS '主机地址';
COMMENT ON COLUMN "SYS_OPER_LOG"."OPER_LOCATION" IS '操作地点';
COMMENT ON COLUMN "SYS_OPER_LOG"."OPER_PARAM" IS '请求参数';
COMMENT ON COLUMN "SYS_OPER_LOG"."JSON_RESULT" IS '返回参数';
COMMENT ON COLUMN "SYS_OPER_LOG"."STATUS" IS '操作状态（0正常 1异常）';
COMMENT ON COLUMN "SYS_OPER_LOG"."ERROR_MSG" IS '错误消息';
COMMENT ON COLUMN "SYS_OPER_LOG"."OPER_TIME" IS '操作时间';
COMMENT ON TABLE "SYS_OPER_LOG" IS '操作日志记录';

-- ----------------------------
-- Records of SYS_OPER_LOG
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table SYS_OPER_LOG
-- ----------------------------
ALTER TABLE "SYS_OPER_LOG" ADD CONSTRAINT "SYS_C0012617" PRIMARY KEY ("OPER_ID");

-- ----------------------------
-- Checks structure for table SYS_OPER_LOG
-- ----------------------------
ALTER TABLE "SYS_OPER_LOG" ADD CONSTRAINT "SYS_C0012456" CHECK ("OPER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SYS_OPER_LOG
-- ----------------------------
CREATE TRIGGER "SYS_OPER_LOG_OPER_ID_TRIG" BEFORE INSERT OR UPDATE ON "SYS_OPER_LOG" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.oper_id IS NULL THEN
SELECT  sys_oper_log_oper_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(oper_id),0) INTO v_newVal FROM sys_oper_log;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT sys_oper_log_oper_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.oper_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SYS_POST
-- ----------------------------
DROP TABLE "SYS_POST";
CREATE TABLE "SYS_POST" (
                                      "POST_ID" NUMBER(38,0) NOT NULL,
                                      "POST_CODE" VARCHAR2(85 CHAR) NOT NULL,
                                      "POST_NAME" VARCHAR2(66 CHAR) NOT NULL,
                                      "POST_SORT" NUMBER(10,0) NOT NULL,
                                      "STATUS" NUMBER(10,0) NOT NULL DEFAULT 0,
  "CREATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(666 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_POST"."POST_ID" IS '岗位ID';
COMMENT ON COLUMN "SYS_POST"."POST_CODE" IS '岗位编码';
COMMENT ON COLUMN "SYS_POST"."POST_NAME" IS '岗位名称';
COMMENT ON COLUMN "SYS_POST"."POST_SORT" IS '显示顺序';
COMMENT ON COLUMN "SYS_POST"."STATUS" IS '状态（0正常 1停用）';
COMMENT ON COLUMN "SYS_POST"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "SYS_POST"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "SYS_POST"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "SYS_POST"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "SYS_POST"."REMARK" IS '备注';
COMMENT ON TABLE "SYS_POST" IS '岗位信息表';

-- ----------------------------
-- Records of SYS_POST
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table SYS_POST
-- ----------------------------
ALTER TABLE "SYS_POST" ADD CONSTRAINT "SYS_C0012618" PRIMARY KEY ("POST_ID");

-- ----------------------------
-- Checks structure for table SYS_POST
-- ----------------------------
ALTER TABLE "SYS_POST" ADD CONSTRAINT "SYS_C0012457" CHECK ("POST_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_POST" ADD CONSTRAINT "SYS_C0012458" CHECK ("POST_CODE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_POST" ADD CONSTRAINT "SYS_C0012459" CHECK ("POST_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_POST" ADD CONSTRAINT "SYS_C0012460" CHECK ("POST_SORT" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_POST" ADD CONSTRAINT "SYS_C0012461" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SYS_POST
-- ----------------------------
CREATE TRIGGER "SYS_POST_POST_ID_TRIG" BEFORE INSERT OR UPDATE ON "SYS_POST" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.post_id IS NULL THEN
SELECT  sys_post_post_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(post_id),0) INTO v_newVal FROM sys_post;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT sys_post_post_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.post_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SYS_ROLE
-- ----------------------------
DROP TABLE "SYS_ROLE";
CREATE TABLE "SYS_ROLE" (
                                      "ROLE_ID" NUMBER(38,0) NOT NULL,
                                      "ROLE_NAME" VARCHAR2(40 CHAR) NOT NULL,
                                      "ROLE_KEY" VARCHAR2(133 CHAR) NOT NULL,
                                      "ROLE_SORT" NUMBER(10,0) NOT NULL,
                                      "DATA_SCOPE" CHAR(1 CHAR) DEFAULT '1',
  "MENU_CHECK_STRICTLY" NUMBER(10,0) DEFAULT 1,
  "DEPT_CHECK_STRICTLY" NUMBER(10,0) DEFAULT 1,
  "STATUS" NUMBER(10,0) NOT NULL DEFAULT 0,
  "DEL_FLAG" CHAR(1 CHAR) DEFAULT '0',
  "CREATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(666 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_ROLE"."ROLE_ID" IS '角色ID';
COMMENT ON COLUMN "SYS_ROLE"."ROLE_NAME" IS '角色名称';
COMMENT ON COLUMN "SYS_ROLE"."ROLE_KEY" IS '角色权限字符串';
COMMENT ON COLUMN "SYS_ROLE"."ROLE_SORT" IS '显示顺序';
COMMENT ON COLUMN "SYS_ROLE"."DATA_SCOPE" IS '数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）';
COMMENT ON COLUMN "SYS_ROLE"."MENU_CHECK_STRICTLY" IS '菜单树选择项是否关联显示';
COMMENT ON COLUMN "SYS_ROLE"."DEPT_CHECK_STRICTLY" IS '部门树选择项是否关联显示';
COMMENT ON COLUMN "SYS_ROLE"."STATUS" IS '角色状态（0正常 1停用）';
COMMENT ON COLUMN "SYS_ROLE"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "SYS_ROLE"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "SYS_ROLE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "SYS_ROLE"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "SYS_ROLE"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "SYS_ROLE"."REMARK" IS '备注';
COMMENT ON TABLE "SYS_ROLE" IS '角色信息表';

-- ----------------------------
-- Records of SYS_ROLE
-- ----------------------------
INSERT INTO "SYS_ROLE" VALUES ('1', '超级管理员', 'admin', '1', '1', '1', '1', '0', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, '超级管理员');
INSERT INTO "SYS_ROLE" VALUES ('2', '设备租户', 'tenant', '2', '5', '1', '1', '0', '0', 'admin', TO_TIMESTAMP('2021-12-16 16:41:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-12 19:53:34.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '管理产品和设备');
INSERT INTO "SYS_ROLE" VALUES ('3', '普通用户', 'general', '3', '5', '1', '1', '0', '0', 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-02-07 15:29:09.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '设备的最终用户，只能管理设备和分组');
INSERT INTO "SYS_ROLE" VALUES ('4', '游客', 'visitor', '4', '1', '1', '1', '0', '0', 'admin', TO_TIMESTAMP('2021-12-16 16:44:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-12-07 12:03:51.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '只能查询和新增系统数据');
INSERT INTO "SYS_ROLE" VALUES ('5', '管理员', 'manager', '5', '1', '1', '1', '0', '0', 'admin', TO_TIMESTAMP('2022-06-10 13:54:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-04-12 19:50:29.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '普通管理员');
INSERT INTO "SYS_ROLE" VALUES ('6', '景区运维员', ' @PreAuthorize( @ss.hasRole(admin''))', '5', '1', '1', '1', '0', '2', '18926529123', TO_TIMESTAMP('2023-11-10 12:32:22.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_ROLE" VALUES ('7', '管理员', 'manager', '1', '1', '0', '0', '0', '0', ' ', TO_TIMESTAMP('2024-05-08 16:35:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_ROLE" VALUES ('8', 'web端注册用户', 'general', '0', '1', '1', '1', '0', '0', 'fastbee-web', TO_TIMESTAMP('2024-05-08 16:55:16.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_ROLE" VALUES ('9', '组态分享', 'scadaShare', '7', '1', '0', '1', '0', '0', 'admin', TO_TIMESTAMP('2024-08-27 09:36:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);

-- ----------------------------
-- Primary Key structure for table SYS_ROLE
-- ----------------------------
ALTER TABLE "SYS_ROLE" ADD CONSTRAINT "SYS_C0012619" PRIMARY KEY ("ROLE_ID");

-- ----------------------------
-- Checks structure for table SYS_ROLE
-- ----------------------------
ALTER TABLE "SYS_ROLE" ADD CONSTRAINT "SYS_C0012462" CHECK ("ROLE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_ROLE" ADD CONSTRAINT "SYS_C0012463" CHECK ("ROLE_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_ROLE" ADD CONSTRAINT "SYS_C0012464" CHECK ("ROLE_KEY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_ROLE" ADD CONSTRAINT "SYS_C0012465" CHECK ("ROLE_SORT" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_ROLE" ADD CONSTRAINT "SYS_C0012466" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SYS_ROLE
-- ----------------------------
CREATE TRIGGER "SYS_ROLE_ROLE_ID_TRIG" BEFORE INSERT OR UPDATE ON "SYS_ROLE" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.role_id IS NULL THEN
SELECT  sys_role_role_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(role_id),0) INTO v_newVal FROM sys_role;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT sys_role_role_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.role_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SYS_ROLE_DEPT
-- ----------------------------
DROP TABLE "SYS_ROLE_DEPT";
CREATE TABLE "SYS_ROLE_DEPT" (
                                           "ROLE_ID" NUMBER(38,0) NOT NULL,
                                           "DEPT_ID" NUMBER(38,0) NOT NULL
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_ROLE_DEPT"."ROLE_ID" IS '角色ID';
COMMENT ON COLUMN "SYS_ROLE_DEPT"."DEPT_ID" IS '部门ID';
COMMENT ON TABLE "SYS_ROLE_DEPT" IS '角色和部门关联表';

-- ----------------------------
-- Records of SYS_ROLE_DEPT
-- ----------------------------
INSERT INTO "SYS_ROLE_DEPT" VALUES ('1', '100');
INSERT INTO "SYS_ROLE_DEPT" VALUES ('2', '100');
INSERT INTO "SYS_ROLE_DEPT" VALUES ('3', '100');
INSERT INTO "SYS_ROLE_DEPT" VALUES ('4', '100');
INSERT INTO "SYS_ROLE_DEPT" VALUES ('5', '100');
INSERT INTO "SYS_ROLE_DEPT" VALUES ('6', '100');
INSERT INTO "SYS_ROLE_DEPT" VALUES ('7', '101');
INSERT INTO "SYS_ROLE_DEPT" VALUES ('8', '101');
INSERT INTO "SYS_ROLE_DEPT" VALUES ('9', '100');

-- ----------------------------
-- Primary Key structure for table SYS_ROLE_DEPT
-- ----------------------------
ALTER TABLE "SYS_ROLE_DEPT" ADD CONSTRAINT "SYS_C0012620" PRIMARY KEY ("ROLE_ID", "DEPT_ID");

-- ----------------------------
-- Checks structure for table SYS_ROLE_DEPT
-- ----------------------------
ALTER TABLE "SYS_ROLE_DEPT" ADD CONSTRAINT "SYS_C0012467" CHECK ("ROLE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_ROLE_DEPT" ADD CONSTRAINT "SYS_C0012468" CHECK ("DEPT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for SYS_ROLE_MENU
-- ----------------------------
DROP TABLE "SYS_ROLE_MENU";
CREATE TABLE "SYS_ROLE_MENU" (
                                           "ROLE_ID" NUMBER(38,0) NOT NULL,
                                           "MENU_ID" NUMBER(38,0) NOT NULL
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_ROLE_MENU"."ROLE_ID" IS '角色ID';
COMMENT ON COLUMN "SYS_ROLE_MENU"."MENU_ID" IS '菜单ID';
COMMENT ON TABLE "SYS_ROLE_MENU" IS '角色和菜单关联表';

-- ----------------------------
-- Records of SYS_ROLE_MENU
-- ----------------------------
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '1');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '4');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '107');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '1036');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2000');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2001');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2002');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2003');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2004');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2005');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2006');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2007');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2008');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2009');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2010');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2011');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2012');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2013');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2014');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2015');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2016');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2017');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2018');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2019');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2020');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2021');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2022');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2023');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2024');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2043');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2044');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2045');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2046');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2047');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2048');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2049');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2050');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2051');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2052');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2053');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2054');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2067');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2068');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2069');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2070');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2071');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2072');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2085');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2086');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2087');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2088');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2089');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2090');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2098');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2099');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2100');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2101');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2102');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2103');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2129');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2130');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2136');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2137');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2138');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2139');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2140');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2147');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2148');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2168');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2169');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2170');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2171');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '2172');
INSERT INTO "SYS_ROLE_MENU" VALUES ('2', '3000');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '1');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '4');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '107');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '1036');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2000');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2007');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2008');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2009');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2010');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2011');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2012');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2019');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2020');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2021');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2022');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2023');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2024');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2043');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2067');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2068');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2070');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2085');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2086');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2087');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2088');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2089');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2090');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2129');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2130');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2147');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2148');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2168');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2169');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2170');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2171');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '2172');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3001');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3002');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3003');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3004');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3005');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3006');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3031');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3032');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3033');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3034');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3035');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3036');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3037');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3038');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3044');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3046');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3051');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3159');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3178');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3206');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3207');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3226');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3238');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3247');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3249');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3250');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3251');
INSERT INTO "SYS_ROLE_MENU" VALUES ('3', '3252');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '1');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '4');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '100');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '101');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '102');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '103');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '104');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '105');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '106');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '107');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '108');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '109');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '110');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '111');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '112');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '113');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '114');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '115');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '116');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '124');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '500');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '501');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '1001');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '1008');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '1013');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '1017');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '1021');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '1026');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '1031');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '1036');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '1040');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '1043');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '1046');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '1049');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '1055');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2000');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2001');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2002');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2003');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2007');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2008');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2009');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2013');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2014');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2015');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2019');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2020');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2021');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2043');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2044');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2045');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2049');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2050');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2051');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2067');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2068');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2069');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2085');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2086');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2087');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2104');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2123');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2124');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2125');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2129');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2130');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2131');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2136');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2137');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2141');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2147');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2148');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2149');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2167');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2168');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2169');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2170');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2173');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2174');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2175');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2179');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2180');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '2181');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3000');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3001');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3002');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3003');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3007');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3008');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3009');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3013');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3014');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3015');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3019');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3020');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3021');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3025');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3026');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3027');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3031');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3032');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3033');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3034');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3035');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3039');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3040');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3041');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3044');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3045');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3046');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3047');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3048');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3049');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3051');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3055');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3147');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3157');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3159');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3166');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3167');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3168');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3169');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3172');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3173');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3174');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3175');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3176');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3178');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3179');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3180');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3181');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3184');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3185');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3186');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3187');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3189');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3190');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3191');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3192');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3196');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3197');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3198');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3199');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3200');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3202');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3203');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3204');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3205');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3206');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3207');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3208');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3210');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3211');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3212');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3213');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3214');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3217');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3218');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3219');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3220');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3223');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3224');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3225');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3226');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3229');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3230');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3231');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3232');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3235');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3236');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3237');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3238');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3239');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3240');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3243');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3244');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3249');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3250');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3251');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3252');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3253');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3256');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3269');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3270');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3271');
INSERT INTO "SYS_ROLE_MENU" VALUES ('4', '3277');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '4');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '100');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '101');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '102');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '103');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '104');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '105');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '106');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '107');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '108');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '109');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '110');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '111');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '112');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '113');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '114');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '115');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '116');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '124');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '500');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '501');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1001');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1002');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1003');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1004');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1005');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1006');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1007');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1008');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1009');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1010');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1011');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1012');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1013');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1014');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1015');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1016');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1017');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1018');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1019');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1020');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1021');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1022');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1023');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1024');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1025');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1026');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1027');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1028');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1029');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1030');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1031');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1032');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1033');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1034');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1035');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1036');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1037');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1038');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1039');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1040');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1041');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1042');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1043');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1044');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1045');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1046');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1047');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1048');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1049');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1050');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1051');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1052');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1053');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1054');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1055');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1056');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1057');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1058');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1059');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1060');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '1065');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2000');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2001');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2002');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2003');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2004');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2005');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2006');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2007');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2008');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2009');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2010');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2011');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2012');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2013');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2014');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2015');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2016');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2017');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2018');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2019');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2020');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2021');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2022');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2023');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2024');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2043');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2044');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2045');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2046');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2047');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2048');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2049');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2050');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2051');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2052');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2053');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2054');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2067');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2068');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2069');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2070');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2071');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2072');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2085');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2086');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2087');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2088');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2089');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2090');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2098');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2099');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2100');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2101');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2102');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2103');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2104');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2105');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2106');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2107');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2108');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2109');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2111');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2112');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2123');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2124');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2125');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2126');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2127');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2128');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2129');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2130');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2131');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2132');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2133');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2134');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2136');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2137');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2138');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2139');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2140');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2141');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2143');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2144');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2145');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2146');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2147');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2148');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2149');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2167');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2168');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2169');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2170');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2171');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2172');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2179');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2180');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2181');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2182');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2183');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '2184');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3000');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3001');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3002');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3003');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3004');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3005');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3006');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3007');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3008');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3009');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3010');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3011');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3012');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3013');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3014');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3015');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3016');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3017');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3018');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3019');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3020');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3021');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3022');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3023');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3024');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3025');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3026');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3027');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3028');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3029');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3030');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3031');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3032');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3033');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3034');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3035');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3036');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3037');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3038');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3039');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3040');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3041');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3042');
INSERT INTO "SYS_ROLE_MENU" VALUES ('5', '3043');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '4');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '5');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '100');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '101');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '103');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '114');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '115');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '116');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1001');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1002');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1003');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1004');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1005');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1006');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1007');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1008');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1009');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1010');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1011');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1012');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1017');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1018');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1019');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1020');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1055');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1056');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1057');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1058');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1059');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '1060');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2000');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2001');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2002');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2003');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2006');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2007');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2008');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2009');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2010');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2011');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2012');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2013');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2014');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2015');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2016');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2017');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2018');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2019');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2020');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2021');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2022');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2023');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2024');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2043');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2044');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2045');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2046');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2047');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2048');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2049');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2050');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2051');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2054');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2067');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2068');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2069');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2070');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2071');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2072');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2085');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2086');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2087');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2088');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2089');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2090');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2099');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2100');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2101');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2102');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2103');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2104');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2105');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2106');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2107');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2108');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2109');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2111');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2112');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2136');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2137');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2138');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2139');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2140');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2143');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2144');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2145');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2146');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2147');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2148');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2149');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2167');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2168');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2169');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2170');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2171');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2172');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2173');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2174');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2175');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2176');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2177');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2178');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2179');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2180');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2181');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2182');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2183');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '2184');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3000');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3001');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3002');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3003');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3004');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3005');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3006');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3007');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3008');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3009');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3010');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3011');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3012');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3013');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3014');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3015');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3016');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3017');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3018');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3019');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3020');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3021');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3022');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3023');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3024');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3025');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3026');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3027');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3028');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3029');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3030');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3031');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3032');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3033');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3034');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3035');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3036');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3037');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3038');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3039');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3040');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3041');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3042');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3043');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3044');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3046');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3047');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3048');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3049');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3051');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3052');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3055');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3099');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3100');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3102');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3103');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3104');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3105');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3106');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3107');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3108');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3109');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3110');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3111');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3112');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3113');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3114');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3115');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3116');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3117');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3147');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3148');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3149');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3150');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3151');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3152');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3153');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3154');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3155');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3156');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3157');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3158');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3159');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3160');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3161');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3162');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3163');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3164');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3165');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3166');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3167');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3168');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3169');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3170');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3171');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3172');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3173');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3174');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3175');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3176');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3177');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3178');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3179');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3180');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3181');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3182');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3183');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3184');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3185');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3186');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3187');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3188');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3189');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3190');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3191');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3197');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3198');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3199');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3200');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3201');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3202');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3203');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3204');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3205');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3206');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3207');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3208');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3209');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3210');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3211');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3214');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3215');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3216');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3217');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3218');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3219');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3220');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3221');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3222');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3223');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3224');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3225');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3226');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3237');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3238');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3239');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3240');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3247');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3248');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3249');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3250');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3251');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3252');
INSERT INTO "SYS_ROLE_MENU" VALUES ('7', '3253');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2000');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2007');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2008');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2009');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2010');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2011');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2012');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2013');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2014');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2015');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2016');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2017');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2018');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2019');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2020');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2021');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2043');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2044');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2147');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '2148');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3000');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3001');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3002');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3003');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3007');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3008');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3013');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3014');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3015');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3016');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3017');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3018');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3019');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3020');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3021');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3022');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3023');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3024');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3025');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3026');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3027');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3028');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3029');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3030');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3033');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3034');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3035');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3039');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3040');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3041');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3042');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3043');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3044');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3206');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3207');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3208');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3209');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3210');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3214');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3215');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3216');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3217');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3218');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3219');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3220');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3221');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3222');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3247');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3248');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3249');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3250');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3251');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3252');
INSERT INTO "SYS_ROLE_MENU" VALUES ('8', '3253');
INSERT INTO "SYS_ROLE_MENU" VALUES ('9', '2007');
INSERT INTO "SYS_ROLE_MENU" VALUES ('9', '2008');
INSERT INTO "SYS_ROLE_MENU" VALUES ('9', '2067');
INSERT INTO "SYS_ROLE_MENU" VALUES ('9', '2168');
INSERT INTO "SYS_ROLE_MENU" VALUES ('9', '3044');
INSERT INTO "SYS_ROLE_MENU" VALUES ('9', '3046');
INSERT INTO "SYS_ROLE_MENU" VALUES ('9', '3159');
INSERT INTO "SYS_ROLE_MENU" VALUES ('9', '3161');
INSERT INTO "SYS_ROLE_MENU" VALUES ('9', '3173');
INSERT INTO "SYS_ROLE_MENU" VALUES ('9', '3185');

-- ----------------------------
-- Primary Key structure for table SYS_ROLE_MENU
-- ----------------------------
ALTER TABLE "SYS_ROLE_MENU" ADD CONSTRAINT "SYS_C0012621" PRIMARY KEY ("ROLE_ID", "MENU_ID");

-- ----------------------------
-- Checks structure for table SYS_ROLE_MENU
-- ----------------------------
ALTER TABLE "SYS_ROLE_MENU" ADD CONSTRAINT "SYS_C0012469" CHECK ("ROLE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_ROLE_MENU" ADD CONSTRAINT "SYS_C0012470" CHECK ("MENU_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for SYS_USER
-- ----------------------------
DROP TABLE "SYS_USER";
CREATE TABLE "SYS_USER" (
                                      "USER_ID" NUMBER(38,0) NOT NULL,
                                      "DEPT_ID" NUMBER(38,0),
                                      "USER_NAME" VARCHAR2(40 CHAR) NOT NULL,
                                      "NICK_NAME" VARCHAR2(40 CHAR) NOT NULL,
                                      "USER_TYPE" VARCHAR2(2 CHAR) DEFAULT '00',
                                      "EMAIL" VARCHAR2(66 CHAR) DEFAULT '',
                                      "PHONENUMBER" VARCHAR2(14 CHAR) DEFAULT '',
                                      "SEX" CHAR(1 CHAR) DEFAULT '0',
  "AVATAR" VARCHAR2(266 CHAR) DEFAULT '',
  "PASSWORD" VARCHAR2(133 CHAR) DEFAULT '',
  "STATUS" NUMBER(10,0) DEFAULT 0,
  "DEL_FLAG" NUMBER(10,0) DEFAULT 0,
  "LOGIN_IP" VARCHAR2(170 CHAR) DEFAULT '',
  "LOGIN_DATE" TIMESTAMP(6),
  "CREATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "CREATE_TIME" TIMESTAMP(6),
  "UPDATE_BY" VARCHAR2(85 CHAR) DEFAULT '',
  "UPDATE_TIME" TIMESTAMP(6),
  "REMARK" VARCHAR2(666 CHAR)
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_USER"."USER_ID" IS '用户ID';
COMMENT ON COLUMN "SYS_USER"."DEPT_ID" IS '部门ID';
COMMENT ON COLUMN "SYS_USER"."USER_NAME" IS '用户账号';
COMMENT ON COLUMN "SYS_USER"."NICK_NAME" IS '用户昵称';
COMMENT ON COLUMN "SYS_USER"."USER_TYPE" IS '用户类型（00系统用户）';
COMMENT ON COLUMN "SYS_USER"."EMAIL" IS '用户邮箱';
COMMENT ON COLUMN "SYS_USER"."PHONENUMBER" IS '手机号码';
COMMENT ON COLUMN "SYS_USER"."SEX" IS '用户性别（0男 1女 2未知）';
COMMENT ON COLUMN "SYS_USER"."AVATAR" IS '头像地址';
COMMENT ON COLUMN "SYS_USER"."PASSWORD" IS '密码';
COMMENT ON COLUMN "SYS_USER"."STATUS" IS '帐号状态（0正常 1停用）';
COMMENT ON COLUMN "SYS_USER"."DEL_FLAG" IS '删除标志（0代表存在 2代表删除）';
COMMENT ON COLUMN "SYS_USER"."LOGIN_IP" IS '最后登录IP';
COMMENT ON COLUMN "SYS_USER"."LOGIN_DATE" IS '最后登录时间';
COMMENT ON COLUMN "SYS_USER"."CREATE_BY" IS '创建者';
COMMENT ON COLUMN "SYS_USER"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "SYS_USER"."UPDATE_BY" IS '更新者';
COMMENT ON COLUMN "SYS_USER"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "SYS_USER"."REMARK" IS '备注';
COMMENT ON TABLE "SYS_USER" IS '用户信息表';

-- ----------------------------
-- Records of SYS_USER
-- ----------------------------
INSERT INTO "SYS_USER" VALUES ('1', '100', 'admin', '蜂信管理员', '00', '164770707@qq.com', '15888888888', '0', ' ', '$2a$10$QAow7ybs74fkSWJDJkVTNeogF7mhnihF7STErt78PxDhHiNno4IUu', '0', '0', '120.230.254.43', TO_TIMESTAMP('2024-02-07 14:06:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2021-12-15 21:36:18.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', TO_TIMESTAMP('2024-02-07 14:06:00.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), '管理员');
INSERT INTO "SYS_USER" VALUES ('2', '100', 'fastbee-t1', '蜂信租户壹', '00', ' ', '15888888880', '0', ' ', '$2a$10$BAWId9C2Nrcwklzl1Ikoau4iqL8XRGvfRjq6Wl.PXWpzwAw0sXMdK', '0', '0', '61.145.97.26', TO_TIMESTAMP('2023-08-29 14:52:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-04-15 16:21:25.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-08-29 14:52:26.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_USER" VALUES ('3', '100', 'fastbee-t2', '蜂信租户贰', '00', ' ', '15888888881', '0', ' ', '$2a$10$1zMlbW7hGpzA59gpzWGO/ObeASziQ296evjMjHrYdZnxKBLU4WUum', '0', '0', '127.0.0.1', TO_TIMESTAMP('2022-06-12 00:54:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-04-15 16:22:08.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-06-12 00:54:30.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_USER" VALUES ('4', '100', 'fastbee-u1', '蜂信用户壹', '00', ' ', '15888888882', '0', ' ', '$2a$10$691RJMXZ9HM4sgNTExLPfO5Nw6J6cWgCvcoF9V.jKMnPk5o/8c9VS', '0', '0', '127.0.0.1', TO_TIMESTAMP('2024-01-23 10:42:28.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-04-15 16:22:37.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-23 10:42:27.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_USER" VALUES ('5', '100', 'fastbee-u2', '蜂信用户贰', '00', ' ', '15888888883', '0', ' ', '$2a$10$x3rM39rewwbi7ayvriGMEOKUHoPCqcL2CYXPLTJRCWYPVvykFIYJq', '0', '0', '127.0.0.1', TO_TIMESTAMP('2022-06-12 00:55:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-04-15 16:23:13.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2023-10-25 10:15:02.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_USER" VALUES ('6', '100', 'fastbee', '游客账号', '00', '221112@qq.com', '15888888884', '0', ' ', '$2a$10$VJgxhCwmqjO69RXPtQPbxu8YIJ3rdA89004FVJf3Z9tKJxRGjQ4Nu', '0', '0', '219.134.168.219', TO_TIMESTAMP('2024-01-30 11:46:58.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2022-03-09 16:49:19.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), 'admin', TO_TIMESTAMP('2024-01-30 11:46:57.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), NULL);
INSERT INTO "SYS_USER" VALUES ('7', '101', 'fastbee-web', 'fastbee-web', '00', ' ', '15888888885', '0', ' ', '$2a$10$nwso5Yvdl6pfntn/wuz0MO6BqKTybKXdtb3f326XR8XRVaoD5OTYm', '0', '0', ' ', NULL, ' ', TO_TIMESTAMP('2024-05-08 16:35:49.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);
INSERT INTO "SYS_USER" VALUES ('8', '100', 'fastbee_scada', '组态分享者', '00', ' ', '15888888889', '0', ' ', '$2a$10$u82ntKWR11ELMWlKadzJ9ubbal6ymBzdXJndpi8CdfWWPwCpuwi9O', '0', '0', ' ', NULL, 'admin', TO_TIMESTAMP('2024-08-27 09:42:45.000000', 'SYYYY-MM-DD HH24:MI:SS:FF6'), ' ', NULL, NULL);

-- ----------------------------
-- Primary Key structure for table SYS_USER
-- ----------------------------
ALTER TABLE "SYS_USER" ADD CONSTRAINT "SYS_C0012622" PRIMARY KEY ("USER_ID");

-- ----------------------------
-- Checks structure for table SYS_USER
-- ----------------------------
ALTER TABLE "SYS_USER" ADD CONSTRAINT "SYS_C0012471" CHECK ("USER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_USER" ADD CONSTRAINT "SYS_C0012472" CHECK ("USER_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_USER" ADD CONSTRAINT "SYS_C0012473" CHECK ("NICK_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Triggers structure for table SYS_USER
-- ----------------------------
CREATE TRIGGER "SYS_USER_USER_ID_TRIG" BEFORE INSERT OR UPDATE ON "SYS_USER" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW
DECLARE
v_newVal NUMBER(12) := 0;
v_incval NUMBER(12) := 0;
BEGIN
  IF INSERTING AND :new.user_id IS NULL THEN
SELECT  sys_user_user_id_SEQ.NEXTVAL INTO v_newVal FROM DUAL;
-- If this is the first time this table have been inserted into (sequence == 1)
IF v_newVal = 1 THEN
      --get the max indentity value from the table
SELECT NVL(max(user_id),0) INTO v_newVal FROM sys_user;
v_newVal := v_newVal + 1;
      --set the sequence to that value
      LOOP
EXIT WHEN v_incval>=v_newVal;
SELECT sys_user_user_id_SEQ.nextval INTO v_incval FROM dual;
END LOOP;
END IF;
   -- assign the value from the sequence to emulate the identity column
   :new.user_id := v_newVal;
END IF;
END;

-- ----------------------------
-- Table structure for SYS_USER_POST
-- ----------------------------
DROP TABLE "SYS_USER_POST";
CREATE TABLE "SYS_USER_POST" (
                                           "USER_ID" NUMBER(38,0) NOT NULL,
                                           "POST_ID" NUMBER(38,0) NOT NULL
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_USER_POST"."USER_ID" IS '用户ID';
COMMENT ON COLUMN "SYS_USER_POST"."POST_ID" IS '岗位ID';
COMMENT ON TABLE "SYS_USER_POST" IS '用户与岗位关联表';

-- ----------------------------
-- Records of SYS_USER_POST
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table SYS_USER_POST
-- ----------------------------
ALTER TABLE "SYS_USER_POST" ADD CONSTRAINT "SYS_C0012623" PRIMARY KEY ("USER_ID", "POST_ID");

-- ----------------------------
-- Checks structure for table SYS_USER_POST
-- ----------------------------
ALTER TABLE "SYS_USER_POST" ADD CONSTRAINT "SYS_C0012474" CHECK ("USER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_USER_POST" ADD CONSTRAINT "SYS_C0012475" CHECK ("POST_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for SYS_USER_RELATION
-- ----------------------------
DROP TABLE "SYS_USER_RELATION";
CREATE TABLE "SYS_USER_RELATION" (
                                               "ROOT_ID" NUMBER(38,0) NOT NULL,
                                               "DEPTH" NUMBER(10,0) NOT NULL,
                                               "IS_LEAF" NUMBER(10,0) NOT NULL,
                                               "USER_ID" NUMBER(38,0) NOT NULL
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_USER_RELATION"."ROOT_ID" IS '根节点用户id';
COMMENT ON COLUMN "SYS_USER_RELATION"."DEPTH" IS '根节点到该节点的深度';
COMMENT ON COLUMN "SYS_USER_RELATION"."IS_LEAF" IS '该节点是否为叶子节点';
COMMENT ON COLUMN "SYS_USER_RELATION"."USER_ID" IS '该节点的用户id';
COMMENT ON TABLE "SYS_USER_RELATION" IS '用户关系与深度存储表';

-- ----------------------------
-- Records of SYS_USER_RELATION
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table SYS_USER_RELATION
-- ----------------------------
ALTER TABLE "SYS_USER_RELATION" ADD CONSTRAINT "SYS_C0012624" PRIMARY KEY ("ROOT_ID");

-- ----------------------------
-- Checks structure for table SYS_USER_RELATION
-- ----------------------------
ALTER TABLE "SYS_USER_RELATION" ADD CONSTRAINT "SYS_C0012476" CHECK ("ROOT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_USER_RELATION" ADD CONSTRAINT "SYS_C0012477" CHECK ("DEPTH" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_USER_RELATION" ADD CONSTRAINT "SYS_C0012478" CHECK ("IS_LEAF" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_USER_RELATION" ADD CONSTRAINT "SYS_C0012479" CHECK ("USER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;

-- ----------------------------
-- Table structure for SYS_USER_ROLE
-- ----------------------------
DROP TABLE "SYS_USER_ROLE";
CREATE TABLE "SYS_USER_ROLE" (
                                           "USER_ID" NUMBER(38,0) NOT NULL,
                                           "ROLE_ID" NUMBER(38,0) NOT NULL
)
    LOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
  INITIAL 65536
  NEXT 1048576
  MINEXTENTS 1
  MAXEXTENTS 2147483645
  BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;
COMMENT ON COLUMN "SYS_USER_ROLE"."USER_ID" IS '用户ID';
COMMENT ON COLUMN "SYS_USER_ROLE"."ROLE_ID" IS '角色ID';
COMMENT ON TABLE "SYS_USER_ROLE" IS '用户和角色关联表';

-- ----------------------------
-- Records of SYS_USER_ROLE
-- ----------------------------
INSERT INTO "SYS_USER_ROLE" VALUES ('1', '1');
INSERT INTO "SYS_USER_ROLE" VALUES ('2', '2');
INSERT INTO "SYS_USER_ROLE" VALUES ('3', '2');
INSERT INTO "SYS_USER_ROLE" VALUES ('4', '3');
INSERT INTO "SYS_USER_ROLE" VALUES ('5', '3');
INSERT INTO "SYS_USER_ROLE" VALUES ('6', '4');
INSERT INTO "SYS_USER_ROLE" VALUES ('7', '7');
INSERT INTO "SYS_USER_ROLE" VALUES ('8', '9');

-- ----------------------------
-- Primary Key structure for table SYS_USER_ROLE
-- ----------------------------
ALTER TABLE "SYS_USER_ROLE" ADD CONSTRAINT "SYS_C0012625" PRIMARY KEY ("USER_ID", "ROLE_ID");

-- ----------------------------
-- Checks structure for table SYS_USER_ROLE
-- ----------------------------
ALTER TABLE "SYS_USER_ROLE" ADD CONSTRAINT "SYS_C0012480" CHECK ("USER_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "SYS_USER_ROLE" ADD CONSTRAINT "SYS_C0012481" CHECK ("ROLE_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
