Commit 26fb6f8e authored by 吴文龙's avatar 吴文龙

up

parent 42cb1bb7
...@@ -90,3 +90,35 @@ COMMENT ON TABLE "public"."hs_order_statistical" IS '统计订单的能耗产量 ...@@ -90,3 +90,35 @@ COMMENT ON TABLE "public"."hs_order_statistical" IS '统计订单的能耗产量
ALTER TABLE hs_customer_extension ADD COLUMN "sort" int4 DEFAULT 1000; ALTER TABLE hs_customer_extension ADD COLUMN "sort" int4 DEFAULT 1000;
ALTER TABLE tcode_group ADD COLUMN "id" uuid NOT NULL; ALTER TABLE tcode_group ADD COLUMN "id" uuid NOT NULL;
ALTER TABLE tcode_group ADD CONSTRAINT "tcode_group_pkey" PRIMARY KEY ("id"); ALTER TABLE tcode_group ADD CONSTRAINT "tcode_group_pkey" PRIMARY KEY ("id");
-- ----------------------------
-- Table structure for hs_db_conf
-- ----------------------------
DROP TABLE IF EXISTS "public"."hs_db_conf";
CREATE TABLE "public"."hs_db_conf" (
"id" uuid NOT NULL,
"created_time" int8,
"tenant_id" uuid NOT NULL,
"host" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"port" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"user" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"password" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"database" varchar(255) COLLATE "pg_catalog"."default" NOT NULL
)
;
ALTER TABLE "public"."hs_db_conf" OWNER TO "postgres";
COMMENT ON COLUMN "public"."hs_db_conf"."id" IS '设备标识';
COMMENT ON COLUMN "public"."hs_db_conf"."created_time" IS '创建时间';
COMMENT ON COLUMN "public"."hs_db_conf"."tenant_id" IS '租户';
COMMENT ON COLUMN "public"."hs_db_conf"."host" IS '地址';
COMMENT ON COLUMN "public"."hs_db_conf"."port" IS '端口';
COMMENT ON COLUMN "public"."hs_db_conf"."user" IS '用户';
COMMENT ON COLUMN "public"."hs_db_conf"."password" IS '密码';
COMMENT ON COLUMN "public"."hs_db_conf"."database" IS '数据库';
COMMENT ON TABLE "public"."hs_db_conf" IS '租户同步数据到对应数据库配置表';
-- ----------------------------
-- Primary Key structure for table hs_db_conf
-- ----------------------------
ALTER TABLE "public"."hs_db_conf" ADD CONSTRAINT "hs_device_syn_conf_copy1_pkey" PRIMARY KEY ("id");
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