Commit 09650370 authored by 吴文龙's avatar 吴文龙

up

parent 26fb6f8e
......@@ -185,48 +185,49 @@ COMMENT ON COLUMN "public"."hs_device_electric_hour"."gateway_id" IS '网关id';
-- ----------------------------
-- Table structure for hs_device_extension
-- ----------------------------
DROP TABLE IF EXISTS "public"."hs_device_extension";
CREATE TABLE "public"."hs_device_extension" (
"id" uuid NOT NULL,
"workshop_id" uuid,
"group_id" uuid,
"picture" varchar(10000000) COLLATE "pg_catalog"."default",
"icon" varchar(255) COLLATE "pg_catalog"."default",
"created_user" uuid,
"updated_time" int8,
"updated_user" uuid,
"comment" varchar(255) COLLATE "pg_catalog"."default",
"sn" varchar(255) COLLATE "pg_catalog"."default",
"device_type" varchar(255) COLLATE "pg_catalog"."default",
"created_time" int8,
"factory_id" uuid,
"tenant_id" uuid NOT NULL,
CONSTRAINT "hs_device_ extension_pkey" PRIMARY KEY ("id")
"id" uuid NOT NULL,
"workshop_id" uuid,
"group_id" uuid,
"picture" varchar(10000000) COLLATE "pg_catalog"."default",
"icon" varchar(255) COLLATE "pg_catalog"."default",
"created_user" uuid,
"updated_time" int8,
"updated_user" uuid,
"comment" varchar(255) COLLATE "pg_catalog"."default",
"sn" varchar(255) COLLATE "pg_catalog"."default",
"device_type" varchar(255) COLLATE "pg_catalog"."default",
"created_time" int8,
"factory_id" uuid,
"tenant_id" uuid NOT NULL,
"sort" int4 DEFAULT 1000,
"model_id" uuid
)
;
ALTER TABLE "public"."hs_device_extension"
OWNER TO "postgres";
ALTER TABLE "public"."hs_device_extension" OWNER TO "postgres";
COMMENT ON COLUMN "public"."hs_device_extension"."id" IS '设备标识';
COMMENT ON COLUMN "public"."hs_device_extension"."workshop_id" IS '车间标识';
COMMENT ON COLUMN "public"."hs_device_extension"."group_id" IS '分组标识';
COMMENT ON COLUMN "public"."hs_device_extension"."picture" IS '图片';
COMMENT ON COLUMN "public"."hs_device_extension"."icon" IS '图标';
COMMENT ON COLUMN "public"."hs_device_extension"."comment" IS '备注';
COMMENT ON COLUMN "public"."hs_device_extension"."device_type" IS '设备类型';
COMMENT ON COLUMN "public"."hs_device_extension"."created_time" IS '创建时间';
COMMENT ON COLUMN "public"."hs_device_extension"."factory_id" IS '工厂标识(客户标识)';
COMMENT ON COLUMN "public"."hs_device_extension"."sort" IS '排序';
COMMENT ON COLUMN "public"."hs_device_extension"."model_id" IS '模型id';
COMMENT ON TABLE "public"."hs_device_extension" IS '设备信息扩展表';
-- ----------------------------
-- Primary Key structure for table hs_device_extension
-- ----------------------------
ALTER TABLE "public"."hs_device_extension" ADD CONSTRAINT "hs_device_ extension_pkey" PRIMARY KEY ("id");
......
......@@ -2,9 +2,6 @@ ALTER TABLE "public"."hs_board_manage" ADD COLUMN "sort" int4 DEFAULT 0;
COMMENT ON COLUMN "public"."hs_board_manage"."sort" IS '排序值';
ALTER TABLE "public"."hs_device_extension" ADD COLUMN "model_id" uuid;
COMMENT ON COLUMN "public"."hs_device_extension"."model_id" IS '模型id';
ALTER TABLE "public"."hs_last_expand_extension" ALTER COLUMN "volume_on_history" SET NOT NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment