You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.4 KiB
28 lines
1.4 KiB
DROP TABLE IF EXISTS "public"."iot_thing_static_dict";
|
|
CREATE TABLE "public"."iot_thing_static_dict" (
|
|
"id" INT8 NOT NULL,
|
|
"entity_id" INT8 NOT NULL,
|
|
"name" VARCHAR ( 255 ) COLLATE "pg_catalog"."default" NOT NULL,
|
|
"code" VARCHAR ( 255 ) COLLATE "pg_catalog"."default" NOT NULL,
|
|
"type" VARCHAR ( 255 ) COLLATE "pg_catalog"."default" NOT NULL,
|
|
"ts" INT8,
|
|
"val" VARCHAR ( 1000 ) COLLATE "pg_catalog"."default",
|
|
"creator" INT8,
|
|
"create_date" INT8,
|
|
"updater" INT8,
|
|
"update_date" INT8,
|
|
"unit" VARCHAR ( 255 ) COLLATE "pg_catalog"."default",
|
|
"group" VARCHAR ( 255 ) COLLATE "pg_catalog"."default",
|
|
"tenant_code" INT8,
|
|
"company_id" INT8,
|
|
"dept_id" INT8,
|
|
CONSTRAINT "iot_thing_static_dict_pkey" PRIMARY KEY ( "id" )
|
|
);
|
|
ALTER TABLE "public"."iot_thing_static_dict" OWNER TO "postgres";
|
|
COMMENT ON COLUMN "public"."iot_thing_static_dict"."entity_id" IS '物实体id';
|
|
COMMENT ON COLUMN "public"."iot_thing_static_dict"."name" IS '属性名称';
|
|
COMMENT ON COLUMN "public"."iot_thing_static_dict"."code" IS '属性编码';
|
|
COMMENT ON COLUMN "public"."iot_thing_static_dict"."type" IS '属性类型';
|
|
COMMENT ON COLUMN "public"."iot_thing_static_dict"."ts" IS '时间戳';
|
|
COMMENT ON COLUMN "public"."iot_thing_static_dict"."val" IS '值';
|
|
COMMENT ON COLUMN "public"."iot_thing_static_dict"."unit" IS '单位';
|