/*
 Navicat Premium Data Transfer

 Source Server         : pgsql政务正式2.21.138.148
 Source Server Type    : PostgreSQL
 Source Server Version : 140009
 Source Host           : 2.21.138.148:5333
 Source Catalog        : citylifeline_db
 Source Schema         : public

 Target Server Type    : PostgreSQL
 Target Server Version : 140009
 File Encoding         : 65001

 Date: 10/12/2024 15:34:17
*/


-- ----------------------------
-- Table structure for 作废sg_jg_dsfsgxmxx
-- ----------------------------
DROP TABLE IF EXISTS "public"."作废sg_jg_dsfsgxmxx";
CREATE TABLE "public"."作废sg_jg_dsfsgxmxx" (
  "bsm" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "xzqhdm" varchar(6) COLLATE "pg_catalog"."default",
  "xmmc" varchar(255) COLLATE "pg_catalog"."default",
  "dkm" varchar(255) COLLATE "pg_catalog"."default",
  "xmlx" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "szjd" varchar(255) COLLATE "pg_catalog"."default",
  "sgxmdz" varchar(255) COLLATE "pg_catalog"."default",
  "jhkssj" date,
  "jhjssj" date,
  "sjkssj" date,
  "sjjssj" date,
  "sgsd" numeric(8,2),
  "jsdw" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "jsdwfzr" varchar(32) COLLATE "pg_catalog"."default",
  "jsdwfzrlxdh" varchar(32) COLLATE "pg_catalog"."default",
  "sgdw" varchar(255) COLLATE "pg_catalog"."default",
  "sgdwfzr" varchar(32) COLLATE "pg_catalog"."default",
  "sgdwfzrlxdh" varchar(32) COLLATE "pg_catalog"."default",
  "jldw" varchar(255) COLLATE "pg_catalog"."default",
  "jldwfzr" varchar(32) COLLATE "pg_catalog"."default",
  "jldwfzrlxdh" varchar(32) COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6),
  "xmdm" varchar(32) COLLATE "pg_catalog"."default",
  "sgzt" varchar(16) COLLATE "pg_catalog"."default",
  "sgxkxx" varchar(255) COLLATE "pg_catalog"."default",
  "dlwjspzt" varchar(16) COLLATE "pg_catalog"."default",
  "kjxx" varchar(2000) COLLATE "pg_catalog"."default",
  "hxfw" varchar(2000) COLLATE "pg_catalog"."default",
  "zbxx" varchar(255) COLLATE "pg_catalog"."default",
  "zbxx_hxfw" text COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."xmmc" IS '项目名称';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."dkm" IS '地块名';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."xmlx" IS '项目类型';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."szjd" IS '所在街道';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."sgxmdz" IS '施工项目地址';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."jhkssj" IS '计划开始时间';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."jhjssj" IS '计划结束时间';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."sjkssj" IS '实际开始时间';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."sjjssj" IS '实际结束时间';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."sgsd" IS '施工深度';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."jsdw" IS '建设单位';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."jsdwfzr" IS '建设单位负责人';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."jsdwfzrlxdh" IS '建设单位负责人联系电话';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."sgdw" IS '施工单位';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."sgdwfzr" IS '施工单位负责人';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."sgdwfzrlxdh" IS '施工单位负责人联系电话';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."jldw" IS '监理单位';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."jldwfzr" IS '监理单位负责人';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."jldwfzrlxdh" IS '监理单位负责人联系电话';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."bz" IS '备注';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."xmdm" IS '项目代码';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."sgzt" IS '施工状态';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."sgxkxx" IS '施工许可信息';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."dlwjspzt" IS '道路挖掘审批状态';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."kjxx" IS '空间信息';
COMMENT ON COLUMN "public"."作废sg_jg_dsfsgxmxx"."hxfw" IS '红线范围';
COMMENT ON TABLE "public"."作废sg_jg_dsfsgxmxx" IS '第三方施工项目信息属性结构表';

-- ----------------------------
-- Table structure for zy_js_zdwxy
-- ----------------------------
DROP TABLE IF EXISTS "public"."zy_js_zdwxy";
CREATE TABLE "public"."zy_js_zdwxy" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "bsm" varchar(70) COLLATE "pg_catalog"."default",
  "wxymc" varchar(200) COLLATE "pg_catalog"."default",
  "wxjb" varchar(200) COLLATE "pg_catalog"."default",
  "zdwxyfl" varchar(200) COLLATE "pg_catalog"."default",
  "dz" varchar(200) COLLATE "pg_catalog"."default",
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "qymc" varchar(200) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default",
  "geom_data" "public"."geometry"
)
;
COMMENT ON COLUMN "public"."zy_js_zdwxy"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."zy_js_zdwxy"."wxymc" IS '危险源名称';
COMMENT ON COLUMN "public"."zy_js_zdwxy"."wxjb" IS '危险级别';
COMMENT ON COLUMN "public"."zy_js_zdwxy"."zdwxyfl" IS '重大危险源分类';
COMMENT ON COLUMN "public"."zy_js_zdwxy"."dz" IS '地址';
COMMENT ON COLUMN "public"."zy_js_zdwxy"."area" IS '行政区划';
COMMENT ON COLUMN "public"."zy_js_zdwxy"."qymc" IS '企业名称';
COMMENT ON COLUMN "public"."zy_js_zdwxy"."defined" IS '是否自定义 0自定义 1非自定义';
COMMENT ON COLUMN "public"."zy_js_zdwxy"."geom_data" IS '空间信息';
COMMENT ON TABLE "public"."zy_js_zdwxy" IS '重大危险源';

-- ----------------------------
-- Table structure for zy_js_ylwsjg
-- ----------------------------
DROP TABLE IF EXISTS "public"."zy_js_ylwsjg";
CREATE TABLE "public"."zy_js_ylwsjg" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "bsm" varchar(70) COLLATE "pg_catalog"."default",
  "jgmc" varchar(200) COLLATE "pg_catalog"."default",
  "szdz" varchar(200) COLLATE "pg_catalog"."default",
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "jgjb" varchar(200) COLLATE "pg_catalog"."default",
  "kycw" int4,
  "fzr" varchar(50) COLLATE "pg_catalog"."default",
  "lxdh" varchar(50) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default",
  "geom_data" "public"."geometry"
)
;
COMMENT ON COLUMN "public"."zy_js_ylwsjg"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."zy_js_ylwsjg"."jgmc" IS '机构名称';
COMMENT ON COLUMN "public"."zy_js_ylwsjg"."szdz" IS '所在地址';
COMMENT ON COLUMN "public"."zy_js_ylwsjg"."area" IS '行政区划';
COMMENT ON COLUMN "public"."zy_js_ylwsjg"."jgjb" IS '机构级别';
COMMENT ON COLUMN "public"."zy_js_ylwsjg"."kycw" IS '可用床位';
COMMENT ON COLUMN "public"."zy_js_ylwsjg"."fzr" IS '负责人';
COMMENT ON COLUMN "public"."zy_js_ylwsjg"."lxdh" IS '联系电话';
COMMENT ON COLUMN "public"."zy_js_ylwsjg"."defined" IS '是否自定义 0自定义 1非自定义';
COMMENT ON COLUMN "public"."zy_js_ylwsjg"."geom_data" IS '空间信息';
COMMENT ON TABLE "public"."zy_js_ylwsjg" IS '医疗卫生机构';

-- ----------------------------
-- Table structure for zy_js_yjzj
-- ----------------------------
DROP TABLE IF EXISTS "public"."zy_js_yjzj";
CREATE TABLE "public"."zy_js_yjzj" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "bsm" varchar(70) COLLATE "pg_catalog"."default",
  "zjxm" varchar(50) COLLATE "pg_catalog"."default",
  "js" varchar(100) COLLATE "pg_catalog"."default",
  "czd" varchar(255) COLLATE "pg_catalog"."default",
  "lxdh" varchar(50) COLLATE "pg_catalog"."default",
  "gzdw" varchar(100) COLLATE "pg_catalog"."default",
  "sczy" varchar(100) COLLATE "pg_catalog"."default",
  "zjcc" varchar(100) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default",
  "geom_data" "public"."geometry",
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "jtdh" varchar(50) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."zy_js_yjzj"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."zy_js_yjzj"."zjxm" IS '专家姓名';
COMMENT ON COLUMN "public"."zy_js_yjzj"."js" IS '角色';
COMMENT ON COLUMN "public"."zy_js_yjzj"."czd" IS '常驻地';
COMMENT ON COLUMN "public"."zy_js_yjzj"."lxdh" IS '联系电话';
COMMENT ON COLUMN "public"."zy_js_yjzj"."gzdw" IS '工作单位';
COMMENT ON COLUMN "public"."zy_js_yjzj"."sczy" IS '擅长专业';
COMMENT ON COLUMN "public"."zy_js_yjzj"."zjcc" IS '专家职称';
COMMENT ON COLUMN "public"."zy_js_yjzj"."geom_data" IS '空间信息';
COMMENT ON COLUMN "public"."zy_js_yjzj"."area" IS '行政区划';
COMMENT ON COLUMN "public"."zy_js_yjzj"."jtdh" IS '家庭电话';
COMMENT ON TABLE "public"."zy_js_yjzj" IS '应急专家';

-- ----------------------------
-- Table structure for zy_js_yjwz
-- ----------------------------
DROP TABLE IF EXISTS "public"."zy_js_yjwz";
CREATE TABLE "public"."zy_js_yjwz" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "bsm" varchar(70) COLLATE "pg_catalog"."default",
  "ssck" varchar(64) COLLATE "pg_catalog"."default",
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "wzmc" varchar(255) COLLATE "pg_catalog"."default",
  "wzlx" varchar(20) COLLATE "pg_catalog"."default",
  "wzly" varchar(20) COLLATE "pg_catalog"."default",
  "scene" varchar(32) COLLATE "pg_catalog"."default",
  "kcsl" float8,
  "jldw" varchar(20) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default",
  "geom_data" "public"."geometry"
)
;
COMMENT ON COLUMN "public"."zy_js_yjwz"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."zy_js_yjwz"."ssck" IS '所属仓库';
COMMENT ON COLUMN "public"."zy_js_yjwz"."area" IS '行政区划';
COMMENT ON COLUMN "public"."zy_js_yjwz"."wzmc" IS '物资名称';
COMMENT ON COLUMN "public"."zy_js_yjwz"."wzlx" IS '物资类型';
COMMENT ON COLUMN "public"."zy_js_yjwz"."wzly" IS '物资来源';
COMMENT ON COLUMN "public"."zy_js_yjwz"."scene" IS '归属专项';
COMMENT ON COLUMN "public"."zy_js_yjwz"."kcsl" IS '库存数量';
COMMENT ON COLUMN "public"."zy_js_yjwz"."jldw" IS '计量单位';
COMMENT ON COLUMN "public"."zy_js_yjwz"."defined" IS '是否自定义 0自定义 1非自定义';
COMMENT ON COLUMN "public"."zy_js_yjwz"."geom_data" IS '空间信息';
COMMENT ON TABLE "public"."zy_js_yjwz" IS '应急物资';

-- ----------------------------
-- Table structure for zy_js_jydw
-- ----------------------------
DROP TABLE IF EXISTS "public"."zy_js_jydw";
CREATE TABLE "public"."zy_js_jydw" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "bsm" varchar(70) COLLATE "pg_catalog"."default",
  "dwmc" varchar(200) COLLATE "pg_catalog"."default",
  "zyfzr" varchar(50) COLLATE "pg_catalog"."default",
  "lxrdh" varchar(50) COLLATE "pg_catalog"."default",
  "zbdh" varchar(50) COLLATE "pg_catalog"."default",
  "dyrs" int4,
  "schy" varchar(100) COLLATE "pg_catalog"."default",
  "xxdz" varchar(200) COLLATE "pg_catalog"."default",
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default",
  "geom_data" "public"."geometry"
)
;
COMMENT ON COLUMN "public"."zy_js_jydw"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."zy_js_jydw"."dwmc" IS '队伍名称';
COMMENT ON COLUMN "public"."zy_js_jydw"."zyfzr" IS '主要负责人';
COMMENT ON COLUMN "public"."zy_js_jydw"."lxrdh" IS '联系人电话';
COMMENT ON COLUMN "public"."zy_js_jydw"."zbdh" IS '值班电话';
COMMENT ON COLUMN "public"."zy_js_jydw"."dyrs" IS '队员人数';
COMMENT ON COLUMN "public"."zy_js_jydw"."schy" IS '擅长行业';
COMMENT ON COLUMN "public"."zy_js_jydw"."xxdz" IS '详细地址';
COMMENT ON COLUMN "public"."zy_js_jydw"."area" IS '行政区划';
COMMENT ON COLUMN "public"."zy_js_jydw"."defined" IS '是否自定义 0自定义 1非自定义';
COMMENT ON COLUMN "public"."zy_js_jydw"."geom_data" IS '空间信息';
COMMENT ON TABLE "public"."zy_js_jydw" IS '救援队伍';

-- ----------------------------
-- Table structure for zy_js_ck
-- ----------------------------
DROP TABLE IF EXISTS "public"."zy_js_ck";
CREATE TABLE "public"."zy_js_ck" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "bsm" varchar(70) COLLATE "pg_catalog"."default",
  "ckmc" varchar(200) COLLATE "pg_catalog"."default",
  "ckdz" varchar(200) COLLATE "pg_catalog"."default",
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "scene" varchar(32) COLLATE "pg_catalog"."default",
  "lxr" varchar(50) COLLATE "pg_catalog"."default",
  "lxdh" varchar(600) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default",
  "geom_data" "public"."geometry"
)
;
COMMENT ON COLUMN "public"."zy_js_ck"."id" IS 'id';
COMMENT ON COLUMN "public"."zy_js_ck"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."zy_js_ck"."ckmc" IS '仓库名称';
COMMENT ON COLUMN "public"."zy_js_ck"."ckdz" IS '仓库地址';
COMMENT ON COLUMN "public"."zy_js_ck"."area" IS '行政区划';
COMMENT ON COLUMN "public"."zy_js_ck"."scene" IS '归属专项';
COMMENT ON COLUMN "public"."zy_js_ck"."lxr" IS '联系人';
COMMENT ON COLUMN "public"."zy_js_ck"."lxdh" IS '联系电话';
COMMENT ON COLUMN "public"."zy_js_ck"."defined" IS '是否自定义 0自定义 1非自定义';
COMMENT ON COLUMN "public"."zy_js_ck"."geom_data" IS '空间信息';
COMMENT ON TABLE "public"."zy_js_ck" IS '应急仓库';

-- ----------------------------
-- Table structure for zy_js_bncs
-- ----------------------------
DROP TABLE IF EXISTS "public"."zy_js_bncs";
CREATE TABLE "public"."zy_js_bncs" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "bsm" varchar(70) COLLATE "pg_catalog"."default",
  "csmc" varchar(255) COLLATE "pg_catalog"."default",
  "szdz" varchar(255) COLLATE "pg_catalog"."default",
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "cslb" varchar(255) COLLATE "pg_catalog"."default",
  "scene" varchar(32) COLLATE "pg_catalog"."default",
  "kymj" varchar(255) COLLATE "pg_catalog"."default",
  "rnrs" varchar(255) COLLATE "pg_catalog"."default",
  "fzr" varchar(255) COLLATE "pg_catalog"."default",
  "lxdh" varchar(255) COLLATE "pg_catalog"."default",
  "geom_data" "public"."geometry",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."zy_js_bncs"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."zy_js_bncs"."csmc" IS '场所名称';
COMMENT ON COLUMN "public"."zy_js_bncs"."szdz" IS '所在地址';
COMMENT ON COLUMN "public"."zy_js_bncs"."area" IS '行政区划';
COMMENT ON COLUMN "public"."zy_js_bncs"."cslb" IS '场所类别';
COMMENT ON COLUMN "public"."zy_js_bncs"."scene" IS '归属专项';
COMMENT ON COLUMN "public"."zy_js_bncs"."kymj" IS '可用面积(万m²)';
COMMENT ON COLUMN "public"."zy_js_bncs"."rnrs" IS '容纳人数(万人)';
COMMENT ON COLUMN "public"."zy_js_bncs"."fzr" IS '负责人';
COMMENT ON COLUMN "public"."zy_js_bncs"."lxdh" IS '联系电话';
COMMENT ON COLUMN "public"."zy_js_bncs"."geom_data" IS '空间信息';
COMMENT ON COLUMN "public"."zy_js_bncs"."defined" IS '是否自定义 0自定义 1非自定义';
COMMENT ON TABLE "public"."zy_js_bncs" IS '避难场所';

-- ----------------------------
-- Table structure for zhjg_repair_bill
-- ----------------------------
DROP TABLE IF EXISTS "public"."zhjg_repair_bill";
CREATE TABLE "public"."zhjg_repair_bill" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "scene" varchar(16) COLLATE "pg_catalog"."default",
  "type" varchar(32) COLLATE "pg_catalog"."default",
  "foreign_id" varchar(64) COLLATE "pg_catalog"."default",
  "facility_name" varchar(100) COLLATE "pg_catalog"."default",
  "equipment_number" varchar(64) COLLATE "pg_catalog"."default",
  "equipment_name" varchar(200) COLLATE "pg_catalog"."default",
  "repair_time" timestamp(6),
  "repair_content" varchar(1000) COLLATE "pg_catalog"."default",
  "remark" varchar(500) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."zhjg_repair_bill"."scene" IS '专项场景';
COMMENT ON COLUMN "public"."zhjg_repair_bill"."type" IS '类型（facility-设施 equipment-设备）';
COMMENT ON COLUMN "public"."zhjg_repair_bill"."foreign_id" IS 'foreignId';
COMMENT ON COLUMN "public"."zhjg_repair_bill"."facility_name" IS '设施名称';
COMMENT ON COLUMN "public"."zhjg_repair_bill"."equipment_number" IS '设备编号';
COMMENT ON COLUMN "public"."zhjg_repair_bill"."equipment_name" IS '设备名称';
COMMENT ON COLUMN "public"."zhjg_repair_bill"."repair_time" IS '维修时间';
COMMENT ON COLUMN "public"."zhjg_repair_bill"."repair_content" IS '维修内容';
COMMENT ON COLUMN "public"."zhjg_repair_bill"."remark" IS '备注';
COMMENT ON COLUMN "public"."zhjg_repair_bill"."defined" IS '是否自定义';
COMMENT ON TABLE "public"."zhjg_repair_bill" IS '维修单';

-- ----------------------------
-- Table structure for zhjg_rcwhwx
-- ----------------------------
DROP TABLE IF EXISTS "public"."zhjg_rcwhwx";
CREATE TABLE "public"."zhjg_rcwhwx" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "bsm" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "scene" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "xzqhdm" varchar(6) COLLATE "pg_catalog"."default" NOT NULL,
  "whwxnr" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "sbsslx" varchar(500) COLLATE "pg_catalog"."default",
  "sbssid" varchar(500) COLLATE "pg_catalog"."default",
  "sbssname" varchar(500) COLLATE "pg_catalog"."default",
  "sbss" varchar(500) COLLATE "pg_catalog"."default" NOT NULL,
  "cljg" varchar(255) COLLATE "pg_catalog"."default",
  "clrq" timestamp(6),
  "clry" varchar(32) COLLATE "pg_catalog"."default",
  "lxdh" varchar(16) COLLATE "pg_catalog"."default",
  "yhdw" varchar(255) COLLATE "pg_catalog"."default",
  "ssqsdw" varchar(100) COLLATE "pg_catalog"."default",
  "jcff" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "jcjl" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "fj" varchar(1000) COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6),
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."zhjg_rcwhwx"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."zhjg_rcwhwx"."scene" IS '专项场景';
COMMENT ON COLUMN "public"."zhjg_rcwhwx"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."zhjg_rcwhwx"."whwxnr" IS '维护维修内容';
COMMENT ON COLUMN "public"."zhjg_rcwhwx"."sbsslx" IS '设备设施类型';
COMMENT ON COLUMN "public"."zhjg_rcwhwx"."sbss" IS '设备设施';
COMMENT ON COLUMN "public"."zhjg_rcwhwx"."cljg" IS '处理结果';
COMMENT ON COLUMN "public"."zhjg_rcwhwx"."clrq" IS '处理日期';
COMMENT ON COLUMN "public"."zhjg_rcwhwx"."clry" IS '处理人员';
COMMENT ON COLUMN "public"."zhjg_rcwhwx"."lxdh" IS '联系电话';
COMMENT ON COLUMN "public"."zhjg_rcwhwx"."yhdw" IS '养护单位';
COMMENT ON COLUMN "public"."zhjg_rcwhwx"."ssqsdw" IS '设施权属单位';
COMMENT ON COLUMN "public"."zhjg_rcwhwx"."jcff" IS '检测方法';
COMMENT ON COLUMN "public"."zhjg_rcwhwx"."jcjl" IS '检测结论';
COMMENT ON COLUMN "public"."zhjg_rcwhwx"."fj" IS '附件';
COMMENT ON COLUMN "public"."zhjg_rcwhwx"."bz" IS '备注';
COMMENT ON COLUMN "public"."zhjg_rcwhwx"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."zhjg_rcwhwx"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."zhjg_rcwhwx"."tbsj" IS '同步时间';
COMMENT ON TABLE "public"."zhjg_rcwhwx" IS '综合监管日常维护维修属性结构表';

-- ----------------------------
-- Table structure for zhjg_analysis_point_rel
-- ----------------------------
DROP TABLE IF EXISTS "public"."zhjg_analysis_point_rel";
CREATE TABLE "public"."zhjg_analysis_point_rel" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "point_bsm" varchar(64) COLLATE "pg_catalog"."default",
  "rel_type" int2,
  "rel_bsm" varchar(64) COLLATE "pg_catalog"."default",
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."zhjg_analysis_point_rel"."id" IS '主键';
COMMENT ON COLUMN "public"."zhjg_analysis_point_rel"."point_bsm" IS '监测点位标识码';
COMMENT ON COLUMN "public"."zhjg_analysis_point_rel"."rel_type" IS '关系类型 0:基础设施 1:监测设备';
COMMENT ON COLUMN "public"."zhjg_analysis_point_rel"."rel_bsm" IS '关系标识码';
COMMENT ON COLUMN "public"."zhjg_analysis_point_rel"."deleted" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON COLUMN "public"."zhjg_analysis_point_rel"."created_at" IS '创建人';
COMMENT ON COLUMN "public"."zhjg_analysis_point_rel"."created_by" IS '创建时间';
COMMENT ON COLUMN "public"."zhjg_analysis_point_rel"."updated_at" IS '更新人';
COMMENT ON COLUMN "public"."zhjg_analysis_point_rel"."updated_by" IS '更新时间';
COMMENT ON TABLE "public"."zhjg_analysis_point_rel" IS '综合统计分析-监测点-关系表';

-- ----------------------------
-- Table structure for zhjg_analysis_monitoring_equipment
-- ----------------------------
DROP TABLE IF EXISTS "public"."zhjg_analysis_monitoring_equipment";
CREATE TABLE "public"."zhjg_analysis_monitoring_equipment" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "bsm" varchar(64) COLLATE "pg_catalog"."default",
  "scene" varchar(16) COLLATE "pg_catalog"."default",
  "equipment_type" varchar(16) COLLATE "pg_catalog"."default",
  "equipment_number" varchar(64) COLLATE "pg_catalog"."default",
  "equipment_name" varchar(200) COLLATE "pg_catalog"."default",
  "equipment_model" varchar(64) COLLATE "pg_catalog"."default",
  "monitoring_index" varchar(64) COLLATE "pg_catalog"."default",
  "collection_frequency" varchar(64) COLLATE "pg_catalog"."default",
  "upload_frequency" varchar(64) COLLATE "pg_catalog"."default",
  "equipment_status" varchar(16) COLLATE "pg_catalog"."default",
  "manufacturer_name" varchar(64) COLLATE "pg_catalog"."default",
  "relative_altitude" numeric(8,2),
  "instal_time" timestamp(6),
  "power_supply_mode" varchar(64) COLLATE "pg_catalog"."default",
  "instal_mainten_unit" varchar(64) COLLATE "pg_catalog"."default",
  "position" varchar(500) COLLATE "pg_catalog"."default",
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "remark" varchar(500) COLLATE "pg_catalog"."default",
  "geom_data" "public"."geometry",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default",
  "alarm_threshold" varchar(128) COLLATE "pg_catalog"."default",
  "ewm" varchar(500) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."scene" IS '专项场景';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."equipment_type" IS '设备类型';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."equipment_number" IS '设备编号';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."equipment_name" IS '设备名称';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."equipment_model" IS '设备型号';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."monitoring_index" IS '监测指标';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."collection_frequency" IS '采集频率';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."upload_frequency" IS '上传频率';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."equipment_status" IS '设备状态 1-未使用，2-正常，3-试运行，4-故障，5-维修，6-报废(字典:通用_JCSB_SBZT_DM)';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."manufacturer_name" IS '厂商名称';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."relative_altitude" IS '相对高度（米）';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."instal_time" IS '安装时间';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."power_supply_mode" IS '供电方式';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."instal_mainten_unit" IS '安装维护单位';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."position" IS '位置';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."area" IS '行政区划';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."remark" IS '备注';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."geom_data" IS '空间信息';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."defined" IS '是否自定义 0自定义 1非自定义';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."alarm_threshold" IS '报警阈值srcid值(后加数据)';
COMMENT ON COLUMN "public"."zhjg_analysis_monitoring_equipment"."ewm" IS '二维码';
COMMENT ON TABLE "public"."zhjg_analysis_monitoring_equipment" IS '监测设备表';

-- ----------------------------
-- Table structure for zhjg_analysis_monitor_point
-- ----------------------------
DROP TABLE IF EXISTS "public"."zhjg_analysis_monitor_point";
CREATE TABLE "public"."zhjg_analysis_monitor_point" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "bsm" varchar(64) COLLATE "pg_catalog"."default",
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "name" varchar(200) COLLATE "pg_catalog"."default",
  "jcwz" varchar(200) COLLATE "pg_catalog"."default",
  "gc" numeric(10,3),
  "gcjz" varchar(32) COLLATE "pg_catalog"."default",
  "remark" varchar(500) COLLATE "pg_catalog"."default",
  "kjxx" "public"."geometry",
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default",
  "scene" varchar(16) COLLATE "pg_catalog"."default",
  "ssmc" varchar(64) COLLATE "pg_catalog"."default",
  "ssbm" varchar(32) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."zhjg_analysis_monitor_point"."id" IS '主键';
COMMENT ON COLUMN "public"."zhjg_analysis_monitor_point"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."zhjg_analysis_monitor_point"."area" IS '行政区划代码';
COMMENT ON COLUMN "public"."zhjg_analysis_monitor_point"."name" IS '点位名称';
COMMENT ON COLUMN "public"."zhjg_analysis_monitor_point"."jcwz" IS '监测位置';
COMMENT ON COLUMN "public"."zhjg_analysis_monitor_point"."gc" IS '高程';
COMMENT ON COLUMN "public"."zhjg_analysis_monitor_point"."gcjz" IS '高程基准';
COMMENT ON COLUMN "public"."zhjg_analysis_monitor_point"."remark" IS '备注';
COMMENT ON COLUMN "public"."zhjg_analysis_monitor_point"."kjxx" IS '空间信息';
COMMENT ON COLUMN "public"."zhjg_analysis_monitor_point"."deleted" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON COLUMN "public"."zhjg_analysis_monitor_point"."created_at" IS '创建人';
COMMENT ON COLUMN "public"."zhjg_analysis_monitor_point"."created_by" IS '创建时间';
COMMENT ON COLUMN "public"."zhjg_analysis_monitor_point"."updated_at" IS '更新人';
COMMENT ON COLUMN "public"."zhjg_analysis_monitor_point"."updated_by" IS '更新时间';
COMMENT ON COLUMN "public"."zhjg_analysis_monitor_point"."scene" IS '专项场景';
COMMENT ON COLUMN "public"."zhjg_analysis_monitor_point"."ssmc" IS '设施名称';
COMMENT ON COLUMN "public"."zhjg_analysis_monitor_point"."ssbm" IS '设施编码';
COMMENT ON TABLE "public"."zhjg_analysis_monitor_point" IS '综合统计分析-监测点';

-- ----------------------------
-- Table structure for zhjg_analysis_hidden_trouble
-- ----------------------------
DROP TABLE IF EXISTS "public"."zhjg_analysis_hidden_trouble";
CREATE TABLE "public"."zhjg_analysis_hidden_trouble" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "scene" varchar(16) COLLATE "pg_catalog"."default",
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "hidden_trouble_number" varchar(64) COLLATE "pg_catalog"."default",
  "hidden_trouble_type" varchar(16) COLLATE "pg_catalog"."default",
  "hidden_trouble_description" varchar(500) COLLATE "pg_catalog"."default",
  "hidden_trouble_address" varchar(500) COLLATE "pg_catalog"."default",
  "hidden_trouble_grade" varchar(16) COLLATE "pg_catalog"."default",
  "find_time" timestamp(6),
  "report_unit" varchar(200) COLLATE "pg_catalog"."default",
  "report_people" varchar(32) COLLATE "pg_catalog"."default",
  "report_people_tel" varchar(32) COLLATE "pg_catalog"."default",
  "scene_photo" varchar(500) COLLATE "pg_catalog"."default",
  "dispose_progress" varchar(16) COLLATE "pg_catalog"."default",
  "dispose_unit" varchar(200) COLLATE "pg_catalog"."default",
  "dispose_people" varchar(32) COLLATE "pg_catalog"."default",
  "dispose_people_tel" varchar(32) COLLATE "pg_catalog"."default",
  "dispose_finish_time" timestamp(6),
  "remark" varchar(500) COLLATE "pg_catalog"."default",
  "dispose_photo" varchar(500) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default",
  "is_often" varchar(2) COLLATE "pg_catalog"."default",
  "project_code" varchar(32) COLLATE "pg_catalog"."default",
  "geom_data" "public"."geometry"
)
;
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."scene" IS '专项场景';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."area" IS '行政区划';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."hidden_trouble_number" IS '隐患编号';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."hidden_trouble_type" IS '隐患类型';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."hidden_trouble_description" IS '隐患描述';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."hidden_trouble_address" IS '隐患地址';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."hidden_trouble_grade" IS '隐患等级 字典HIDDEN_TROUBLE_GRADE';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."find_time" IS '发现时间';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."report_unit" IS '上报单位';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."report_people" IS '上报人员';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."report_people_tel" IS '人员联系电话';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."scene_photo" IS '现场照片';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."dispose_progress" IS '处置进度 0未处置、1处置中、2已完成';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."dispose_unit" IS '处置单位';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."dispose_people" IS '处置负责人';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."dispose_people_tel" IS '负责人联系电话';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."dispose_finish_time" IS '处置完成时间';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."remark" IS '备注 ';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."dispose_photo" IS '处置照片';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."defined" IS '是否自定义';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."deleted" IS '是否删除';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."is_often" IS '是否高发是,不是';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."project_code" IS '项目编号(目前只有第三方场景中用到)';
COMMENT ON COLUMN "public"."zhjg_analysis_hidden_trouble"."geom_data" IS '空间信息';
COMMENT ON TABLE "public"."zhjg_analysis_hidden_trouble" IS '隐患报警表';

-- ----------------------------
-- Table structure for zhjg_analysis_facility_lifeline
-- ----------------------------
DROP TABLE IF EXISTS "public"."zhjg_analysis_facility_lifeline";
CREATE TABLE "public"."zhjg_analysis_facility_lifeline" (
  "id" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  "owner2" varchar(500) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."zhjg_analysis_facility_lifeline"."owner2" IS '权属单位';
COMMENT ON TABLE "public"."zhjg_analysis_facility_lifeline" IS '基础设施表';

-- ----------------------------
-- Table structure for zhjg_analysis_facility
-- ----------------------------
DROP TABLE IF EXISTS "public"."zhjg_analysis_facility";
CREATE TABLE "public"."zhjg_analysis_facility" (
  "id" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  "bsm" varchar(64) COLLATE "pg_catalog"."default",
  "scene" varchar(16) COLLATE "pg_catalog"."default",
  "facility_type" varchar(16) COLLATE "pg_catalog"."default",
  "facility_name" varchar(100) COLLATE "pg_catalog"."default",
  "facility_status" varchar(16) COLLATE "pg_catalog"."default",
  "facility_quantity" numeric(10,2),
  "measuring_unit" varchar(16) COLLATE "pg_catalog"."default",
  "construction_age" timestamp(6),
  "construction_unit" varchar(200) COLLATE "pg_catalog"."default",
  "facility_use_year" numeric(8,1),
  "position" varchar(500) COLLATE "pg_catalog"."default",
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "data_source" varchar(16) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default",
  "geom_data" "public"."geometry",
  "big_category" varchar(64) COLLATE "pg_catalog"."default",
  "small_category" varchar(64) COLLATE "pg_catalog"."default",
  "owner" varchar(128) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."zhjg_analysis_facility"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."zhjg_analysis_facility"."scene" IS '专项场景';
COMMENT ON COLUMN "public"."zhjg_analysis_facility"."facility_type" IS '设施类型 0燃气管线、1燃气管点、2燃气场站、3供水厂站、4排水厂站、5排水管线、6排水管点、7排水排口、8调蓄设施';
COMMENT ON COLUMN "public"."zhjg_analysis_facility"."facility_name" IS '设施名称';
COMMENT ON COLUMN "public"."zhjg_analysis_facility"."facility_status" IS '设施状态 0待投用 1投用中 2检修中 3关停 4废弃';
COMMENT ON COLUMN "public"."zhjg_analysis_facility"."facility_quantity" IS '设施数量';
COMMENT ON COLUMN "public"."zhjg_analysis_facility"."measuring_unit" IS '计量单位 0-km，1-个，2-座，3-万瓶，';
COMMENT ON COLUMN "public"."zhjg_analysis_facility"."construction_age" IS '建设年代';
COMMENT ON COLUMN "public"."zhjg_analysis_facility"."construction_unit" IS '建设单位';
COMMENT ON COLUMN "public"."zhjg_analysis_facility"."facility_use_year" IS '设施使用年限';
COMMENT ON COLUMN "public"."zhjg_analysis_facility"."position" IS '位置';
COMMENT ON COLUMN "public"."zhjg_analysis_facility"."area" IS '行政区划';
COMMENT ON COLUMN "public"."zhjg_analysis_facility"."data_source" IS '数据来源 0探测 1竣测 2图解 3整合 4权属单位提供';
COMMENT ON COLUMN "public"."zhjg_analysis_facility"."defined" IS '是否自定义 0自定义 1非自定义';
COMMENT ON COLUMN "public"."zhjg_analysis_facility"."geom_data" IS '空间信息';
COMMENT ON COLUMN "public"."zhjg_analysis_facility"."big_category" IS '大类';
COMMENT ON COLUMN "public"."zhjg_analysis_facility"."small_category" IS '小类';
COMMENT ON COLUMN "public"."zhjg_analysis_facility"."owner" IS '权属单位';
COMMENT ON TABLE "public"."zhjg_analysis_facility" IS '基础设施表';

-- ----------------------------
-- Table structure for zhjg_analysis_emergency
-- ----------------------------
DROP TABLE IF EXISTS "public"."zhjg_analysis_emergency";
CREATE TABLE "public"."zhjg_analysis_emergency" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "scene" varchar(16) COLLATE "pg_catalog"."default",
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "emergency_name" varchar(100) COLLATE "pg_catalog"."default",
  "emergency_description" varchar(1000) COLLATE "pg_catalog"."default",
  "emergency_address" varchar(500) COLLATE "pg_catalog"."default",
  "relevance_facility" varchar(500) COLLATE "pg_catalog"."default",
  "find_time" timestamp(6),
  "response_grade" varchar(16) COLLATE "pg_catalog"."default",
  "scene_photo" varchar(500) COLLATE "pg_catalog"."default",
  "repair_content" varchar(1000) COLLATE "pg_catalog"."default",
  "dispose_progress" varchar(16) COLLATE "pg_catalog"."default",
  "dispose_time" timestamp(6),
  "dispose_result" varchar(1000) COLLATE "pg_catalog"."default",
  "dispose_people" varchar(32) COLLATE "pg_catalog"."default",
  "dispose_unit" varchar(200) COLLATE "pg_catalog"."default",
  "attachments" varchar(500) COLLATE "pg_catalog"."default",
  "remark" varchar(500) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default",
  "emergency_type" varchar(128) COLLATE "pg_catalog"."default",
  "is_often" varchar(2) COLLATE "pg_catalog"."default",
  "project_code" varchar(64) COLLATE "pg_catalog"."default",
  "geom_data" "public"."geometry",
  "emergency_code" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."scene" IS '专项场景';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."area" IS '行政区划';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."emergency_name" IS '事件名称';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."emergency_description" IS '事件说明';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."emergency_address" IS '事件发生地点';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."relevance_facility" IS '关联基础设施 0燃气爆炸、1供水爆管、2排水、3道路塌陷、4桥梁倒塌';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."find_time" IS '事件发生时间(由于前置数据库没有值,所以没有数据)';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."response_grade" IS '响应级别 1一级、2二级、3三级、4四级';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."scene_photo" IS '现场照片';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."repair_content" IS '抢修内容';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."dispose_progress" IS '处置进度 0未处置、1处置中、2处置完成';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."dispose_time" IS '处理日期';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."dispose_result" IS '处理结果';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."dispose_people" IS '处理人员';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."dispose_unit" IS '处理单位';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."attachments" IS '附件';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."remark" IS '备注';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."defined" IS '是否自定义';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."emergency_type" IS '事件类型(作废,发现使用了relevance_facility这个字段)';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."is_often" IS '是否高发是,不是';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."project_code" IS '项目编号';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."geom_data" IS '空间信息';
COMMENT ON COLUMN "public"."zhjg_analysis_emergency"."emergency_code" IS '事件编号';
COMMENT ON TABLE "public"."zhjg_analysis_emergency" IS '突发事件表';

-- ----------------------------
-- Table structure for zdcqdb_fs_wx
-- ----------------------------
DROP TABLE IF EXISTS "public"."zdcqdb_fs_wx";
CREATE TABLE "public"."zdcqdb_fs_wx" (
  "citycode" varchar(255) COLLATE "pg_catalog"."default",
  "cityname" varchar(255) COLLATE "pg_catalog"."default",
  "happenaddress" varchar(255) COLLATE "pg_catalog"."default",
  "incidentcode" varchar(255) COLLATE "pg_catalog"."default",
  "incidentdetail" varchar(255) COLLATE "pg_catalog"."default",
  "incidenthappentime" timestamp(6),
  "incidentlevel" int4,
  "incidentrelprojectid" varchar(255) COLLATE "pg_catalog"."default",
  "incidenttitle" varchar(255) COLLATE "pg_catalog"."default",
  "processstatus" int4,
  "incidentid" varchar(255) COLLATE "pg_catalog"."default",
  "processresult" varchar(255) COLLATE "pg_catalog"."default",
  "sendercode" varchar(50) COLLATE "pg_catalog"."default",
  "processendtime" timestamp(6),
  "completiontime" timestamp(6),
  "fileurl" varchar(255) COLLATE "pg_catalog"."default",
  "originalid" varchar(255) COLLATE "pg_catalog"."default",
  "manager" varchar(255) COLLATE "pg_catalog"."default",
  "managerphone" varchar(50) COLLATE "pg_catalog"."default",
  "organizer" varchar(255) COLLATE "pg_catalog"."default",
  "special" varchar(255) COLLATE "pg_catalog"."default",
  "reportingtime" timestamp(6),
  "extparams" varchar(1000) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."citycode" IS '城市编码';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."cityname" IS '城市名称';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."happenaddress" IS '报警预警地址';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."incidentcode" IS '消息类型编码';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."incidentdetail" IS '督查督办内容';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."incidenthappentime" IS '督查督办发生时间（时间戳）';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."incidentlevel" IS '督查督办级别 1 普通 2 严重 3 灾难';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."incidentrelprojectid" IS '消息类型 Id';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."incidenttitle" IS '督查督办标题';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."processstatus" IS '督查督办处理状态 0 未处理 1签收 2 完成处理';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."incidentid" IS '消息id';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."processresult" IS '处置结果';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."sendercode" IS '专项编码（综合：ZH
燃气：RQ
排水防涝：YS
污水：WS
供水：GS
道路：DL
桥梁：QL
第三方施工：SG
地下管线：GX）';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."processendtime" IS '处置完成时间';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."completiontime" IS '要求完成时间（时间戳）';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."fileurl" IS '附件';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."originalid" IS '督查督办id';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."manager" IS '承办联系人';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."managerphone" IS '承办联系电话';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."organizer" IS '承办单位';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."special" IS '业务专项名称';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."reportingtime" IS '上报时间（时间戳）';
COMMENT ON COLUMN "public"."zdcqdb_fs_wx"."extparams" IS 'sjlx:事件类型：报警，预警
sjid：事件id
dbdw：督办单位
lxr：联系人
lxdh联系电话';
COMMENT ON TABLE "public"."zdcqdb_fs_wx" IS '自动超期督办_省厅发送数据';

-- ----------------------------
-- Table structure for work_order_info
-- ----------------------------
DROP TABLE IF EXISTS "public"."work_order_info";
CREATE TABLE "public"."work_order_info" (
  "id" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "work_name" varchar(255) COLLATE "pg_catalog"."default",
  "src" varchar(255) COLLATE "pg_catalog"."default",
  "content" varchar(300) COLLATE "pg_catalog"."default",
  "create_date" date,
  "create_by" varchar(255) COLLATE "pg_catalog"."default",
  "handle_by" varchar(255) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."work_order_info"."work_name" IS '名称';
COMMENT ON COLUMN "public"."work_order_info"."src" IS '来源';
COMMENT ON COLUMN "public"."work_order_info"."content" IS '内容';
COMMENT ON COLUMN "public"."work_order_info"."create_date" IS '发送时间';
COMMENT ON COLUMN "public"."work_order_info"."create_by" IS '发送人';
COMMENT ON COLUMN "public"."work_order_info"."handle_by" IS '处理人';
COMMENT ON TABLE "public"."work_order_info" IS '待办';

-- ----------------------------
-- Table structure for work_order_admin
-- ----------------------------
DROP TABLE IF EXISTS "public"."work_order_admin";
CREATE TABLE "public"."work_order_admin" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "work_order_code" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "scene" varchar(16) COLLATE "pg_catalog"."default",
  "work_order_content" varchar(255) COLLATE "pg_catalog"."default",
  "place" varchar(200) COLLATE "pg_catalog"."default",
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "dispatch_time" timestamp(6),
  "process_limited" timestamp(6),
  "feedback" varchar(500) COLLATE "pg_catalog"."default",
  "handler" varchar(64) COLLATE "pg_catalog"."default",
  "handler_id" varchar(64) COLLATE "pg_catalog"."default",
  "state" varchar(16) COLLATE "pg_catalog"."default",
  "geom_data" "public"."geometry",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default",
  "process_time" timestamp(6),
  "work_order_type" varchar(32) COLLATE "pg_catalog"."default",
  "foreign_id" varchar(64) COLLATE "pg_catalog"."default",
  "attachments" varchar(600) COLLATE "pg_catalog"."default",
  "complete_time" timestamp(6),
  "send_scene" varchar(64) COLLATE "pg_catalog"."default",
  "complete_attachments" varchar(600) COLLATE "pg_catalog"."default",
  "disposal_dept" varchar(255) COLLATE "pg_catalog"."default",
  "disposal_dept_id" varchar(64) COLLATE "pg_catalog"."default",
  "yjyabh" varchar(255) COLLATE "pg_catalog"."default",
  "order_source" varchar(64) COLLATE "pg_catalog"."default",
  "order_urgent" varchar(64) COLLATE "pg_catalog"."default",
  "sms_phone" varchar(1000) COLLATE "pg_catalog"."default",
  "sms_content" varchar(1000) COLLATE "pg_catalog"."default",
  "is_handle_urge" varchar(4) COLLATE "pg_catalog"."default",
  "handle_urge_user" varchar(100) COLLATE "pg_catalog"."default",
  "handle_urge_time" timestamp(0),
  "check_result" varchar(255) COLLATE "pg_catalog"."default",
  "check_describe" varchar(2000) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."work_order_admin"."id" IS 'id';
COMMENT ON COLUMN "public"."work_order_admin"."work_order_code" IS '工单编号';
COMMENT ON COLUMN "public"."work_order_admin"."scene" IS '专项场景';
COMMENT ON COLUMN "public"."work_order_admin"."work_order_content" IS '工单内容';
COMMENT ON COLUMN "public"."work_order_admin"."place" IS '位置';
COMMENT ON COLUMN "public"."work_order_admin"."area" IS '行政区划';
COMMENT ON COLUMN "public"."work_order_admin"."dispatch_time" IS '下发时间';
COMMENT ON COLUMN "public"."work_order_admin"."process_limited" IS '处理时限';
COMMENT ON COLUMN "public"."work_order_admin"."feedback" IS '处理结果说明';
COMMENT ON COLUMN "public"."work_order_admin"."handler" IS '处理人员';
COMMENT ON COLUMN "public"."work_order_admin"."handler_id" IS '处理人员编号';
COMMENT ON COLUMN "public"."work_order_admin"."state" IS '工单状态 0待处理 1处理中 2已完成 3已退回';
COMMENT ON COLUMN "public"."work_order_admin"."geom_data" IS '空间信息';
COMMENT ON COLUMN "public"."work_order_admin"."defined" IS '1为传给本系统部门使用(派单用),null为传给专项使用';
COMMENT ON COLUMN "public"."work_order_admin"."deleted" IS '0删除,1不删除';
COMMENT ON COLUMN "public"."work_order_admin"."process_time" IS '处理时间';
COMMENT ON COLUMN "public"."work_order_admin"."work_order_type" IS '工单类型 0事件工单、1预警工单、2风险工单、3隐患工单、4设备工单';
COMMENT ON COLUMN "public"."work_order_admin"."foreign_id" IS '关联id(没有关联id就是对应的名称,目前5-督办工单，6-其他工单是名称)';
COMMENT ON COLUMN "public"."work_order_admin"."attachments" IS '附件';
COMMENT ON COLUMN "public"."work_order_admin"."complete_time" IS '完成时间';
COMMENT ON COLUMN "public"."work_order_admin"."send_scene" IS '需下发专项';
COMMENT ON COLUMN "public"."work_order_admin"."complete_attachments" IS '工单处理附件';
COMMENT ON COLUMN "public"."work_order_admin"."disposal_dept" IS '处理单位(部门)';
COMMENT ON COLUMN "public"."work_order_admin"."disposal_dept_id" IS '下发专项是处理单位(部门)id,派单时是派单部门id';
COMMENT ON COLUMN "public"."work_order_admin"."yjyabh" IS '关联应急预案编号';
COMMENT ON COLUMN "public"."work_order_admin"."order_source" IS '不知道干什么用的?';
COMMENT ON COLUMN "public"."work_order_admin"."is_handle_urge" IS '是否催办(0是，1否)';
COMMENT ON COLUMN "public"."work_order_admin"."handle_urge_user" IS '催办人';
COMMENT ON COLUMN "public"."work_order_admin"."handle_urge_time" IS '催办时间';
COMMENT ON COLUMN "public"."work_order_admin"."check_result" IS '复查结果';
COMMENT ON COLUMN "public"."work_order_admin"."check_describe" IS '复查描述';
COMMENT ON TABLE "public"."work_order_admin" IS '工单管理表';

-- ----------------------------
-- Table structure for warning_info_lifeline
-- ----------------------------
DROP TABLE IF EXISTS "public"."warning_info_lifeline";
CREATE TABLE "public"."warning_info_lifeline" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "warning_type_lifeline" varchar(100) COLLATE "pg_catalog"."default",
  "warning_rank_lifeline" varchar(16) COLLATE "pg_catalog"."default",
  "associated_plan_lifeline" text COLLATE "pg_catalog"."default",
  "remark" varchar(255) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."warning_info_lifeline"."warning_type_lifeline" IS '预警类型';
COMMENT ON COLUMN "public"."warning_info_lifeline"."warning_rank_lifeline" IS '预警级别 1一级、2二级、3三级、4四级(通用_JCYJ_YJJB_DM)';
COMMENT ON COLUMN "public"."warning_info_lifeline"."associated_plan_lifeline" IS '关联预案';
COMMENT ON COLUMN "public"."warning_info_lifeline"."remark" IS '备注';
COMMENT ON TABLE "public"."warning_info_lifeline" IS '预警管理表(平台设置预警类型,预警级别,关联预案)';

-- ----------------------------
-- Table structure for warning_info
-- ----------------------------
DROP TABLE IF EXISTS "public"."warning_info";
CREATE TABLE "public"."warning_info" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "scene" varchar(16) COLLATE "pg_catalog"."default",
  "warning_name" varchar(64) COLLATE "pg_catalog"."default",
  "warning_source" varchar(16) COLLATE "pg_catalog"."default",
  "equipment_name" varchar(100) COLLATE "pg_catalog"."default",
  "equipment_number" varchar(100) COLLATE "pg_catalog"."default",
  "warning_type" varchar(100) COLLATE "pg_catalog"."default",
  "warning_site" varchar(100) COLLATE "pg_catalog"."default",
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "warning_rank" varchar(16) COLLATE "pg_catalog"."default",
  "generated_time" timestamp(6),
  "report_time" timestamp(6),
  "warning_describe" varchar(600) COLLATE "pg_catalog"."default",
  "report" varchar(500) COLLATE "pg_catalog"."default",
  "analyses" varchar(500) COLLATE "pg_catalog"."default",
  "disposal_state" varchar(16) COLLATE "pg_catalog"."default",
  "disposal_user_name" varchar(64) COLLATE "pg_catalog"."default",
  "disposal_user_id" varchar(64) COLLATE "pg_catalog"."default",
  "disposal_time" timestamp(6),
  "disposal_suggest" varchar(500) COLLATE "pg_catalog"."default",
  "disposal_complete_time" timestamp(6),
  "disposal_report" varchar(500) COLLATE "pg_catalog"."default",
  "remark" varchar(500) COLLATE "pg_catalog"."default",
  "geom_data" "public"."geometry",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default",
  "analyses_report" varchar(500) COLLATE "pg_catalog"."default",
  "warning_state" int4,
  "streaming_url" varchar(512) COLLATE "pg_catalog"."default",
  "table_name" varchar(255) COLLATE "pg_catalog"."default",
  "threshold_value" varchar(100) COLLATE "pg_catalog"."default",
  "warning_number" varchar(100) COLLATE "pg_catalog"."default",
  "timely_status" varchar(2) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."warning_info"."scene" IS '预警场景';
COMMENT ON COLUMN "public"."warning_info"."warning_name" IS '预警名称';
COMMENT ON COLUMN "public"."warning_info"."warning_source" IS '预警来源 0人员报警、1监测设备';
COMMENT ON COLUMN "public"."warning_info"."equipment_name" IS '预警设备名称';
COMMENT ON COLUMN "public"."warning_info"."equipment_number" IS '预警设备编号';
COMMENT ON COLUMN "public"."warning_info"."warning_type" IS '预警类型';
COMMENT ON COLUMN "public"."warning_info"."warning_site" IS '预警地址';
COMMENT ON COLUMN "public"."warning_info"."area" IS '行政区划';
COMMENT ON COLUMN "public"."warning_info"."warning_rank" IS '预警级别 1一级、2二级、3三级、4四级(通用_JCYJ_YJJB_DM)';
COMMENT ON COLUMN "public"."warning_info"."generated_time" IS '预警生成时间';
COMMENT ON COLUMN "public"."warning_info"."report_time" IS '预警上报时间';
COMMENT ON COLUMN "public"."warning_info"."warning_describe" IS '预警简述';
COMMENT ON COLUMN "public"."warning_info"."report" IS '预警报告';
COMMENT ON COLUMN "public"."warning_info"."analyses" IS '研判分析';
COMMENT ON COLUMN "public"."warning_info"."disposal_state" IS '处置状态 0未处置、1处置中、2误报、3处置完成(字典是disposal_state_yj)';
COMMENT ON COLUMN "public"."warning_info"."disposal_user_name" IS '处置人';
COMMENT ON COLUMN "public"."warning_info"."disposal_user_id" IS '处置人id';
COMMENT ON COLUMN "public"."warning_info"."disposal_time" IS '处置时间';
COMMENT ON COLUMN "public"."warning_info"."disposal_suggest" IS '处置建议';
COMMENT ON COLUMN "public"."warning_info"."disposal_complete_time" IS '处置完成时间';
COMMENT ON COLUMN "public"."warning_info"."disposal_report" IS '处置报告';
COMMENT ON COLUMN "public"."warning_info"."remark" IS '备注';
COMMENT ON COLUMN "public"."warning_info"."geom_data" IS '空间信息';
COMMENT ON COLUMN "public"."warning_info"."analyses_report" IS '分析报告';
COMMENT ON COLUMN "public"."warning_info"."warning_state" IS '预警状态1-发布，2-处置，3-解除，';
COMMENT ON COLUMN "public"."warning_info"."streaming_url" IS '流媒体数据存放地址';
COMMENT ON COLUMN "public"."warning_info"."table_name" IS '数据来源表名称';
COMMENT ON COLUMN "public"."warning_info"."threshold_value" IS '预警阈值';
COMMENT ON COLUMN "public"."warning_info"."warning_number" IS '报警编号';
COMMENT ON TABLE "public"."warning_info" IS '预警管理表';

-- ----------------------------
-- Table structure for video_channel
-- ----------------------------
DROP TABLE IF EXISTS "public"."video_channel";
CREATE TABLE "public"."video_channel" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "scene" varchar(16) COLLATE "pg_catalog"."default",
  "equipment_name" varchar(64) COLLATE "pg_catalog"."default",
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "channel_no" varchar(64) COLLATE "pg_catalog"."default",
  "install_address" varchar(100) COLLATE "pg_catalog"."default",
  "monitoring_object" varchar(100) COLLATE "pg_catalog"."default",
  "equipment_number" varchar(64) COLLATE "pg_catalog"."default",
  "spatial_position" varchar(300) COLLATE "pg_catalog"."default",
  "manufacturer_name" varchar(64) COLLATE "pg_catalog"."default",
  "property_unit" varchar(100) COLLATE "pg_catalog"."default",
  "video_address" text COLLATE "pg_catalog"."default",
  "isimportance" varchar(16) COLLATE "pg_catalog"."default",
  "remark" varchar(500) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default",
  "geom_data" "public"."geometry",
  "video_store" varchar(255) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."video_channel"."scene" IS '专项场景';
COMMENT ON COLUMN "public"."video_channel"."equipment_name" IS '设备名称';
COMMENT ON COLUMN "public"."video_channel"."area" IS '行政区划';
COMMENT ON COLUMN "public"."video_channel"."channel_no" IS '通道号';
COMMENT ON COLUMN "public"."video_channel"."install_address" IS '安装地址';
COMMENT ON COLUMN "public"."video_channel"."monitoring_object" IS '监控对象';
COMMENT ON COLUMN "public"."video_channel"."equipment_number" IS '设备型号';
COMMENT ON COLUMN "public"."video_channel"."spatial_position" IS '空间位置';
COMMENT ON COLUMN "public"."video_channel"."manufacturer_name" IS '生产厂家';
COMMENT ON COLUMN "public"."video_channel"."property_unit" IS '产权单位';
COMMENT ON COLUMN "public"."video_channel"."video_address" IS '视频地址';
COMMENT ON COLUMN "public"."video_channel"."isimportance" IS '是否重点监控 0否、1是';
COMMENT ON COLUMN "public"."video_channel"."remark" IS '描述';
COMMENT ON COLUMN "public"."video_channel"."geom_data" IS '空间信息';
COMMENT ON COLUMN "public"."video_channel"."video_store" IS '视频厂商';
COMMENT ON TABLE "public"."video_channel" IS '视频通道表';

-- ----------------------------
-- Table structure for us_rules
-- ----------------------------
DROP TABLE IF EXISTS "public"."us_rules";
CREATE TABLE "public"."us_rules" (
  "id" int4 NOT NULL DEFAULT nextval('us_rules_id_seq'::regclass),
  "rule" text COLLATE "pg_catalog"."default",
  "is_custom" bool NOT NULL DEFAULT true
)
;

-- ----------------------------
-- Table structure for us_lex
-- ----------------------------
DROP TABLE IF EXISTS "public"."us_lex";
CREATE TABLE "public"."us_lex" (
  "id" int4 NOT NULL DEFAULT nextval('us_lex_id_seq'::regclass),
  "seq" int4,
  "word" text COLLATE "pg_catalog"."default",
  "stdword" text COLLATE "pg_catalog"."default",
  "token" int4,
  "is_custom" bool NOT NULL DEFAULT true
)
;

-- ----------------------------
-- Table structure for us_gaz
-- ----------------------------
DROP TABLE IF EXISTS "public"."us_gaz";
CREATE TABLE "public"."us_gaz" (
  "id" int4 NOT NULL DEFAULT nextval('us_gaz_id_seq'::regclass),
  "seq" int4,
  "word" text COLLATE "pg_catalog"."default",
  "stdword" text COLLATE "pg_catalog"."default",
  "token" int4,
  "is_custom" bool NOT NULL DEFAULT true
)
;

-- ----------------------------
-- Table structure for tzgg_fs_wx
-- ----------------------------
DROP TABLE IF EXISTS "public"."tzgg_fs_wx";
CREATE TABLE "public"."tzgg_fs_wx" (
  "citycode" varchar(255) COLLATE "pg_catalog"."default",
  "cityname" varchar(255) COLLATE "pg_catalog"."default",
  "happenaddress" varchar(255) COLLATE "pg_catalog"."default",
  "incidentcode" varchar(255) COLLATE "pg_catalog"."default",
  "incidentdetail" varchar(255) COLLATE "pg_catalog"."default",
  "incidenthappentime" timestamp(6),
  "incidentlevel" int4,
  "incidentrelprojectid" varchar(255) COLLATE "pg_catalog"."default",
  "incidenttitle" varchar(255) COLLATE "pg_catalog"."default",
  "processstatus" int4,
  "incidentid" varchar(255) COLLATE "pg_catalog"."default",
  "processresult" varchar(255) COLLATE "pg_catalog"."default",
  "sendercode" varchar(10) COLLATE "pg_catalog"."default",
  "processendtime" timestamp(6),
  "completiontime" timestamp(6),
  "fileurl" varchar(255) COLLATE "pg_catalog"."default",
  "originalid" varchar(255) COLLATE "pg_catalog"."default",
  "manager" varchar(255) COLLATE "pg_catalog"."default",
  "managerphone" varchar(50) COLLATE "pg_catalog"."default",
  "organizer" varchar(255) COLLATE "pg_catalog"."default",
  "special" varchar(255) COLLATE "pg_catalog"."default",
  "reportingtime" timestamp(6),
  "extparams" varchar(1000) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."tzgg_fs_wx"."citycode" IS '城市编码';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."cityname" IS '城市名称';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."happenaddress" IS '预留字段';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."incidentcode" IS '消息类型编码';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."incidentdetail" IS '消息内容';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."incidenthappentime" IS '预留字段';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."incidentlevel" IS '通知公告级别 1 普通 2 重要';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."incidentrelprojectid" IS '消息类型Id';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."incidenttitle" IS '消息标题';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."processstatus" IS '消息处理状态 0 未签收 1签收';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."incidentid" IS '消息类型id';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."processresult" IS '预留字段';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."sendercode" IS '专项编码（综合：ZH
燃气：RQ
排水防涝：YS
污水：WS
供水：GS
道路：DL
桥梁：QL
第三方施工：SG
地下管线：GX）';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."processendtime" IS '预留字段';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."completiontime" IS '预留字段';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."fileurl" IS '附件';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."originalid" IS '通知公告id';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."manager" IS '签收联系人';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."managerphone" IS '签收人联系电话';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."organizer" IS '发布单位';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."special" IS '业务专项名称';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."reportingtime" IS '发布时间';
COMMENT ON COLUMN "public"."tzgg_fs_wx"."extparams" IS '扩展字段';
COMMENT ON TABLE "public"."tzgg_fs_wx" IS '通知公告_省厅发送数据';

-- ----------------------------
-- Table structure for third_party_stage_route
-- ----------------------------
DROP TABLE IF EXISTS "public"."third_party_stage_route";
CREATE TABLE "public"."third_party_stage_route" (
  "id" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "route_name" varchar(255) COLLATE "pg_catalog"."default",
  "route_url" varchar(255) COLLATE "pg_catalog"."default",
  "route_pric" varchar(255) COLLATE "pg_catalog"."default",
  "state" varchar(10) COLLATE "pg_catalog"."default",
  "update_date" date,
  "update_by" varchar(200) COLLATE "pg_catalog"."default",
  "create_date" date,
  "create_by" varchar(200) COLLATE "pg_catalog"."default",
  "scene" varchar(255) COLLATE "pg_catalog"."default",
  "route_url2" varchar(255) COLLATE "pg_catalog"."default",
  "my_order" int2
)
;
COMMENT ON COLUMN "public"."third_party_stage_route"."route_name" IS '系统名称';
COMMENT ON COLUMN "public"."third_party_stage_route"."route_url" IS '路径';
COMMENT ON COLUMN "public"."third_party_stage_route"."route_pric" IS '路径说明';
COMMENT ON COLUMN "public"."third_party_stage_route"."state" IS '状态(0=开，1=关)';
COMMENT ON COLUMN "public"."third_party_stage_route"."update_date" IS '更新时间';
COMMENT ON COLUMN "public"."third_party_stage_route"."update_by" IS '更新人';
COMMENT ON COLUMN "public"."third_party_stage_route"."create_date" IS '创建时间';
COMMENT ON COLUMN "public"."third_party_stage_route"."create_by" IS '创建人';
COMMENT ON COLUMN "public"."third_party_stage_route"."scene" IS '专项类型';
COMMENT ON COLUMN "public"."third_party_stage_route"."route_url2" IS '路径,登录页面';
COMMENT ON COLUMN "public"."third_party_stage_route"."my_order" IS '排序从小到大';
COMMENT ON TABLE "public"."third_party_stage_route" IS '门户系统入口图层设置';

-- ----------------------------
-- Table structure for third_party_layer_route
-- ----------------------------
DROP TABLE IF EXISTS "public"."third_party_layer_route";
CREATE TABLE "public"."third_party_layer_route" (
  "id" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "info_id" varchar(200) COLLATE "pg_catalog"."default",
  "counter_sys" varchar(255) COLLATE "pg_catalog"."default",
  "layer_route_name" varchar(255) COLLATE "pg_catalog"."default",
  "route_url" varchar(255) COLLATE "pg_catalog"."default",
  "route_pric" varchar(255) COLLATE "pg_catalog"."default",
  "state" varchar(255) COLLATE "pg_catalog"."default",
  "update_date" date,
  "update_by" varchar(255) COLLATE "pg_catalog"."default",
  "create_date" date,
  "create_by" varchar(255) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."third_party_layer_route"."info_id" IS '父级id';
COMMENT ON COLUMN "public"."third_party_layer_route"."counter_sys" IS '对应系统';
COMMENT ON COLUMN "public"."third_party_layer_route"."layer_route_name" IS '系统一张图图层名称';
COMMENT ON COLUMN "public"."third_party_layer_route"."route_url" IS '路径';
COMMENT ON COLUMN "public"."third_party_layer_route"."route_pric" IS '路径说明';
COMMENT ON COLUMN "public"."third_party_layer_route"."state" IS '状态(0=开，1=关)';
COMMENT ON COLUMN "public"."third_party_layer_route"."update_date" IS '更新时间';
COMMENT ON COLUMN "public"."third_party_layer_route"."update_by" IS '更新人';
COMMENT ON COLUMN "public"."third_party_layer_route"."create_date" IS '创建时间';
COMMENT ON COLUMN "public"."third_party_layer_route"."create_by" IS '创建人';
COMMENT ON TABLE "public"."third_party_layer_route" IS '大屏下钻图层设置-子';

-- ----------------------------
-- Table structure for third_party_layer_info
-- ----------------------------
DROP TABLE IF EXISTS "public"."third_party_layer_info";
CREATE TABLE "public"."third_party_layer_info" (
  "id" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "inlet_name" varchar(255) COLLATE "pg_catalog"."default",
  "inlet_pric" varchar(255) COLLATE "pg_catalog"."default",
  "counter_sys" varchar(255) COLLATE "pg_catalog"."default",
  "update_date" date,
  "update_by" varchar(255) COLLATE "pg_catalog"."default",
  "create_date" date,
  "create_by" varchar(255) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."third_party_layer_info"."inlet_name" IS '大屏图层入口名称';
COMMENT ON COLUMN "public"."third_party_layer_info"."inlet_pric" IS '入口说明';
COMMENT ON COLUMN "public"."third_party_layer_info"."counter_sys" IS '对应系统';
COMMENT ON COLUMN "public"."third_party_layer_info"."update_date" IS '更新时间';
COMMENT ON COLUMN "public"."third_party_layer_info"."update_by" IS '更新人';
COMMENT ON COLUMN "public"."third_party_layer_info"."create_date" IS '创建时间';
COMMENT ON COLUMN "public"."third_party_layer_info"."create_by" IS '创建人';
COMMENT ON TABLE "public"."third_party_layer_info" IS '大屏下钻图层设置-主';

-- ----------------------------
-- Table structure for tag_info
-- ----------------------------
DROP TABLE IF EXISTS "public"."tag_info";
CREATE TABLE "public"."tag_info" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "category_id" varchar(64) COLLATE "pg_catalog"."default",
  "tag_name" varchar(64) COLLATE "pg_catalog"."default",
  "tag_explain" varchar(500) COLLATE "pg_catalog"."default",
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON TABLE "public"."tag_info" IS '标签表';

-- ----------------------------
-- Table structure for tag_category_info
-- ----------------------------
DROP TABLE IF EXISTS "public"."tag_category_info";
CREATE TABLE "public"."tag_category_info" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "category_name" varchar(64) COLLATE "pg_catalog"."default",
  "remark" varchar(500) COLLATE "pg_catalog"."default",
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON TABLE "public"."tag_category_info" IS '标签类别表';

-- ----------------------------
-- Table structure for sync_table_time
-- ----------------------------
DROP TABLE IF EXISTS "public"."sync_table_time";
CREATE TABLE "public"."sync_table_time" (
  "id" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  "table_name" varchar(100) COLLATE "pg_catalog"."default",
  "last_sync_time" timestamp(6),
  "sync_notes" varchar(255) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."sync_table_time"."id" IS '主键';
COMMENT ON COLUMN "public"."sync_table_time"."table_name" IS '同步的前置库表名';
COMMENT ON COLUMN "public"."sync_table_time"."last_sync_time" IS '最后同步时间';
COMMENT ON COLUMN "public"."sync_table_time"."sync_notes" IS '备注';
COMMENT ON TABLE "public"."sync_table_time" IS '数据同步时间表';

-- ----------------------------
-- Table structure for spatial_ref_sys
-- ----------------------------
DROP TABLE IF EXISTS "public"."spatial_ref_sys";
CREATE TABLE "public"."spatial_ref_sys" (
  "srid" int4 NOT NULL,
  "auth_name" varchar(256) COLLATE "pg_catalog"."default",
  "auth_srid" int4,
  "srtext" varchar(2048) COLLATE "pg_catalog"."default",
  "proj4text" varchar(2048) COLLATE "pg_catalog"."default"
)
;

-- ----------------------------
-- Table structure for social_public_training
-- ----------------------------
DROP TABLE IF EXISTS "public"."social_public_training";
CREATE TABLE "public"."social_public_training" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "plan_id" varchar(50) COLLATE "pg_catalog"."default",
  "theme" varchar(500) COLLATE "pg_catalog"."default",
  "start_time" timestamp(6),
  "end_time" timestamp(6),
  "duration" int8,
  "location" varchar(500) COLLATE "pg_catalog"."default",
  "institution" varchar(500) COLLATE "pg_catalog"."default",
  "planned_num" int8,
  "actua_num" int8,
  "content" text COLLATE "pg_catalog"."default",
  "training_state" varchar(50) COLLATE "pg_catalog"."default",
  "type" varchar(500) COLLATE "pg_catalog"."default",
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "annex" varchar(255) COLLATE "pg_catalog"."default",
  "release_time" timestamp(6),
  "state" varchar(50) COLLATE "pg_catalog"."default",
  "order_num" int8,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1,
  "purpose" varchar COLLATE "pg_catalog"."default",
  "area" varchar(50) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."social_public_training"."id" IS '主键';
COMMENT ON COLUMN "public"."social_public_training"."plan_id" IS '培训计划ID';
COMMENT ON COLUMN "public"."social_public_training"."theme" IS '培训主题 ';
COMMENT ON COLUMN "public"."social_public_training"."start_time" IS '培训开始时间';
COMMENT ON COLUMN "public"."social_public_training"."end_time" IS '培训结束时间';
COMMENT ON COLUMN "public"."social_public_training"."duration" IS '培训时长（课时）';
COMMENT ON COLUMN "public"."social_public_training"."location" IS '培训地点';
COMMENT ON COLUMN "public"."social_public_training"."institution" IS '培训机构';
COMMENT ON COLUMN "public"."social_public_training"."planned_num" IS '计划人数（人）';
COMMENT ON COLUMN "public"."social_public_training"."actua_num" IS '实到人数（人）';
COMMENT ON COLUMN "public"."social_public_training"."content" IS '培训内容';
COMMENT ON COLUMN "public"."social_public_training"."training_state" IS '培训状态	下拉框	未开始、进行中、已结束';
COMMENT ON COLUMN "public"."social_public_training"."type" IS '培训类型';
COMMENT ON COLUMN "public"."social_public_training"."scene" IS '所属专项  燃气爆炸、城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷 ';
COMMENT ON COLUMN "public"."social_public_training"."annex" IS '附件';
COMMENT ON COLUMN "public"."social_public_training"."release_time" IS '发布时间';
COMMENT ON COLUMN "public"."social_public_training"."state" IS '发布状态 未发布:0  已发布:1';
COMMENT ON COLUMN "public"."social_public_training"."order_num" IS '排序';
COMMENT ON COLUMN "public"."social_public_training"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."social_public_training"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."social_public_training"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."social_public_training"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."social_public_training"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON COLUMN "public"."social_public_training"."purpose" IS '培训目的';
COMMENT ON COLUMN "public"."social_public_training"."area" IS '行政区划';
COMMENT ON TABLE "public"."social_public_training" IS '社会公众服务-安全培训-安全培训记录';

-- ----------------------------
-- Table structure for social_public_train_plan_dtl
-- ----------------------------
DROP TABLE IF EXISTS "public"."social_public_train_plan_dtl";
CREATE TABLE "public"."social_public_train_plan_dtl" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "plan_id" varchar(50) COLLATE "pg_catalog"."default",
  "frequency_type" varchar(50) COLLATE "pg_catalog"."default",
  "plan_time" timestamp(6),
  "plan_count" int8,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1
)
;
COMMENT ON COLUMN "public"."social_public_train_plan_dtl"."id" IS '主键';
COMMENT ON COLUMN "public"."social_public_train_plan_dtl"."plan_id" IS '培训计划主键';
COMMENT ON COLUMN "public"."social_public_train_plan_dtl"."frequency_type" IS '频次类型 ';
COMMENT ON COLUMN "public"."social_public_train_plan_dtl"."plan_time" IS '计划时间 ';
COMMENT ON COLUMN "public"."social_public_train_plan_dtl"."plan_count" IS '培训次数 ';
COMMENT ON COLUMN "public"."social_public_train_plan_dtl"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."social_public_train_plan_dtl"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."social_public_train_plan_dtl"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."social_public_train_plan_dtl"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."social_public_train_plan_dtl"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON TABLE "public"."social_public_train_plan_dtl" IS '培训计划 社会公众服务-安全培训-培训计划明细表';

-- ----------------------------
-- Table structure for social_public_train_plan
-- ----------------------------
DROP TABLE IF EXISTS "public"."social_public_train_plan";
CREATE TABLE "public"."social_public_train_plan" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "type" varchar(500) COLLATE "pg_catalog"."default",
  "frequency_type" varchar(50) COLLATE "pg_catalog"."default",
  "order_num" int8,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1,
  "planned_count" int8
)
;
COMMENT ON COLUMN "public"."social_public_train_plan"."id" IS '主键';
COMMENT ON COLUMN "public"."social_public_train_plan"."scene" IS '所属专项  燃气爆炸、城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷 ';
COMMENT ON COLUMN "public"."social_public_train_plan"."type" IS '培训类型(1:人员岗前培训2:企业安全培训)';
COMMENT ON COLUMN "public"."social_public_train_plan"."frequency_type" IS '频次类型:日,周,半月,月,季度,半年,年';
COMMENT ON COLUMN "public"."social_public_train_plan"."order_num" IS '排序';
COMMENT ON COLUMN "public"."social_public_train_plan"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."social_public_train_plan"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."social_public_train_plan"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."social_public_train_plan"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."social_public_train_plan"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON COLUMN "public"."social_public_train_plan"."planned_count" IS '计划培训总次数，取该计划已设置的各频次下的计划次数合计';
COMMENT ON TABLE "public"."social_public_train_plan" IS '社会公众服务-安全培训-培训计划';

-- ----------------------------
-- Table structure for social_public_notice_read
-- ----------------------------
DROP TABLE IF EXISTS "public"."social_public_notice_read";
CREATE TABLE "public"."social_public_notice_read" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "source_id" varchar(128) COLLATE "pg_catalog"."default",
  "user_id" varchar(64) COLLATE "pg_catalog"."default",
  "create_time" timestamp(6),
  "is_read" int4,
  "remark" varchar(255) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."social_public_notice_read"."id" IS 'id';
COMMENT ON COLUMN "public"."social_public_notice_read"."source_id" IS '原表id(social_public_notice)';
COMMENT ON COLUMN "public"."social_public_notice_read"."user_id" IS '用户id';
COMMENT ON COLUMN "public"."social_public_notice_read"."create_time" IS '创建时间';
COMMENT ON COLUMN "public"."social_public_notice_read"."is_read" IS '是否已读1已读,0未读';
COMMENT ON COLUMN "public"."social_public_notice_read"."remark" IS '备注(没有用到)';
COMMENT ON TABLE "public"."social_public_notice_read" IS '通知公告已读未读';

-- ----------------------------
-- Table structure for social_public_notice
-- ----------------------------
DROP TABLE IF EXISTS "public"."social_public_notice";
CREATE TABLE "public"."social_public_notice" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "title" varchar(500) COLLATE "pg_catalog"."default",
  "source" varchar(50) COLLATE "pg_catalog"."default",
  "notice_time" timestamp(6),
  "content" text COLLATE "pg_catalog"."default",
  "state" varchar(50) COLLATE "pg_catalog"."default",
  "annex" varchar(255) COLLATE "pg_catalog"."default",
  "order_num" int8,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1
)
;
COMMENT ON COLUMN "public"."social_public_notice"."id" IS '主键';
COMMENT ON COLUMN "public"."social_public_notice"."scene" IS '专项 场景 燃气爆炸、城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷；';
COMMENT ON COLUMN "public"."social_public_notice"."title" IS '通知公告标题';
COMMENT ON COLUMN "public"."social_public_notice"."source" IS '公告 来源 灵锡APP、12345、12319、综合监管';
COMMENT ON COLUMN "public"."social_public_notice"."notice_time" IS '公告日期';
COMMENT ON COLUMN "public"."social_public_notice"."content" IS '公告内容';
COMMENT ON COLUMN "public"."social_public_notice"."state" IS '发布状态 未发布:0  已发布:1';
COMMENT ON COLUMN "public"."social_public_notice"."annex" IS '附件';
COMMENT ON COLUMN "public"."social_public_notice"."order_num" IS '排序';
COMMENT ON COLUMN "public"."social_public_notice"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."social_public_notice"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."social_public_notice"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."social_public_notice"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."social_public_notice"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON TABLE "public"."social_public_notice" IS '社会公众服务-通知公告';

-- ----------------------------
-- Table structure for social_public_feedback
-- ----------------------------
DROP TABLE IF EXISTS "public"."social_public_feedback";
CREATE TABLE "public"."social_public_feedback" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "source" varchar(50) COLLATE "pg_catalog"."default",
  "content" text COLLATE "pg_catalog"."default",
  "location" varchar(500) COLLATE "pg_catalog"."default",
  "feedback_time" timestamp(6),
  "name" varchar(50) COLLATE "pg_catalog"."default",
  "phone" varchar(50) COLLATE "pg_catalog"."default",
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "label" varchar(500) COLLATE "pg_catalog"."default",
  "annex" varchar COLLATE "pg_catalog"."default",
  "release_time" timestamp(6),
  "state" varchar(50) COLLATE "pg_catalog"."default",
  "order_num" int8,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1,
  "area" varchar(64) COLLATE "pg_catalog"."default",
  "disposal_state" varchar(64) COLLATE "pg_catalog"."default",
  "disposal_result" varchar(1000) COLLATE "pg_catalog"."default",
  "disposal_user_name" varchar(64) COLLATE "pg_catalog"."default",
  "disposal_time" timestamp(6),
  "disposal_annex" varchar(1000) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."social_public_feedback"."id" IS '主键';
COMMENT ON COLUMN "public"."social_public_feedback"."source" IS '反馈来源  待定';
COMMENT ON COLUMN "public"."social_public_feedback"."content" IS '反馈内容';
COMMENT ON COLUMN "public"."social_public_feedback"."location" IS '详细地点';
COMMENT ON COLUMN "public"."social_public_feedback"."feedback_time" IS '反馈时间';
COMMENT ON COLUMN "public"."social_public_feedback"."name" IS '反馈人';
COMMENT ON COLUMN "public"."social_public_feedback"."phone" IS '电话';
COMMENT ON COLUMN "public"."social_public_feedback"."scene" IS '所属专项  燃气爆炸、城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷 ';
COMMENT ON COLUMN "public"."social_public_feedback"."label" IS '标签';
COMMENT ON COLUMN "public"."social_public_feedback"."annex" IS '附件';
COMMENT ON COLUMN "public"."social_public_feedback"."release_time" IS '发布时间';
COMMENT ON COLUMN "public"."social_public_feedback"."state" IS '发布状态 未发布:0  已发布:1';
COMMENT ON COLUMN "public"."social_public_feedback"."order_num" IS '排序';
COMMENT ON COLUMN "public"."social_public_feedback"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."social_public_feedback"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."social_public_feedback"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."social_public_feedback"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."social_public_feedback"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON COLUMN "public"."social_public_feedback"."area" IS '行政区划';
COMMENT ON COLUMN "public"."social_public_feedback"."disposal_state" IS '处置状态';
COMMENT ON COLUMN "public"."social_public_feedback"."disposal_result" IS '处置结果';
COMMENT ON COLUMN "public"."social_public_feedback"."disposal_user_name" IS '处置人';
COMMENT ON COLUMN "public"."social_public_feedback"."disposal_time" IS '处置时间';
COMMENT ON COLUMN "public"."social_public_feedback"."disposal_annex" IS '处置附件';
COMMENT ON TABLE "public"."social_public_feedback" IS '社会公众服务-群众反馈';

-- ----------------------------
-- Table structure for social_public_case
-- ----------------------------
DROP TABLE IF EXISTS "public"."social_public_case";
CREATE TABLE "public"."social_public_case" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "name" varchar(500) COLLATE "pg_catalog"."default",
  "content" text COLLATE "pg_catalog"."default",
  "images" varchar(500) COLLATE "pg_catalog"."default",
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "annex" varchar(255) COLLATE "pg_catalog"."default",
  "release_time" timestamp(6),
  "state" varchar(50) COLLATE "pg_catalog"."default",
  "order_num" int8,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1
)
;
COMMENT ON COLUMN "public"."social_public_case"."id" IS '主键';
COMMENT ON COLUMN "public"."social_public_case"."name" IS '案例名称';
COMMENT ON COLUMN "public"."social_public_case"."content" IS '案例内容';
COMMENT ON COLUMN "public"."social_public_case"."images" IS '案例图片';
COMMENT ON COLUMN "public"."social_public_case"."scene" IS '所属专项  燃气爆炸、城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷 ';
COMMENT ON COLUMN "public"."social_public_case"."annex" IS '附件';
COMMENT ON COLUMN "public"."social_public_case"."release_time" IS '发布时间';
COMMENT ON COLUMN "public"."social_public_case"."state" IS '发布状态 未发布:0  已发布:1';
COMMENT ON COLUMN "public"."social_public_case"."order_num" IS '排序';
COMMENT ON COLUMN "public"."social_public_case"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."social_public_case"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."social_public_case"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."social_public_case"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."social_public_case"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON TABLE "public"."social_public_case" IS '社会公众服务-案例分析';

-- ----------------------------
-- Table structure for sms_record
-- ----------------------------
DROP TABLE IF EXISTS "public"."sms_record";
CREATE TABLE "public"."sms_record" (
  "id" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "context" varchar(1000) COLLATE "pg_catalog"."default",
  "send_from" varchar(255) COLLATE "pg_catalog"."default",
  "send_to" varchar(3000) COLLATE "pg_catalog"."default",
  "status" int4,
  "res" varchar(2000) COLLATE "pg_catalog"."default",
  "params" varchar(2000) COLLATE "pg_catalog"."default",
  "client_id" varchar(100) COLLATE "pg_catalog"."default",
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."sms_record"."id" IS '短信记录id';
COMMENT ON COLUMN "public"."sms_record"."context" IS '短信发送内容';
COMMENT ON COLUMN "public"."sms_record"."send_from" IS '发送者手机号';
COMMENT ON COLUMN "public"."sms_record"."send_to" IS '接收者手机号';
COMMENT ON COLUMN "public"."sms_record"."status" IS '短信发送状态 0失败 1成功';
COMMENT ON COLUMN "public"."sms_record"."res" IS '响应';
COMMENT ON COLUMN "public"."sms_record"."params" IS '发送短信参数';
COMMENT ON COLUMN "public"."sms_record"."client_id" IS '客户端Id';

-- ----------------------------
-- Table structure for sg_js_jcd
-- ----------------------------
DROP TABLE IF EXISTS "public"."sg_js_jcd";
CREATE TABLE "public"."sg_js_jcd" (
  "bsm" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "xzqhdm" varchar(6) COLLATE "pg_catalog"."default" NOT NULL,
  "dwmc" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "ssmc" varchar(64) COLLATE "pg_catalog"."default",
  "ssbm" varchar(17) COLLATE "pg_catalog"."default" NOT NULL,
  "jcwz" varchar(200) COLLATE "pg_catalog"."default",
  "gc" numeric(10,3),
  "gcjz" varchar(32) COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  "tbsj" timestamp(6) NOT NULL,
  "kjxx" "public"."geometry"
)
;
COMMENT ON COLUMN "public"."sg_js_jcd"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."sg_js_jcd"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."sg_js_jcd"."dwmc" IS '点位名称';
COMMENT ON COLUMN "public"."sg_js_jcd"."ssmc" IS '设施名称';
COMMENT ON COLUMN "public"."sg_js_jcd"."ssbm" IS '设施编码';
COMMENT ON COLUMN "public"."sg_js_jcd"."jcwz" IS '监测位置';
COMMENT ON COLUMN "public"."sg_js_jcd"."gc" IS '高程';
COMMENT ON COLUMN "public"."sg_js_jcd"."gcjz" IS '高程基准';
COMMENT ON COLUMN "public"."sg_js_jcd"."bz" IS '备注';
COMMENT ON COLUMN "public"."sg_js_jcd"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."sg_js_jcd"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."sg_js_jcd"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."sg_js_jcd"."kjxx" IS '空间信息';
COMMENT ON TABLE "public"."sg_js_jcd" IS '监测点属性结构表';

-- ----------------------------
-- Table structure for sg_jg_xmxx
-- ----------------------------
DROP TABLE IF EXISTS "public"."sg_jg_xmxx";
CREATE TABLE "public"."sg_jg_xmxx" (
  "bsm" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "xzqhdm" varchar(16) COLLATE "pg_catalog"."default",
  "xmbm" varchar(64) COLLATE "pg_catalog"."default",
  "sgzt" int4,
  "sgxkxx" varchar(255) COLLATE "pg_catalog"."default",
  "dlwjspzt" int4,
  "xmmc" varchar(255) COLLATE "pg_catalog"."default",
  "dkm" varchar(255) COLLATE "pg_catalog"."default",
  "xmlx" int4,
  "xmly" int4,
  "sggy" int4,
  "tzfs" int4,
  "btzdw" varchar(32) COLLATE "pg_catalog"."default",
  "tzsj" date,
  "czzt" int4,
  "czwcsj" date,
  "czms" varchar(255) COLLATE "pg_catalog"."default",
  "szjd" varchar(255) COLLATE "pg_catalog"."default",
  "sgxmdz" varchar(255) COLLATE "pg_catalog"."default",
  "jhksrq" date,
  "jhjsrq" date,
  "sjksrq" date,
  "sjjsrq" date,
  "sgsd" numeric(8,2),
  "jsdw" varchar(255) COLLATE "pg_catalog"."default",
  "jsdwfzr" varchar(32) COLLATE "pg_catalog"."default",
  "jsdwfzrlxdh" varchar(16) COLLATE "pg_catalog"."default",
  "sgdw" varchar(255) COLLATE "pg_catalog"."default",
  "sgdwfzr" varchar(32) COLLATE "pg_catalog"."default",
  "sgdwfzrlxdh" varchar(16) COLLATE "pg_catalog"."default",
  "jldw" varchar(255) COLLATE "pg_catalog"."default",
  "jldwfzr" varchar(32) COLLATE "pg_catalog"."default",
  "jldwfzrlxdh" varchar(16) COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "hxfw" varchar(5120) COLLATE "pg_catalog"."default",
  "kjxx" varchar(5120) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6)
)
;
COMMENT ON COLUMN "public"."sg_jg_xmxx"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."xmbm" IS '项目编码';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."sgzt" IS '施工状态';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."sgxkxx" IS '施工许可信息';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."dlwjspzt" IS '道路挖掘审批状态';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."xmmc" IS '项目名称';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."dkm" IS '地块名';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."xmlx" IS '项目类型';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."xmly" IS '项目来源';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."sggy" IS '施工工艺';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."tzfs" IS '通知方式';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."btzdw" IS '被通知单位';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."tzsj" IS '通知时间';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."czzt" IS '处置状态';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."czwcsj" IS '处置完成时间';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."czms" IS '处置描述';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."szjd" IS '所在街道';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."sgxmdz" IS '施工项目地址';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."jhksrq" IS '计划开始日期';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."jhjsrq" IS '计划结束日期';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."sjksrq" IS '实际开始日期';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."sjjsrq" IS '实际结束日期';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."sgsd" IS '施工深度';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."jsdw" IS '建设单位';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."jsdwfzr" IS '建设单位负责人';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."jsdwfzrlxdh" IS '建设单位负责人联系电话';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."sgdw" IS '施工单位';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."sgdwfzr" IS '施工单位负责人';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."sgdwfzrlxdh" IS '施工单位负责人联系电话';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."jldw" IS '监理单位';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."jldwfzr" IS '监理单位负责人';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."jldwfzrlxdh" IS '监理单位负责人联系电话';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."bz" IS '备注';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."hxfw" IS '红线范围';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."kjxx" IS '空间信息';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."sg_jg_xmxx"."tbsj" IS '同步时间';
COMMENT ON TABLE "public"."sg_jg_xmxx" IS '第三方施工项目信息属性结构表';

-- ----------------------------
-- Table structure for sg_jg_lhcj
-- ----------------------------
DROP TABLE IF EXISTS "public"."sg_jg_lhcj";
CREATE TABLE "public"."sg_jg_lhcj" (
  "bsm" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "xzqhdm" varchar(16) COLLATE "pg_catalog"."default",
  "xmbm" varchar(64) COLLATE "pg_catalog"."default",
  "sjbm" varchar(64) COLLATE "pg_catalog"."default",
  "sjms" varchar(255) COLLATE "pg_catalog"."default",
  "cjrq" date,
  "bcjdw" varchar(100) COLLATE "pg_catalog"."default",
  "cjjg" varchar(255) COLLATE "pg_catalog"."default",
  "fbdw" varchar(100) COLLATE "pg_catalog"."default",
  "fbsj" date,
  "fj" varchar(100) COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6)
)
;
COMMENT ON COLUMN "public"."sg_jg_lhcj"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."sg_jg_lhcj"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."sg_jg_lhcj"."xmbm" IS '项目编码';
COMMENT ON COLUMN "public"."sg_jg_lhcj"."sjbm" IS '事件编码';
COMMENT ON COLUMN "public"."sg_jg_lhcj"."sjms" IS '事件描述';
COMMENT ON COLUMN "public"."sg_jg_lhcj"."cjrq" IS '惩戒日期';
COMMENT ON COLUMN "public"."sg_jg_lhcj"."bcjdw" IS '被惩戒单位';
COMMENT ON COLUMN "public"."sg_jg_lhcj"."cjjg" IS '惩戒结果';
COMMENT ON COLUMN "public"."sg_jg_lhcj"."fbdw" IS '发布单位';
COMMENT ON COLUMN "public"."sg_jg_lhcj"."fbsj" IS '发布时间';
COMMENT ON COLUMN "public"."sg_jg_lhcj"."fj" IS '附件';
COMMENT ON COLUMN "public"."sg_jg_lhcj"."bz" IS '备注';
COMMENT ON COLUMN "public"."sg_jg_lhcj"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."sg_jg_lhcj"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."sg_jg_lhcj"."tbsj" IS '同步时间';
COMMENT ON TABLE "public"."sg_jg_lhcj" IS '第三方施工联合惩戒属性结构表';

-- ----------------------------
-- Table structure for sg_jg_dsfsglhcj
-- ----------------------------
DROP TABLE IF EXISTS "public"."sg_jg_dsfsglhcj";
CREATE TABLE "public"."sg_jg_dsfsglhcj" (
  "bsm" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "xzqhdm" varchar(6) COLLATE "pg_catalog"."default" NOT NULL,
  "xmbm" varchar(32) COLLATE "pg_catalog"."default",
  "sjbm" varchar(32) COLLATE "pg_catalog"."default",
  "sjms" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "cjsj" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  "bcjdw" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  "cjjg" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "fj" bytea,
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  "tbsj" timestamp(6) NOT NULL,
  "fbdw" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  "fbsj" date NOT NULL
)
;
COMMENT ON COLUMN "public"."sg_jg_dsfsglhcj"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."sg_jg_dsfsglhcj"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."sg_jg_dsfsglhcj"."xmbm" IS '项目编码';
COMMENT ON COLUMN "public"."sg_jg_dsfsglhcj"."sjbm" IS '事件编码';
COMMENT ON COLUMN "public"."sg_jg_dsfsglhcj"."sjms" IS '事件描述';
COMMENT ON COLUMN "public"."sg_jg_dsfsglhcj"."cjsj" IS '惩戒时间';
COMMENT ON COLUMN "public"."sg_jg_dsfsglhcj"."bcjdw" IS '被惩戒单位';
COMMENT ON COLUMN "public"."sg_jg_dsfsglhcj"."cjjg" IS '惩戒结果';
COMMENT ON COLUMN "public"."sg_jg_dsfsglhcj"."fj" IS '附件';
COMMENT ON COLUMN "public"."sg_jg_dsfsglhcj"."bz" IS '备注';
COMMENT ON COLUMN "public"."sg_jg_dsfsglhcj"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."sg_jg_dsfsglhcj"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."sg_jg_dsfsglhcj"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."sg_jg_dsfsglhcj"."fbdw" IS '发布单位';
COMMENT ON COLUMN "public"."sg_jg_dsfsglhcj"."fbsj" IS '发布时间';
COMMENT ON TABLE "public"."sg_jg_dsfsglhcj" IS '第三方施工联合惩戒属性结构表(2024年6月21日根据省标作废)';

-- ----------------------------
-- Table structure for sg_jc_jcxyz
-- ----------------------------
DROP TABLE IF EXISTS "public"."sg_jc_jcxyz";
CREATE TABLE "public"."sg_jc_jcxyz" (
  "bsm" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "sbbsm" varchar(64) COLLATE "pg_catalog"."default",
  "sblx" varchar(32) COLLATE "pg_catalog"."default",
  "jczb" varchar(32) COLLATE "pg_catalog"."default",
  "bjyz" numeric(13,3),
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6)
)
;
COMMENT ON COLUMN "public"."sg_jc_jcxyz"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."sg_jc_jcxyz"."sbbsm" IS '设备标识码';
COMMENT ON COLUMN "public"."sg_jc_jcxyz"."sblx" IS '设备类型';
COMMENT ON COLUMN "public"."sg_jc_jcxyz"."jczb" IS '监测指标';
COMMENT ON COLUMN "public"."sg_jc_jcxyz"."bjyz" IS '报警阈值';
COMMENT ON COLUMN "public"."sg_jc_jcxyz"."bz" IS '备注';
COMMENT ON COLUMN "public"."sg_jc_jcxyz"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."sg_jc_jcxyz"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."sg_jc_jcxyz"."tbsj" IS '同步时间';
COMMENT ON TABLE "public"."sg_jc_jcxyz" IS '监测项阈值属性结构表';

-- ----------------------------
-- Table structure for sg_jc_jcsb
-- ----------------------------
DROP TABLE IF EXISTS "public"."sg_jc_jcsb";
CREATE TABLE "public"."sg_jc_jcsb" (
  "bsm" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "dwbsm" varchar(32) COLLATE "pg_catalog"."default",
  "sblx" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "sbmc" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "sbxh" varchar(32) COLLATE "pg_catalog"."default",
  "jczb" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "cjpl" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "scpl" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "sbzt" int4 NOT NULL,
  "csmc" varchar(50) COLLATE "pg_catalog"."default",
  "xdgd" numeric(10,3),
  "azsj" date,
  "azwhdw" varchar(100) COLLATE "pg_catalog"."default",
  "gdfs" varchar(32) COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  "tbsj" timestamp(6) NOT NULL,
  "jcssid" varchar(32) COLLATE "pg_catalog"."default",
  "xmbh" varchar(32) COLLATE "pg_catalog"."default",
  "jcssqsqy" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."sg_jc_jcsb"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."dwbsm" IS '点位标识码';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."sblx" IS '设备类型';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."sbmc" IS '设备名称';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."sbxh" IS '设备型号';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."jczb" IS '监测指标';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."cjpl" IS '采集频率';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."scpl" IS '上传频率';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."sbzt" IS '设备状态';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."csmc" IS '厂商名称';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."xdgd" IS '相对高度';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."azsj" IS '安装时间';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."azwhdw" IS '安装维护单位';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."gdfs" IS '供电方式';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."bz" IS '备注';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."jcssid" IS '监测设施编号';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."xmbh" IS '项目编号';
COMMENT ON COLUMN "public"."sg_jc_jcsb"."jcssqsqy" IS '监测设施权属企业';
COMMENT ON TABLE "public"."sg_jc_jcsb" IS '监测设备属性结构表';

-- ----------------------------
-- Table structure for send_expert
-- ----------------------------
DROP TABLE IF EXISTS "public"."send_expert";
CREATE TABLE "public"."send_expert" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "expert_bsm" varchar(64) COLLATE "pg_catalog"."default",
  "type" varchar(255) COLLATE "pg_catalog"."default",
  "reason" varchar(2000) COLLATE "pg_catalog"."default",
  "address" varchar(512) COLLATE "pg_catalog"."default",
  "need_reach_time" timestamp(0),
  "create_time" timestamp(0),
  "creater_id" varchar(64) COLLATE "pg_catalog"."default",
  "status" int2,
  "operate_status_time" timestamp(0),
  "operater_id_status" varchar(255) COLLATE "pg_catalog"."default",
  "result" varchar(2000) COLLATE "pg_catalog"."default",
  "phone" varchar(64) COLLATE "pg_catalog"."default",
  "lon_lat" varchar(500) COLLATE "pg_catalog"."default",
  "foreign_id" varchar(64) COLLATE "pg_catalog"."default",
  "is_message" bool
)
;
COMMENT ON COLUMN "public"."send_expert"."id" IS 'id';
COMMENT ON COLUMN "public"."send_expert"."expert_bsm" IS '专家表(zy_js_yjzj)的bsm编号';
COMMENT ON COLUMN "public"."send_expert"."type" IS '派赴类型(同工单表(work_order_admin)类型字典WORK_TYPE_TO_NEW)';
COMMENT ON COLUMN "public"."send_expert"."reason" IS '原因';
COMMENT ON COLUMN "public"."send_expert"."address" IS '赶赴地址';
COMMENT ON COLUMN "public"."send_expert"."need_reach_time" IS '赶赴现场截至时间';
COMMENT ON COLUMN "public"."send_expert"."create_time" IS '创建时间';
COMMENT ON COLUMN "public"."send_expert"."creater_id" IS '创建人id';
COMMENT ON COLUMN "public"."send_expert"."status" IS '0待完成,1已完成,2已取消';
COMMENT ON COLUMN "public"."send_expert"."operate_status_time" IS '操作status的时间';
COMMENT ON COLUMN "public"."send_expert"."operater_id_status" IS '操作status的人';
COMMENT ON COLUMN "public"."send_expert"."result" IS '处理结果';
COMMENT ON COLUMN "public"."send_expert"."phone" IS '短信电话号码';
COMMENT ON COLUMN "public"."send_expert"."lon_lat" IS '经纬度(暂时不用)';
COMMENT ON COLUMN "public"."send_expert"."foreign_id" IS '关联id';
COMMENT ON COLUMN "public"."send_expert"."is_message" IS '是否短信推送1是,0不是';
COMMENT ON TABLE "public"."send_expert" IS '应急专家派赴现场
';

-- ----------------------------
-- Table structure for rq_js_rqyh
-- ----------------------------
DROP TABLE IF EXISTS "public"."rq_js_rqyh";
CREATE TABLE "public"."rq_js_rqyh" (
  "bsm" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "xzqhdm" varchar(6) COLLATE "pg_catalog"."default",
  "yhlx" int4,
  "fjmyhlx" int4,
  "yhxx" varchar(100) COLLATE "pg_catalog"."default",
  "xxdz" varchar(255) COLLATE "pg_catalog"."default",
  "szjdhsq" varchar(50) COLLATE "pg_catalog"."default",
  "qyrq" date,
  "yqfw" varchar(255) COLLATE "pg_catalog"."default",
  "qyzl" int4 NOT NULL,
  "yhqpzl" int4,
  "yhqcps" int4,
  "yqgm" numeric(12,2),
  "gqdw" varchar(100) COLLATE "pg_catalog"."default",
  "sbssqk" varchar(255) COLLATE "pg_catalog"."default",
  "sfzdyqcs" bool,
  "bjq" int4,
  "sfyqdzz" bool,
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6),
  "kjxx" "public"."geometry"
)
;
COMMENT ON COLUMN "public"."rq_js_rqyh"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."rq_js_rqyh"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."rq_js_rqyh"."yhlx" IS '用户类型';
COMMENT ON COLUMN "public"."rq_js_rqyh"."fjmyhlx" IS '非居民用户类型';
COMMENT ON COLUMN "public"."rq_js_rqyh"."yhxx" IS '用户信息';
COMMENT ON COLUMN "public"."rq_js_rqyh"."xxdz" IS '详细地址';
COMMENT ON COLUMN "public"."rq_js_rqyh"."szjdhsq" IS '所在街道和社区';
COMMENT ON COLUMN "public"."rq_js_rqyh"."qyrq" IS '启用日期';
COMMENT ON COLUMN "public"."rq_js_rqyh"."yqfw" IS '用气范围';
COMMENT ON COLUMN "public"."rq_js_rqyh"."qyzl" IS '气源种类';
COMMENT ON COLUMN "public"."rq_js_rqyh"."yhqpzl" IS '液化气瓶种类';
COMMENT ON COLUMN "public"."rq_js_rqyh"."yhqcps" IS '液化气存瓶数';
COMMENT ON COLUMN "public"."rq_js_rqyh"."yqgm" IS '用气规模';
COMMENT ON COLUMN "public"."rq_js_rqyh"."gqdw" IS '供气单位';
COMMENT ON COLUMN "public"."rq_js_rqyh"."sbssqk" IS '设备设施情况';
COMMENT ON COLUMN "public"."rq_js_rqyh"."sfzdyqcs" IS '是否重点用气场所';
COMMENT ON COLUMN "public"."rq_js_rqyh"."bjq" IS '报警器';
COMMENT ON COLUMN "public"."rq_js_rqyh"."sfyqdzz" IS '是否有切断装置';
COMMENT ON COLUMN "public"."rq_js_rqyh"."bz" IS '备注';
COMMENT ON COLUMN "public"."rq_js_rqyh"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."rq_js_rqyh"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."rq_js_rqyh"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."rq_js_rqyh"."kjxx" IS '空间信息';
COMMENT ON TABLE "public"."rq_js_rqyh" IS '燃气用户属性结构表';

-- ----------------------------
-- Table structure for rq_js_jcd
-- ----------------------------
DROP TABLE IF EXISTS "public"."rq_js_jcd";
CREATE TABLE "public"."rq_js_jcd" (
  "bsm" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "xzqhdm" varchar(6) COLLATE "pg_catalog"."default" NOT NULL,
  "dwmc" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "ssmc" varchar(64) COLLATE "pg_catalog"."default",
  "ssbm" varchar(17) COLLATE "pg_catalog"."default",
  "jcwz" varchar(200) COLLATE "pg_catalog"."default",
  "gc" numeric(10,3),
  "gcjz" varchar(32) COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6) NOT NULL,
  "kjxx" "public"."geometry"
)
;
COMMENT ON COLUMN "public"."rq_js_jcd"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."rq_js_jcd"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."rq_js_jcd"."dwmc" IS '点位名称';
COMMENT ON COLUMN "public"."rq_js_jcd"."ssmc" IS '设施名称';
COMMENT ON COLUMN "public"."rq_js_jcd"."ssbm" IS '设施编码';
COMMENT ON COLUMN "public"."rq_js_jcd"."jcwz" IS '监测位置';
COMMENT ON COLUMN "public"."rq_js_jcd"."gc" IS '高程';
COMMENT ON COLUMN "public"."rq_js_jcd"."gcjz" IS '高程基准';
COMMENT ON COLUMN "public"."rq_js_jcd"."bz" IS '备注';
COMMENT ON COLUMN "public"."rq_js_jcd"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."rq_js_jcd"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."rq_js_jcd"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."rq_js_jcd"."kjxx" IS '空间信息';
COMMENT ON TABLE "public"."rq_js_jcd" IS '监测点属性结构表';

-- ----------------------------
-- Table structure for rq_jg_zgjl
-- ----------------------------
DROP TABLE IF EXISTS "public"."rq_jg_zgjl";
CREATE TABLE "public"."rq_jg_zgjl" (
  "bsm" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "xzqhdm" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  "zgjhmc" varchar(255) COLLATE "pg_catalog"."default",
  "zgnr" varchar(255) COLLATE "pg_catalog"."default",
  "zgwz" varchar(255) COLLATE "pg_catalog"."default",
  "zgtp" varchar COLLATE "pg_catalog"."default",
  "glsbss" varchar(255) COLLATE "pg_catalog"."default",
  "zgrq" date NOT NULL,
  "zgjd" varchar(255) COLLATE "pg_catalog"."default",
  "zgjg" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "zgfzr" varchar(255) COLLATE "pg_catalog"."default",
  "ssqsdw" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  "hyzgdw" varchar(100) COLLATE "pg_catalog"."default",
  "fj" varchar COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  "tbsj" timestamp(6) NOT NULL
)
;
COMMENT ON COLUMN "public"."rq_jg_zgjl"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."rq_jg_zgjl"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."rq_jg_zgjl"."zgjhmc" IS '整改计划名称';
COMMENT ON COLUMN "public"."rq_jg_zgjl"."zgnr" IS '整改内容';
COMMENT ON COLUMN "public"."rq_jg_zgjl"."zgwz" IS '整改位置';
COMMENT ON COLUMN "public"."rq_jg_zgjl"."zgtp" IS '整改图片';
COMMENT ON COLUMN "public"."rq_jg_zgjl"."glsbss" IS '关联设备设施';
COMMENT ON COLUMN "public"."rq_jg_zgjl"."zgrq" IS '整改日期';
COMMENT ON COLUMN "public"."rq_jg_zgjl"."zgjd" IS '整改进度';
COMMENT ON COLUMN "public"."rq_jg_zgjl"."zgjg" IS '整改结果';
COMMENT ON COLUMN "public"."rq_jg_zgjl"."zgfzr" IS '整改负责人';
COMMENT ON COLUMN "public"."rq_jg_zgjl"."ssqsdw" IS '设施权属单位';
COMMENT ON COLUMN "public"."rq_jg_zgjl"."hyzgdw" IS '行业主管单位';
COMMENT ON COLUMN "public"."rq_jg_zgjl"."fj" IS '附件';
COMMENT ON COLUMN "public"."rq_jg_zgjl"."bz" IS '备注';
COMMENT ON COLUMN "public"."rq_jg_zgjl"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."rq_jg_zgjl"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."rq_jg_zgjl"."tbsj" IS '同步时间';
COMMENT ON TABLE "public"."rq_jg_zgjl" IS '整改记录属性结构表';

-- ----------------------------
-- Table structure for rq_jg_lhjcjl
-- ----------------------------
DROP TABLE IF EXISTS "public"."rq_jg_lhjcjl";
CREATE TABLE "public"."rq_jg_lhjcjl" (
  "bsm" varchar COLLATE "pg_catalog"."default",
  "xzqhdm" varchar COLLATE "pg_catalog"."default",
  "qtbm" varchar COLLATE "pg_catalog"."default",
  "cjbm" varchar COLLATE "pg_catalog"."default",
  "jcrq" varchar COLLATE "pg_catalog"."default",
  "jcxm" varchar COLLATE "pg_catalog"."default",
  "jcnr" varchar COLLATE "pg_catalog"."default",
  "jcjg" varchar COLLATE "pg_catalog"."default",
  "zrdw" varchar COLLATE "pg_catalog"."default",
  "jcry" varchar COLLATE "pg_catalog"."default",
  "xczp" varchar COLLATE "pg_catalog"."default",
  "bz" varchar COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6)
)
;
COMMENT ON COLUMN "public"."rq_jg_lhjcjl"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."rq_jg_lhjcjl"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."rq_jg_lhjcjl"."qtbm" IS '牵头部门';
COMMENT ON COLUMN "public"."rq_jg_lhjcjl"."cjbm" IS '参检部门';
COMMENT ON COLUMN "public"."rq_jg_lhjcjl"."jcrq" IS '检查日期';
COMMENT ON COLUMN "public"."rq_jg_lhjcjl"."jcxm" IS '检查项目';
COMMENT ON COLUMN "public"."rq_jg_lhjcjl"."jcnr" IS '检查内容';
COMMENT ON COLUMN "public"."rq_jg_lhjcjl"."jcjg" IS '检查结果';
COMMENT ON COLUMN "public"."rq_jg_lhjcjl"."zrdw" IS '责任单位';
COMMENT ON COLUMN "public"."rq_jg_lhjcjl"."jcry" IS '检查人员';
COMMENT ON COLUMN "public"."rq_jg_lhjcjl"."xczp" IS '现场照片';
COMMENT ON COLUMN "public"."rq_jg_lhjcjl"."bz" IS '备注';
COMMENT ON COLUMN "public"."rq_jg_lhjcjl"."tbsj" IS '同步时间';
COMMENT ON TABLE "public"."rq_jg_lhjcjl" IS '安全专项检查记录';

-- ----------------------------
-- Table structure for rq_jg_fxpg
-- ----------------------------
DROP TABLE IF EXISTS "public"."rq_jg_fxpg";
CREATE TABLE "public"."rq_jg_fxpg" (
  "bsm" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "xzqhdm" varchar(16) COLLATE "pg_catalog"."default",
  "ssqy" varchar(255) COLLATE "pg_catalog"."default",
  "zrdw" varchar(255) COLLATE "pg_catalog"."default",
  "pgdy" varchar(100) COLLATE "pg_catalog"."default",
  "glgdbh" varchar(255) COLLATE "pg_catalog"."default",
  "pgdygdcd" numeric(20,0),
  "fxms" varchar(255) COLLATE "pg_catalog"."default",
  "fxdj" int4,
  "gkzt" int4,
  "gxsj" timestamp(6),
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6),
  "gxid" varchar(255) COLLATE "pg_catalog"."default",
  "fxlx" int4,
  "pgsj" timestamp(6),
  "pgdw" varchar(50) COLLATE "pg_catalog"."default",
  "dz" varchar(255) COLLATE "pg_catalog"."default",
  "pcbh" varchar(255) COLLATE "pg_catalog"."default",
  "pgdymc" varchar(255) COLLATE "pg_catalog"."default",
  "pgdywz" varchar(255) COLLATE "pg_catalog"."default",
  "pgdywybs" varchar(255) COLLATE "pg_catalog"."default",
  "knxdj" int4,
  "hgdj" int4,
  "gkcs" varchar(255) COLLATE "pg_catalog"."default",
  "kjxx" varchar COLLATE "pg_catalog"."default",
  "zbxx" varchar(255) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."rq_jg_fxpg"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."ssqy" IS '所属区域';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."zrdw" IS '责任单位';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."pgdy" IS '评估单元';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."glgdbh" IS '关联管段编号';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."pgdygdcd" IS '评估单元管道长度';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."fxms" IS '风险描述';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."fxdj" IS '风险等级';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."gkzt" IS '管控状态';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."gxsj" IS '更新时间';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."bz" IS '备注';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."gxid" IS '管线id';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."fxlx" IS '风险类型';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."pgsj" IS '评估时间';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."pgdw" IS '评估单位';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."dz" IS '地址';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."pcbh" IS '批次编号';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."pgdymc" IS '评估单元名称';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."pgdywz" IS '评估单元位置';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."pgdywybs" IS '评估单元唯一标识';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."knxdj" IS '可能性等级';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."hgdj" IS '后果等级';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."gkcs" IS '管控措施';
COMMENT ON COLUMN "public"."rq_jg_fxpg"."kjxx" IS '空间信息';
COMMENT ON TABLE "public"."rq_jg_fxpg" IS '风险评估信息表';

-- ----------------------------
-- Table structure for rq_jg_aqzxjcjl
-- ----------------------------
DROP TABLE IF EXISTS "public"."rq_jg_aqzxjcjl";
CREATE TABLE "public"."rq_jg_aqzxjcjl" (
  "bsm" varchar COLLATE "pg_catalog"."default",
  "xzqhdm" varchar COLLATE "pg_catalog"."default",
  "jcdx" varchar COLLATE "pg_catalog"."default",
  "lx" varchar COLLATE "pg_catalog"."default",
  "jcdy" varchar COLLATE "pg_catalog"."default",
  "jcxm" varchar COLLATE "pg_catalog"."default",
  "jcff" varchar COLLATE "pg_catalog"."default",
  "jcnr" varchar COLLATE "pg_catalog"."default",
  "jcjg" varchar COLLATE "pg_catalog"."default",
  "czyh" varchar COLLATE "pg_catalog"."default",
  "jcrq" varchar COLLATE "pg_catalog"."default",
  "jcry" varchar COLLATE "pg_catalog"."default",
  "jcdw" varchar COLLATE "pg_catalog"."default",
  "ssqsdw" varchar COLLATE "pg_catalog"."default",
  "zgdw" varchar COLLATE "pg_catalog"."default",
  "fj" varchar COLLATE "pg_catalog"."default",
  "bz" varchar COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6)
)
;
COMMENT ON COLUMN "public"."rq_jg_aqzxjcjl"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."rq_jg_aqzxjcjl"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."rq_jg_aqzxjcjl"."jcdx" IS '检查对象';
COMMENT ON COLUMN "public"."rq_jg_aqzxjcjl"."lx" IS '类型';
COMMENT ON COLUMN "public"."rq_jg_aqzxjcjl"."jcdy" IS '检查单元';
COMMENT ON COLUMN "public"."rq_jg_aqzxjcjl"."jcxm" IS '检查项目';
COMMENT ON COLUMN "public"."rq_jg_aqzxjcjl"."jcff" IS '检查方法';
COMMENT ON COLUMN "public"."rq_jg_aqzxjcjl"."jcnr" IS '检查内容';
COMMENT ON COLUMN "public"."rq_jg_aqzxjcjl"."jcjg" IS '检查结果';
COMMENT ON COLUMN "public"."rq_jg_aqzxjcjl"."czyh" IS '存在隐患';
COMMENT ON COLUMN "public"."rq_jg_aqzxjcjl"."jcrq" IS '检查日期';
COMMENT ON COLUMN "public"."rq_jg_aqzxjcjl"."jcry" IS '检查人员';
COMMENT ON COLUMN "public"."rq_jg_aqzxjcjl"."jcdw" IS '检查单位';
COMMENT ON COLUMN "public"."rq_jg_aqzxjcjl"."ssqsdw" IS '设施权属单位';
COMMENT ON COLUMN "public"."rq_jg_aqzxjcjl"."zgdw" IS '主管单位';
COMMENT ON COLUMN "public"."rq_jg_aqzxjcjl"."fj" IS '附件';
COMMENT ON COLUMN "public"."rq_jg_aqzxjcjl"."bz" IS '备注';
COMMENT ON COLUMN "public"."rq_jg_aqzxjcjl"."tbsj" IS '同步时间';
COMMENT ON TABLE "public"."rq_jg_aqzxjcjl" IS '安全专项检查记录';

-- ----------------------------
-- Table structure for rq_jc_jcxyz
-- ----------------------------
DROP TABLE IF EXISTS "public"."rq_jc_jcxyz";
CREATE TABLE "public"."rq_jc_jcxyz" (
  "bsm" varchar(32) COLLATE "pg_catalog"."default",
  "sbbsm" varchar(64) COLLATE "pg_catalog"."default",
  "bjyz" numeric(10,3),
  "sblx" varchar(32) COLLATE "pg_catalog"."default",
  "jczb" varchar(32) COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6)
)
;
COMMENT ON COLUMN "public"."rq_jc_jcxyz"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."rq_jc_jcxyz"."sbbsm" IS '设备标识码';
COMMENT ON COLUMN "public"."rq_jc_jcxyz"."bjyz" IS '报警阈值';
COMMENT ON COLUMN "public"."rq_jc_jcxyz"."sblx" IS '设备类型';
COMMENT ON COLUMN "public"."rq_jc_jcxyz"."jczb" IS '监测指标';
COMMENT ON COLUMN "public"."rq_jc_jcxyz"."bz" IS '备注';
COMMENT ON COLUMN "public"."rq_jc_jcxyz"."tbsj" IS '同步时间';
COMMENT ON TABLE "public"."rq_jc_jcxyz" IS '监测项阈值(前置库是rq_jc_jzxyz)';

-- ----------------------------
-- Table structure for rq_jc_jcsb
-- ----------------------------
DROP TABLE IF EXISTS "public"."rq_jc_jcsb";
CREATE TABLE "public"."rq_jc_jcsb" (
  "bsm" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "dwbsm" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "sblx" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "sbmc" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "sbxh" varchar(32) COLLATE "pg_catalog"."default",
  "jczb" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "cjpl" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "scpl" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "sbzt" int4 NOT NULL,
  "csmc" varchar(50) COLLATE "pg_catalog"."default",
  "xdgd" numeric(10,3),
  "azsj" date,
  "azwhdw" varchar(100) COLLATE "pg_catalog"."default",
  "gdfs" varchar(32) COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  "tbsj" timestamp(6) NOT NULL
)
;
COMMENT ON COLUMN "public"."rq_jc_jcsb"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."rq_jc_jcsb"."dwbsm" IS '点位标识码';
COMMENT ON COLUMN "public"."rq_jc_jcsb"."sblx" IS '设备类型';
COMMENT ON COLUMN "public"."rq_jc_jcsb"."sbmc" IS '设备名称';
COMMENT ON COLUMN "public"."rq_jc_jcsb"."sbxh" IS '设备型号';
COMMENT ON COLUMN "public"."rq_jc_jcsb"."jczb" IS '监测指标';
COMMENT ON COLUMN "public"."rq_jc_jcsb"."cjpl" IS '采集频率';
COMMENT ON COLUMN "public"."rq_jc_jcsb"."scpl" IS '上传频率';
COMMENT ON COLUMN "public"."rq_jc_jcsb"."sbzt" IS '设备状态';
COMMENT ON COLUMN "public"."rq_jc_jcsb"."csmc" IS '厂商名称';
COMMENT ON COLUMN "public"."rq_jc_jcsb"."xdgd" IS '相对高度';
COMMENT ON COLUMN "public"."rq_jc_jcsb"."azsj" IS '安装时间';
COMMENT ON COLUMN "public"."rq_jc_jcsb"."azwhdw" IS '安装维护单位';
COMMENT ON COLUMN "public"."rq_jc_jcsb"."gdfs" IS '供电方式';
COMMENT ON COLUMN "public"."rq_jc_jcsb"."bz" IS '备注';
COMMENT ON COLUMN "public"."rq_jc_jcsb"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."rq_jc_jcsb"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."rq_jc_jcsb"."tbsj" IS '同步时间';
COMMENT ON TABLE "public"."rq_jc_jcsb" IS '监测设备属性结构表';

-- ----------------------------
-- Table structure for risk_ledger
-- ----------------------------
DROP TABLE IF EXISTS "public"."risk_ledger";
CREATE TABLE "public"."risk_ledger" (
  "id" varchar(100) COLLATE "pg_catalog"."default",
  "mark_code" varchar(255) COLLATE "pg_catalog"."default",
  "type" varchar(255) COLLATE "pg_catalog"."default",
  "target_name" varchar(255) COLLATE "pg_catalog"."default",
  "region" varchar(255) COLLATE "pg_catalog"."default",
  "region_code" varchar(255) COLLATE "pg_catalog"."default",
  "geom_data" "public"."geometry"
)
;
COMMENT ON COLUMN "public"."risk_ledger"."mark_code" IS '标识码';
COMMENT ON COLUMN "public"."risk_ledger"."type" IS '所属类别';
COMMENT ON COLUMN "public"."risk_ledger"."target_name" IS '防护目标名称';
COMMENT ON COLUMN "public"."risk_ledger"."region" IS '行政区';
COMMENT ON COLUMN "public"."risk_ledger"."region_code" IS '行政区划代码';
COMMENT ON COLUMN "public"."risk_ledger"."geom_data" IS '空间信息';
COMMENT ON TABLE "public"."risk_ledger" IS '防护目标';

-- ----------------------------
-- Table structure for ql_ql
-- ----------------------------
DROP TABLE IF EXISTS "public"."ql_ql";
CREATE TABLE "public"."ql_ql" (
  "bsm" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "xzqhdm" varchar(16) COLLATE "pg_catalog"."default",
  "qlmc" varchar(255) COLLATE "pg_catalog"."default",
  "jgny" varchar(32) COLLATE "pg_catalog"."default",
  "szdlmc" varchar(255) COLLATE "pg_catalog"."default",
  "dldj" int4,
  "kjfl" int4,
  "jglx" int4,
  "kjzh" varchar COLLATE "pg_catalog"."default" NOT NULL,
  "qlzc" numeric(10,2),
  "qlzk" numeric(6,2),
  "kydw" int4,
  "thdj" int4,
  "sfdzd" bool,
  "qmmj" numeric(10,2),
  "kzld" int4,
  "yhlb" int4,
  "yhdj" int4,
  "qlwhzk" int4,
  "qljgzk" int4,
  "jcrq" date NOT NULL,
  "jsdw" varchar(100) COLLATE "pg_catalog"."default",
  "sjdw" varchar(100) COLLATE "pg_catalog"."default",
  "sgdw" varchar(100) COLLATE "pg_catalog"."default",
  "jldw" varchar(100) COLLATE "pg_catalog"."default",
  "gldw" varchar(100) COLLATE "pg_catalog"."default",
  "yhdw" varchar(100) COLLATE "pg_catalog"."default",
  "sfjggz" bool,
  "sfyjjcxt" bool,
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6) DEFAULT CURRENT_TIMESTAMP,
  "del_flag" int4 DEFAULT 0,
  "kjxx" varchar(4000) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(32) COLLATE "pg_catalog"."default",
  "sbsm" varchar(32) COLLATE "pg_catalog"."default",
  "jcbg" varchar COLLATE "pg_catalog"."default",
  "stql" varchar(8) COLLATE "pg_catalog"."default",
  "sfgfxcgql" bool NOT NULL,
  "jkjclx" int4,
  "flbm" varchar(4) COLLATE "pg_catalog"."default" NOT NULL,
  "jgrq" date,
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default"
)
;
COMMENT ON TABLE "public"."ql_ql" IS '桥梁';

-- ----------------------------
-- Table structure for ql_js_ql
-- ----------------------------
DROP TABLE IF EXISTS "public"."ql_js_ql";
CREATE TABLE "public"."ql_js_ql" (
  "bsm" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "xzqhdm" varchar(6) COLLATE "pg_catalog"."default",
  "qlmc" varchar(32) COLLATE "pg_catalog"."default",
  "jgny" varchar(32) COLLATE "pg_catalog"."default",
  "szdlmc" varchar(32) COLLATE "pg_catalog"."default",
  "dldj" int4,
  "kjfl" int4,
  "jglx" int4,
  "kjzh" varchar(4000) COLLATE "pg_catalog"."default",
  "qlzc" numeric(12,2),
  "qlzk" numeric(8,2),
  "kydw" int4,
  "thdj" int4,
  "sfdzd" int4,
  "qmmj" numeric(12,2),
  "kzld" int4,
  "yhlb" int4,
  "yhdj" int4,
  "qlwhzk" varchar(8) COLLATE "pg_catalog"."default",
  "qljgzk" varchar(8) COLLATE "pg_catalog"."default",
  "jcrq" date,
  "jcbg" varchar(255) COLLATE "pg_catalog"."default",
  "jsdw" varchar(100) COLLATE "pg_catalog"."default",
  "sjdw" varchar(100) COLLATE "pg_catalog"."default",
  "sgdw" varchar(100) COLLATE "pg_catalog"."default",
  "jldw" varchar(100) COLLATE "pg_catalog"."default",
  "gldw" varchar(100) COLLATE "pg_catalog"."default",
  "yhdw" varchar(100) COLLATE "pg_catalog"."default",
  "sfjggz" int4,
  "sfyjjcxt" int4,
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6),
  "kjxx" varchar(4000) COLLATE "pg_catalog"."default",
  "del_flag" int4,
  "sbsm" varchar(32) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."ql_js_ql"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."ql_js_ql"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."ql_js_ql"."qlmc" IS '桥梁名称';
COMMENT ON COLUMN "public"."ql_js_ql"."jgny" IS '竣工年月';
COMMENT ON COLUMN "public"."ql_js_ql"."szdlmc" IS '所在道路名称';
COMMENT ON COLUMN "public"."ql_js_ql"."dldj" IS '道路等级';
COMMENT ON COLUMN "public"."ql_js_ql"."kjfl" IS '跨径分类';
COMMENT ON COLUMN "public"."ql_js_ql"."jglx" IS '结构类型';
COMMENT ON COLUMN "public"."ql_js_ql"."kjzh" IS '跨径组合';
COMMENT ON COLUMN "public"."ql_js_ql"."qlzc" IS '桥梁总长';
COMMENT ON COLUMN "public"."ql_js_ql"."qlzk" IS '桥梁总宽';
COMMENT ON COLUMN "public"."ql_js_ql"."kydw" IS '跨越地物';
COMMENT ON COLUMN "public"."ql_js_ql"."thdj" IS '通航等级';
COMMENT ON COLUMN "public"."ql_js_ql"."sfdzd" IS '是否独柱墩';
COMMENT ON COLUMN "public"."ql_js_ql"."qmmj" IS '桥面面积';
COMMENT ON COLUMN "public"."ql_js_ql"."kzld" IS '抗震烈度';
COMMENT ON COLUMN "public"."ql_js_ql"."yhlb" IS '养护类别';
COMMENT ON COLUMN "public"."ql_js_ql"."yhdj" IS '养护等级';
COMMENT ON COLUMN "public"."ql_js_ql"."qlwhzk" IS '桥梁完好状况';
COMMENT ON COLUMN "public"."ql_js_ql"."qljgzk" IS '桥梁结构状况';
COMMENT ON COLUMN "public"."ql_js_ql"."jcrq" IS '检测日期';
COMMENT ON COLUMN "public"."ql_js_ql"."jcbg" IS '检测报告';
COMMENT ON COLUMN "public"."ql_js_ql"."jsdw" IS '建设单位';
COMMENT ON COLUMN "public"."ql_js_ql"."sjdw" IS '设计单位';
COMMENT ON COLUMN "public"."ql_js_ql"."sgdw" IS '施工单位';
COMMENT ON COLUMN "public"."ql_js_ql"."jldw" IS '监理单位';
COMMENT ON COLUMN "public"."ql_js_ql"."gldw" IS '管理单位';
COMMENT ON COLUMN "public"."ql_js_ql"."yhdw" IS '养护单位';
COMMENT ON COLUMN "public"."ql_js_ql"."sfjggz" IS '是否加固改造';
COMMENT ON COLUMN "public"."ql_js_ql"."sfyjjcxt" IS '是否已建监测系统';
COMMENT ON COLUMN "public"."ql_js_ql"."bz" IS '备注';
COMMENT ON COLUMN "public"."ql_js_ql"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."ql_js_ql"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."ql_js_ql"."kjxx" IS '空间信息';
COMMENT ON TABLE "public"."ql_js_ql" IS '桥梁属性结构表';

-- ----------------------------
-- Table structure for ql_js_jcd
-- ----------------------------
DROP TABLE IF EXISTS "public"."ql_js_jcd";
CREATE TABLE "public"."ql_js_jcd" (
  "bsm" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "xzqhdm" varchar(6) COLLATE "pg_catalog"."default" NOT NULL,
  "dwmc" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "ssmc" varchar(64) COLLATE "pg_catalog"."default",
  "ssbm" varchar(17) COLLATE "pg_catalog"."default" NOT NULL,
  "jcwz" varchar(200) COLLATE "pg_catalog"."default",
  "gc" numeric(10,3),
  "gcjz" varchar(32) COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  "tbsj" timestamp(6) NOT NULL,
  "kjxx" "public"."geometry",
  "zb_xy" varchar(255) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."ql_js_jcd"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."ql_js_jcd"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."ql_js_jcd"."dwmc" IS '点位名称';
COMMENT ON COLUMN "public"."ql_js_jcd"."ssmc" IS '设施名称';
COMMENT ON COLUMN "public"."ql_js_jcd"."ssbm" IS '设施编码';
COMMENT ON COLUMN "public"."ql_js_jcd"."jcwz" IS '监测位置';
COMMENT ON COLUMN "public"."ql_js_jcd"."gc" IS '高程';
COMMENT ON COLUMN "public"."ql_js_jcd"."gcjz" IS '高程基准';
COMMENT ON COLUMN "public"."ql_js_jcd"."bz" IS '备注';
COMMENT ON COLUMN "public"."ql_js_jcd"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."ql_js_jcd"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."ql_js_jcd"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."ql_js_jcd"."kjxx" IS '空间信息';
COMMENT ON COLUMN "public"."ql_js_jcd"."zb_xy" IS 'xy坐标';
COMMENT ON TABLE "public"."ql_js_jcd" IS '桥梁监测点属性结构表';

-- ----------------------------
-- Table structure for ql_jg_fxpg
-- ----------------------------
DROP TABLE IF EXISTS "public"."ql_jg_fxpg";
CREATE TABLE "public"."ql_jg_fxpg" (
  "bsm" varchar(64) COLLATE "pg_catalog"."default",
  "xzqhdm" varchar(16) COLLATE "pg_catalog"."default",
  "qlmc" varchar(255) COLLATE "pg_catalog"."default",
  "qlbh" varchar(64) COLLATE "pg_catalog"."default",
  "pgsj" timestamp(6),
  "fxmc" varchar(255) COLLATE "pg_catalog"."default",
  "fxdj" int4,
  "fxms" varchar(100) COLLATE "pg_catalog"."default",
  "gkzt" varchar(64) COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6),
  "tbzt" int4,
  "kjxx" varchar(4000) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(32) COLLATE "pg_catalog"."default",
  "gkcs" varchar(100) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."ql_jg_fxpg"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."ql_jg_fxpg"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."ql_jg_fxpg"."qlmc" IS '桥梁名称';
COMMENT ON COLUMN "public"."ql_jg_fxpg"."qlbh" IS '桥梁编号';
COMMENT ON COLUMN "public"."ql_jg_fxpg"."pgsj" IS '评估时间';
COMMENT ON COLUMN "public"."ql_jg_fxpg"."fxmc" IS '风险名称';
COMMENT ON COLUMN "public"."ql_jg_fxpg"."fxdj" IS '风险等级';
COMMENT ON COLUMN "public"."ql_jg_fxpg"."fxms" IS '风险描述';
COMMENT ON COLUMN "public"."ql_jg_fxpg"."gkzt" IS '管控状态';
COMMENT ON COLUMN "public"."ql_jg_fxpg"."bz" IS '备注';
COMMENT ON COLUMN "public"."ql_jg_fxpg"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."ql_jg_fxpg"."kjxx" IS '空间信息';
COMMENT ON COLUMN "public"."ql_jg_fxpg"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."ql_jg_fxpg"."gkcs" IS '管控措施';
COMMENT ON COLUMN "public"."ql_jg_fxpg"."sjtbzt" IS '数据同步状态';
COMMENT ON TABLE "public"."ql_jg_fxpg" IS '风险评估';

-- ----------------------------
-- Table structure for ql_jc_jcxyz
-- ----------------------------
DROP TABLE IF EXISTS "public"."ql_jc_jcxyz";
CREATE TABLE "public"."ql_jc_jcxyz" (
  "bsm" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "sbbsm" varchar(64) COLLATE "pg_catalog"."default",
  "sblx" varchar(32) COLLATE "pg_catalog"."default",
  "jczb" varchar(32) COLLATE "pg_catalog"."default",
  "bjyz" numeric(13,3),
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6)
)
;
COMMENT ON COLUMN "public"."ql_jc_jcxyz"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."ql_jc_jcxyz"."sbbsm" IS '设备标识码';
COMMENT ON COLUMN "public"."ql_jc_jcxyz"."sblx" IS '设备类型';
COMMENT ON COLUMN "public"."ql_jc_jcxyz"."jczb" IS '监测指标';
COMMENT ON COLUMN "public"."ql_jc_jcxyz"."bjyz" IS '报警阈值';
COMMENT ON COLUMN "public"."ql_jc_jcxyz"."bz" IS '备注';
COMMENT ON COLUMN "public"."ql_jc_jcxyz"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."ql_jc_jcxyz"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."ql_jc_jcxyz"."tbsj" IS '同步时间';
COMMENT ON TABLE "public"."ql_jc_jcxyz" IS '桥梁监测项阈值属性结构表';

-- ----------------------------
-- Table structure for ql_jc_jcsb
-- ----------------------------
DROP TABLE IF EXISTS "public"."ql_jc_jcsb";
CREATE TABLE "public"."ql_jc_jcsb" (
  "bsm" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "dwbsm" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "sblx" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "sbmc" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "sbxh" varchar(32) COLLATE "pg_catalog"."default",
  "jczb" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "cjpl" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "scpl" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "sbzt" int4 NOT NULL,
  "csmc" varchar(50) COLLATE "pg_catalog"."default",
  "xdgd" numeric(10,3),
  "azsj" date,
  "azwhdw" varchar(100) COLLATE "pg_catalog"."default",
  "gdfs" varchar(32) COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  "tbsj" timestamp(6) NOT NULL
)
;
COMMENT ON COLUMN "public"."ql_jc_jcsb"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."ql_jc_jcsb"."dwbsm" IS '点位标识码';
COMMENT ON COLUMN "public"."ql_jc_jcsb"."sblx" IS '设备类型';
COMMENT ON COLUMN "public"."ql_jc_jcsb"."sbmc" IS '设备名称';
COMMENT ON COLUMN "public"."ql_jc_jcsb"."sbxh" IS '设备型号';
COMMENT ON COLUMN "public"."ql_jc_jcsb"."jczb" IS '监测指标';
COMMENT ON COLUMN "public"."ql_jc_jcsb"."cjpl" IS '采集频率';
COMMENT ON COLUMN "public"."ql_jc_jcsb"."scpl" IS '上传频率';
COMMENT ON COLUMN "public"."ql_jc_jcsb"."sbzt" IS '设备状态';
COMMENT ON COLUMN "public"."ql_jc_jcsb"."csmc" IS '厂商名称';
COMMENT ON COLUMN "public"."ql_jc_jcsb"."xdgd" IS '相对高度';
COMMENT ON COLUMN "public"."ql_jc_jcsb"."azsj" IS '安装时间';
COMMENT ON COLUMN "public"."ql_jc_jcsb"."azwhdw" IS '安装维护单位';
COMMENT ON COLUMN "public"."ql_jc_jcsb"."gdfs" IS '供电方式';
COMMENT ON COLUMN "public"."ql_jc_jcsb"."bz" IS '备注';
COMMENT ON COLUMN "public"."ql_jc_jcsb"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."ql_jc_jcsb"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."ql_jc_jcsb"."tbsj" IS '同步时间';
COMMENT ON TABLE "public"."ql_jc_jcsb" IS '监测设备属性结构表';

-- ----------------------------
-- Table structure for public_report_hidden_trouble_lifeline
-- ----------------------------
DROP TABLE IF EXISTS "public"."public_report_hidden_trouble_lifeline";
CREATE TABLE "public"."public_report_hidden_trouble_lifeline" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "scene" varchar(16) COLLATE "pg_catalog"."default",
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "hidden_trouble_name" varchar(500) COLLATE "pg_catalog"."default",
  "report_type" varchar(16) COLLATE "pg_catalog"."default",
  "hidden_trouble_description" varchar(2000) COLLATE "pg_catalog"."default",
  "hidden_trouble_address" varchar(500) COLLATE "pg_catalog"."default",
  "hidden_trouble_grade" varchar(16) COLLATE "pg_catalog"."default",
  "find_time" timestamp(6),
  "report_unit" varchar(200) COLLATE "pg_catalog"."default",
  "report_people" varchar(32) COLLATE "pg_catalog"."default",
  "report_people_tel" varchar(32) COLLATE "pg_catalog"."default",
  "scene_photo" text COLLATE "pg_catalog"."default",
  "dispose_progress" varchar(16) COLLATE "pg_catalog"."default",
  "dispose_unit" varchar(200) COLLATE "pg_catalog"."default",
  "dispose_people" varchar(32) COLLATE "pg_catalog"."default",
  "dispose_people_tel" varchar(32) COLLATE "pg_catalog"."default",
  "dispose_finish_time" timestamp(6),
  "remark" varchar(500) COLLATE "pg_catalog"."default",
  "dispose_photo" text COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default",
  "geom_data" "public"."geometry"
)
;
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."scene" IS '专项场景';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."area" IS '行政区划';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."hidden_trouble_name" IS '隐患名称';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."report_type" IS '上报类型';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."hidden_trouble_description" IS '隐患描述';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."hidden_trouble_address" IS '隐患地址';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."hidden_trouble_grade" IS '隐患等级 0-I级、1-II级、2-III级、3-IV级(备用)';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."find_time" IS '发现时间';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."report_unit" IS '上报单位(备用)';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."report_people" IS '上报人员';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."report_people_tel" IS '人员联系电话';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."scene_photo" IS '现场照片';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."dispose_progress" IS '处置进度 0未处置、1处置中、2已完成';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."dispose_unit" IS '处置单位';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."dispose_people" IS '处置负责人';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."dispose_people_tel" IS '负责人联系电话';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."dispose_finish_time" IS '处置完成时间';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."remark" IS '备注 ';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."dispose_photo" IS '处置照片';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."defined" IS '自定义(1时为公众上报数据,null为平台修改数据)';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."deleted" IS '是否删除';
COMMENT ON COLUMN "public"."public_report_hidden_trouble_lifeline"."geom_data" IS '空间信息(备用)';
COMMENT ON TABLE "public"."public_report_hidden_trouble_lifeline" IS '公众上报的隐患';

-- ----------------------------
-- Table structure for ps_js_zyhd
-- ----------------------------
DROP TABLE IF EXISTS "public"."ps_js_zyhd";
CREATE TABLE "public"."ps_js_zyhd" (
  "bsm" varchar(64) COLLATE "pg_catalog"."default",
  "xzqhdm" varchar(16) COLLATE "pg_catalog"."default",
  "hdbm" varchar(64) COLLATE "pg_catalog"."default",
  "hlmc" varchar(20) COLLATE "pg_catalog"."default",
  "hdcd" numeric(11,3),
  "qdzhbm" varchar(17) COLLATE "pg_catalog"."default",
  "zdzhbm" varchar(17) COLLATE "pg_catalog"."default",
  "qdhdbg" numeric(10,3),
  "zdhdbg" numeric(10,3),
  "csw" numeric(8,2),
  "jjsw" numeric(8,2),
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "kjxx" "public"."geometry",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6)
)
;
COMMENT ON COLUMN "public"."ps_js_zyhd"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."ps_js_zyhd"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."ps_js_zyhd"."hdbm" IS '河道编码';
COMMENT ON COLUMN "public"."ps_js_zyhd"."hlmc" IS '河流名称';
COMMENT ON COLUMN "public"."ps_js_zyhd"."hdcd" IS '河段长度';
COMMENT ON COLUMN "public"."ps_js_zyhd"."qdzhbm" IS '起点桩号编码';
COMMENT ON COLUMN "public"."ps_js_zyhd"."zdzhbm" IS '终点桩号编码';
COMMENT ON COLUMN "public"."ps_js_zyhd"."qdhdbg" IS '起点河底标高';
COMMENT ON COLUMN "public"."ps_js_zyhd"."zdhdbg" IS '终点河底标高';
COMMENT ON COLUMN "public"."ps_js_zyhd"."csw" IS '常水位';
COMMENT ON COLUMN "public"."ps_js_zyhd"."jjsw" IS '警戒水位';
COMMENT ON COLUMN "public"."ps_js_zyhd"."bz" IS '备注';
COMMENT ON COLUMN "public"."ps_js_zyhd"."kjxx" IS '空间信息';
COMMENT ON COLUMN "public"."ps_js_zyhd"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."ps_js_zyhd"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."ps_js_zyhd"."tbsj" IS '同步时间';
COMMENT ON TABLE "public"."ps_js_zyhd" IS '主要河道';

-- ----------------------------
-- Table structure for ps_js_yld
-- ----------------------------
DROP TABLE IF EXISTS "public"."ps_js_yld";
CREATE TABLE "public"."ps_js_yld" (
  "bsm" varchar(64) COLLATE "pg_catalog"."default",
  "xzqhdm" varchar(16) COLLATE "pg_catalog"."default",
  "mc" varchar(50) COLLATE "pg_catalog"."default",
  "dz" varchar(255) COLLATE "pg_catalog"."default",
  "fxdj" varchar(32) COLLATE "pg_catalog"."default",
  "dcjyl" varchar(32) COLLATE "pg_catalog"."default",
  "dcjylcxsj" varchar(32) COLLATE "pg_catalog"."default",
  "dczdnlss" varchar(32) COLLATE "pg_catalog"."default",
  "dczdysmj" varchar(32) COLLATE "pg_catalog"."default",
  "dcnlcxsj" varchar(32) COLLATE "pg_catalog"."default",
  "nlzyyy" text COLLATE "pg_catalog"."default",
  "dcrq" timestamp(6),
  "qyqkms" text COLLATE "pg_catalog"."default",
  "tbdw" varchar(100) COLLATE "pg_catalog"."default",
  "tbrq" timestamp(6),
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "kjxx" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(255) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(255) COLLATE "pg_catalog"."default",
  "tbsj" varchar(255) COLLATE "pg_catalog"."default",
  "ydcs" varchar(255) COLLATE "pg_catalog"."default",
  "cx" varchar(255) COLLATE "pg_catalog"."default",
  "zzzt" int4,
  "zzsj" timestamp(6)
)
;
COMMENT ON TABLE "public"."ps_js_yld" IS 'ps_js_yld-->NL_JG_YLD排水易涝点属性结构表';

-- ----------------------------
-- Table structure for ps_js_xxtd
-- ----------------------------
DROP TABLE IF EXISTS "public"."ps_js_xxtd";
CREATE TABLE "public"."ps_js_xxtd" (
  "bsm" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "xzqhdm" varchar(16) COLLATE "pg_catalog"."default",
  "xxtdbm" varchar(64) COLLATE "pg_catalog"."default",
  "dbysxxtdlx" int4 NOT NULL,
  "lmdjymclx" int4,
  "dbysxxtdcl" numeric(11,4) NOT NULL,
  "sjly" varchar(255) COLLATE "pg_catalog"."default",
  "sjhqrq" date,
  "tbdw" varchar(255) COLLATE "pg_catalog"."default",
  "tbrq" date,
  "dlmc" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "dz" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "cd" numeric(12,3) NOT NULL,
  "mj" numeric(14,2) NOT NULL,
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(255) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(255) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6),
  "kjxx" text COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."ps_js_xxtd"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."ps_js_xxtd"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."ps_js_xxtd"."xxtdbm" IS '行泄通道编码';
COMMENT ON COLUMN "public"."ps_js_xxtd"."dbysxxtdlx" IS '地表雨水行泄通道类型';
COMMENT ON COLUMN "public"."ps_js_xxtd"."lmdjymclx" IS '路面等级与面层类型';
COMMENT ON COLUMN "public"."ps_js_xxtd"."dbysxxtdcl" IS '地表雨水行泄通道糙率';
COMMENT ON COLUMN "public"."ps_js_xxtd"."sjly" IS '数据来源';
COMMENT ON COLUMN "public"."ps_js_xxtd"."sjhqrq" IS '数据获取日期';
COMMENT ON COLUMN "public"."ps_js_xxtd"."tbdw" IS '填报单位';
COMMENT ON COLUMN "public"."ps_js_xxtd"."tbrq" IS '填报日期';
COMMENT ON COLUMN "public"."ps_js_xxtd"."dlmc" IS '道路名称';
COMMENT ON COLUMN "public"."ps_js_xxtd"."dz" IS '地址';
COMMENT ON COLUMN "public"."ps_js_xxtd"."cd" IS '长度';
COMMENT ON COLUMN "public"."ps_js_xxtd"."mj" IS '面积';
COMMENT ON COLUMN "public"."ps_js_xxtd"."bz" IS '备注';
COMMENT ON COLUMN "public"."ps_js_xxtd"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."ps_js_xxtd"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."ps_js_xxtd"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."ps_js_xxtd"."kjxx" IS '空间信息';
COMMENT ON TABLE "public"."ps_js_xxtd" IS '行泄通道属性结构表';

-- ----------------------------
-- Table structure for ps_js_psh
-- ----------------------------
DROP TABLE IF EXISTS "public"."ps_js_psh";
CREATE TABLE "public"."ps_js_psh" (
  "bsm" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "xzqhdm" varchar(255) COLLATE "pg_catalog"."default",
  "sspsxt" varchar(255) COLLATE "pg_catalog"."default",
  "pshmc" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "pshdz" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "jrjcjbm" varchar(255) COLLATE "pg_catalog"."default",
  "zzjgdm" varchar(255) COLLATE "pg_catalog"."default",
  "lxdh" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "zgdw" varchar(255) COLLATE "pg_catalog"."default",
  "pshlx" varchar(255) COLLATE "pg_catalog"."default",
  "sfwzdpsh" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "zyscgy" varchar(255) COLLATE "pg_catalog"."default",
  "psxkzbh" varchar(255) COLLATE "pg_catalog"."default",
  "yhzl" varchar(255) COLLATE "pg_catalog"."default",
  "zbsl" varchar(255) COLLATE "pg_catalog"."default",
  "zpsl" varchar(255) COLLATE "pg_catalog"."default",
  "scwsl" varchar(255) COLLATE "pg_catalog"."default",
  "shwsl" varchar(255) COLLATE "pg_catalog"."default",
  "dylwrwmc" varchar(255) COLLATE "pg_catalog"."default",
  "delwrwmc" varchar(255) COLLATE "pg_catalog"."default",
  "wsclfs" varchar(255) COLLATE "pg_catalog"."default",
  "wsclgm" varchar(255) COLLATE "pg_catalog"."default",
  "sjhqrq" varchar(255) COLLATE "pg_catalog"."default",
  "tbdw" varchar(255) COLLATE "pg_catalog"."default",
  "tbrq" varchar(255) COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(255) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(255) COLLATE "pg_catalog"."default",
  "tbsj" varchar(255) COLLATE "pg_catalog"."default",
  "kjxx" text COLLATE "pg_catalog"."default",
  "mrdb" varchar(255) COLLATE "pg_catalog"."default",
  "xkzffrq" varchar(255) COLLATE "pg_catalog"."default",
  "jszlwjs" varchar(255) COLLATE "pg_catalog"."default",
  "jly" varchar(255) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."ps_js_psh"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."ps_js_psh"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."ps_js_psh"."sspsxt" IS '所属排水系统';
COMMENT ON COLUMN "public"."ps_js_psh"."pshmc" IS '排水户名称';
COMMENT ON COLUMN "public"."ps_js_psh"."pshdz" IS '排水户地址';
COMMENT ON COLUMN "public"."ps_js_psh"."jrjcjbm" IS '接入检查井编码';
COMMENT ON COLUMN "public"."ps_js_psh"."zzjgdm" IS '组织机构代码';
COMMENT ON COLUMN "public"."ps_js_psh"."lxdh" IS '联系电话';
COMMENT ON COLUMN "public"."ps_js_psh"."zgdw" IS '主管单位';
COMMENT ON COLUMN "public"."ps_js_psh"."pshlx" IS '排水户类型';
COMMENT ON COLUMN "public"."ps_js_psh"."sfwzdpsh" IS '是否为重点排水户';
COMMENT ON COLUMN "public"."ps_js_psh"."zyscgy" IS '主要生产工艺';
COMMENT ON COLUMN "public"."ps_js_psh"."psxkzbh" IS '排水许可证编号';
COMMENT ON COLUMN "public"."ps_js_psh"."yhzl" IS '用户总量';
COMMENT ON COLUMN "public"."ps_js_psh"."zbsl" IS '自备水量';
COMMENT ON COLUMN "public"."ps_js_psh"."zpsl" IS '总排水量';
COMMENT ON COLUMN "public"."ps_js_psh"."scwsl" IS '生产污水量';
COMMENT ON COLUMN "public"."ps_js_psh"."shwsl" IS '生活污水量';
COMMENT ON COLUMN "public"."ps_js_psh"."dylwrwmc" IS '第一类污染物名称';
COMMENT ON COLUMN "public"."ps_js_psh"."delwrwmc" IS '第二类污染物名称';
COMMENT ON COLUMN "public"."ps_js_psh"."wsclfs" IS '污水处理方式';
COMMENT ON COLUMN "public"."ps_js_psh"."wsclgm" IS '污水处理规模';
COMMENT ON COLUMN "public"."ps_js_psh"."sjhqrq" IS '数据获取日期';
COMMENT ON COLUMN "public"."ps_js_psh"."tbdw" IS '填报单位';
COMMENT ON COLUMN "public"."ps_js_psh"."tbrq" IS '填报日期';
COMMENT ON COLUMN "public"."ps_js_psh"."bz" IS '备注';
COMMENT ON COLUMN "public"."ps_js_psh"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."ps_js_psh"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."ps_js_psh"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."ps_js_psh"."kjxx" IS '空间信息';
COMMENT ON TABLE "public"."ps_js_psh" IS '重点排水户属性结构表';

-- ----------------------------
-- Table structure for ps_js_jcd
-- ----------------------------
DROP TABLE IF EXISTS "public"."ps_js_jcd";
CREATE TABLE "public"."ps_js_jcd" (
  "bsm" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "xzqhdm" varchar(6) COLLATE "pg_catalog"."default" NOT NULL,
  "dwmc" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "ssmc" varchar(64) COLLATE "pg_catalog"."default",
  "ssbm" varchar(17) COLLATE "pg_catalog"."default" NOT NULL,
  "jcwz" varchar(200) COLLATE "pg_catalog"."default",
  "gc" numeric(10,3),
  "gcjz" varchar(32) COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6),
  "lb" int4 NOT NULL DEFAULT 1,
  "jcfx" int4,
  "kjxx" "public"."geometry"
)
;
COMMENT ON COLUMN "public"."ps_js_jcd"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."ps_js_jcd"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."ps_js_jcd"."dwmc" IS '点位名称';
COMMENT ON COLUMN "public"."ps_js_jcd"."ssmc" IS '设施名称';
COMMENT ON COLUMN "public"."ps_js_jcd"."ssbm" IS '设施编码';
COMMENT ON COLUMN "public"."ps_js_jcd"."jcwz" IS '监测位置';
COMMENT ON COLUMN "public"."ps_js_jcd"."gc" IS '高程';
COMMENT ON COLUMN "public"."ps_js_jcd"."gcjz" IS '高程基准';
COMMENT ON COLUMN "public"."ps_js_jcd"."bz" IS '备注';
COMMENT ON COLUMN "public"."ps_js_jcd"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."ps_js_jcd"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."ps_js_jcd"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."ps_js_jcd"."lb" IS '类别：1(雨水)/2(污水)/3(合流)';
COMMENT ON COLUMN "public"."ps_js_jcd"."jcfx" IS '监测方向';
COMMENT ON COLUMN "public"."ps_js_jcd"."kjxx" IS '空间信息';
COMMENT ON TABLE "public"."ps_js_jcd" IS '监测点属性结构表';

-- ----------------------------
-- Table structure for ps_jg_ysfxgk
-- ----------------------------
DROP TABLE IF EXISTS "public"."ps_jg_ysfxgk";
CREATE TABLE "public"."ps_jg_ysfxgk" (
  "bsm" varchar(64) COLLATE "pg_catalog"."default",
  "xzqhdm" varchar(16) COLLATE "pg_catalog"."default",
  "nf" varchar(64) COLLATE "pg_catalog"."default",
  "fxmc" varchar(64) COLLATE "pg_catalog"."default",
  "fxdj" varchar(64) COLLATE "pg_catalog"."default",
  "fxly" varchar(255) COLLATE "pg_catalog"."default",
  "fxnr" varchar(255) COLLATE "pg_catalog"."default",
  "wz" varchar(100) COLLATE "pg_catalog"."default",
  "mj" numeric(12,2),
  "gkcs" varchar(255) COLLATE "pg_catalog"."default",
  "sfgk" varchar(1) COLLATE "pg_catalog"."default",
  "gkzt" varchar(64) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6),
  "kjxx" "public"."geometry"
)
;
COMMENT ON TABLE "public"."ps_jg_ysfxgk" IS '雨水风险管控';

-- ----------------------------
-- Table structure for ps_jc_jcxyz
-- ----------------------------
DROP TABLE IF EXISTS "public"."ps_jc_jcxyz";
CREATE TABLE "public"."ps_jc_jcxyz" (
  "bsm" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "sbbsm" varchar(64) COLLATE "pg_catalog"."default",
  "sblx" varchar(32) COLLATE "pg_catalog"."default",
  "jczb" varchar(32) COLLATE "pg_catalog"."default",
  "bjyz" numeric(13,3),
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6),
  "lb" int4 DEFAULT 1
)
;
COMMENT ON COLUMN "public"."ps_jc_jcxyz"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."ps_jc_jcxyz"."sbbsm" IS '设备标识码';
COMMENT ON COLUMN "public"."ps_jc_jcxyz"."sblx" IS '设备类型';
COMMENT ON COLUMN "public"."ps_jc_jcxyz"."jczb" IS '监测指标';
COMMENT ON COLUMN "public"."ps_jc_jcxyz"."bjyz" IS '报警阈值';
COMMENT ON COLUMN "public"."ps_jc_jcxyz"."bz" IS '备注';
COMMENT ON COLUMN "public"."ps_jc_jcxyz"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."ps_jc_jcxyz"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."ps_jc_jcxyz"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."ps_jc_jcxyz"."lb" IS '类别：1(雨水)/2(污水)/3(合流)';
COMMENT ON TABLE "public"."ps_jc_jcxyz" IS '监测项阈值属性结构表';

-- ----------------------------
-- Table structure for ps_jc_jcsb
-- ----------------------------
DROP TABLE IF EXISTS "public"."ps_jc_jcsb";
CREATE TABLE "public"."ps_jc_jcsb" (
  "bsm" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "dwbsm" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "sblx" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "sbmc" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "sbxh" varchar(32) COLLATE "pg_catalog"."default",
  "jczb" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "cjpl" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "scpl" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "sbzt" int4 NOT NULL,
  "csmc" varchar(50) COLLATE "pg_catalog"."default",
  "xdgd" numeric(10,3),
  "azsj" date,
  "azwhdw" varchar(100) COLLATE "pg_catalog"."default",
  "gdfs" varchar(32) COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  "tbsj" timestamp(6) NOT NULL,
  "lb" int4 NOT NULL DEFAULT 1
)
;
COMMENT ON COLUMN "public"."ps_jc_jcsb"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."ps_jc_jcsb"."dwbsm" IS '点位标识码';
COMMENT ON COLUMN "public"."ps_jc_jcsb"."sblx" IS '设备类型';
COMMENT ON COLUMN "public"."ps_jc_jcsb"."sbmc" IS '设备名称';
COMMENT ON COLUMN "public"."ps_jc_jcsb"."sbxh" IS '设备型号';
COMMENT ON COLUMN "public"."ps_jc_jcsb"."jczb" IS '监测指标';
COMMENT ON COLUMN "public"."ps_jc_jcsb"."cjpl" IS '采集频率';
COMMENT ON COLUMN "public"."ps_jc_jcsb"."scpl" IS '上传频率';
COMMENT ON COLUMN "public"."ps_jc_jcsb"."sbzt" IS '设备状态';
COMMENT ON COLUMN "public"."ps_jc_jcsb"."csmc" IS '厂商名称';
COMMENT ON COLUMN "public"."ps_jc_jcsb"."xdgd" IS '相对高度';
COMMENT ON COLUMN "public"."ps_jc_jcsb"."azsj" IS '安装时间';
COMMENT ON COLUMN "public"."ps_jc_jcsb"."azwhdw" IS '安装维护单位';
COMMENT ON COLUMN "public"."ps_jc_jcsb"."gdfs" IS '供电方式';
COMMENT ON COLUMN "public"."ps_jc_jcsb"."bz" IS '备注';
COMMENT ON COLUMN "public"."ps_jc_jcsb"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."ps_jc_jcsb"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."ps_jc_jcsb"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."ps_jc_jcsb"."lb" IS '类别：1(雨水)/2(污水)/3(合流)';
COMMENT ON TABLE "public"."ps_jc_jcsb" IS '监测设备属性结构表';

-- ----------------------------
-- Table structure for operation_maintain_platform
-- ----------------------------
DROP TABLE IF EXISTS "public"."operation_maintain_platform";
CREATE TABLE "public"."operation_maintain_platform" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "name" varchar(200) COLLATE "pg_catalog"."default",
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "modify_time" timestamp(6),
  "type" varchar(50) COLLATE "pg_catalog"."default",
  "size" varchar(50) COLLATE "pg_catalog"."default",
  "down_num" varchar(50) COLLATE "pg_catalog"."default",
  "annex" varchar(500) COLLATE "pg_catalog"."default",
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1
)
;
COMMENT ON COLUMN "public"."operation_maintain_platform"."id" IS '主键';
COMMENT ON COLUMN "public"."operation_maintain_platform"."name" IS '手册名称';
COMMENT ON COLUMN "public"."operation_maintain_platform"."scene" IS '所属专项  燃气爆炸、城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷 ';
COMMENT ON COLUMN "public"."operation_maintain_platform"."modify_time" IS '修改时间';
COMMENT ON COLUMN "public"."operation_maintain_platform"."type" IS '文件类型';
COMMENT ON COLUMN "public"."operation_maintain_platform"."size" IS '文件大小';
COMMENT ON COLUMN "public"."operation_maintain_platform"."down_num" IS '下周次数';
COMMENT ON COLUMN "public"."operation_maintain_platform"."annex" IS '附件地址';
COMMENT ON COLUMN "public"."operation_maintain_platform"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."operation_maintain_platform"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."operation_maintain_platform"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."operation_maintain_platform"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."operation_maintain_platform"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON TABLE "public"."operation_maintain_platform" IS '运行维护-平台手册';

-- ----------------------------
-- Table structure for operation_maintain_performance
-- ----------------------------
DROP TABLE IF EXISTS "public"."operation_maintain_performance";
CREATE TABLE "public"."operation_maintain_performance" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "assets_id" varchar(50) COLLATE "pg_catalog"."default",
  "assets_state" varchar(50) COLLATE "pg_catalog"."default",
  "failure_rate" varchar(50) COLLATE "pg_catalog"."default",
  "online_rate" varchar(50) COLLATE "pg_catalog"."default",
  "data_quality" varchar(50) COLLATE "pg_catalog"."default",
  "maintain_num" varchar(50) COLLATE "pg_catalog"."default",
  "failure_num" varchar(50) COLLATE "pg_catalog"."default",
  "repair_duration" varchar(50) COLLATE "pg_catalog"."default",
  "score" varchar(50) COLLATE "pg_catalog"."default",
  "score_time" timestamp(6),
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1
)
;
COMMENT ON COLUMN "public"."operation_maintain_performance"."id" IS '主键';
COMMENT ON COLUMN "public"."operation_maintain_performance"."assets_id" IS '设备 id ，需要关联设备资产表';
COMMENT ON COLUMN "public"."operation_maintain_performance"."assets_state" IS '设备状态 未使用、正常、试运行、故障、维修、报废';
COMMENT ON COLUMN "public"."operation_maintain_performance"."failure_rate" IS '设备故障率';
COMMENT ON COLUMN "public"."operation_maintain_performance"."online_rate" IS '设备在线率';
COMMENT ON COLUMN "public"."operation_maintain_performance"."data_quality" IS '设备数据质量  下拉框';
COMMENT ON COLUMN "public"."operation_maintain_performance"."maintain_num" IS '保养次数（次）';
COMMENT ON COLUMN "public"."operation_maintain_performance"."failure_num" IS '故障次数（次）';
COMMENT ON COLUMN "public"."operation_maintain_performance"."repair_duration" IS '平均故障维修时间（小时）';
COMMENT ON COLUMN "public"."operation_maintain_performance"."score" IS '设备评分';
COMMENT ON COLUMN "public"."operation_maintain_performance"."score_time" IS '评分日期';
COMMENT ON COLUMN "public"."operation_maintain_performance"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."operation_maintain_performance"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."operation_maintain_performance"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."operation_maintain_performance"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."operation_maintain_performance"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON TABLE "public"."operation_maintain_performance" IS '运行维护-设备绩效管理';

-- ----------------------------
-- Table structure for operation_maintain_assets
-- ----------------------------
DROP TABLE IF EXISTS "public"."operation_maintain_assets";
CREATE TABLE "public"."operation_maintain_assets" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "name" varchar(500) COLLATE "pg_catalog"."default",
  "bsm" varchar(500) COLLATE "pg_catalog"."default",
  "model" varchar(500) COLLATE "pg_catalog"."default",
  "purchase_time" timestamp(6),
  "producer" varchar(500) COLLATE "pg_catalog"."default",
  "enable_time" timestamp(6),
  "location" varchar(2000) COLLATE "pg_catalog"."default",
  "assets_state" varchar(50) COLLATE "pg_catalog"."default",
  "scrap_time" timestamp(6),
  "label" varchar(500) COLLATE "pg_catalog"."default",
  "annex" varchar(500) COLLATE "pg_catalog"."default",
  "order_num" int8,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1,
  "geometry_data" "public"."geometry"
)
;
COMMENT ON COLUMN "public"."operation_maintain_assets"."id" IS '主键';
COMMENT ON COLUMN "public"."operation_maintain_assets"."scene" IS '所属专项  燃气爆炸、城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷 ';
COMMENT ON COLUMN "public"."operation_maintain_assets"."name" IS '设备名称';
COMMENT ON COLUMN "public"."operation_maintain_assets"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."operation_maintain_assets"."model" IS '规格型号';
COMMENT ON COLUMN "public"."operation_maintain_assets"."purchase_time" IS '购置日期';
COMMENT ON COLUMN "public"."operation_maintain_assets"."producer" IS '生产商';
COMMENT ON COLUMN "public"."operation_maintain_assets"."enable_time" IS '启用日期';
COMMENT ON COLUMN "public"."operation_maintain_assets"."location" IS '设备位置';
COMMENT ON COLUMN "public"."operation_maintain_assets"."assets_state" IS '设备状态 未使用、正常、试运行、故障、维修、报废';
COMMENT ON COLUMN "public"."operation_maintain_assets"."scrap_time" IS '报废日期';
COMMENT ON COLUMN "public"."operation_maintain_assets"."label" IS '标签';
COMMENT ON COLUMN "public"."operation_maintain_assets"."annex" IS '附件';
COMMENT ON COLUMN "public"."operation_maintain_assets"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."operation_maintain_assets"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."operation_maintain_assets"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."operation_maintain_assets"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."operation_maintain_assets"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON TABLE "public"."operation_maintain_assets" IS '运行维护-设备资产管理';

-- ----------------------------
-- Table structure for message_read
-- ----------------------------
DROP TABLE IF EXISTS "public"."message_read";
CREATE TABLE "public"."message_read" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "source_id" varchar(128) COLLATE "pg_catalog"."default",
  "user_id" varchar(64) COLLATE "pg_catalog"."default",
  "source_type" varchar(4) COLLATE "pg_catalog"."default",
  "deleted" int2,
  "create_time" timestamp(6),
  "update_time" timestamp(6),
  "creater_id" varchar(64) COLLATE "pg_catalog"."default",
  "updater_id" varchar(64) COLLATE "pg_catalog"."default",
  "is_read" int2,
  "remark" varchar(255) COLLATE "pg_catalog"."default",
  "source_id2" varchar(255) COLLATE "pg_catalog"."default",
  "name" varchar(1000) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."message_read"."id" IS 'id';
COMMENT ON COLUMN "public"."message_read"."source_id" IS '原表id';
COMMENT ON COLUMN "public"."message_read"."user_id" IS '推送用户id';
COMMENT ON COLUMN "public"."message_read"."source_type" IS '原表映射关系(''1'':warning_info[预警管理表])';
COMMENT ON COLUMN "public"."message_read"."deleted" IS '1不删除0已经删除';
COMMENT ON COLUMN "public"."message_read"."create_time" IS '创建时间';
COMMENT ON COLUMN "public"."message_read"."update_time" IS '修改时间';
COMMENT ON COLUMN "public"."message_read"."creater_id" IS '创建人id';
COMMENT ON COLUMN "public"."message_read"."updater_id" IS '修改人id';
COMMENT ON COLUMN "public"."message_read"."is_read" IS '是否已读1已读,0未读';
COMMENT ON COLUMN "public"."message_read"."remark" IS '备注';
COMMENT ON COLUMN "public"."message_read"."source_id2" IS '原表id2';
COMMENT ON COLUMN "public"."message_read"."name" IS '名称';
COMMENT ON TABLE "public"."message_read" IS '生命线首页_消息通知';

-- ----------------------------
-- Table structure for manager_organization
-- ----------------------------
DROP TABLE IF EXISTS "public"."manager_organization";
CREATE TABLE "public"."manager_organization" (
  "id" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  "item_scene" varchar(50) COLLATE "pg_catalog"."default",
  "organization_type" varchar(50) COLLATE "pg_catalog"."default",
  "organization_name" varchar(255) COLLATE "pg_catalog"."default",
  "organization_duty" varchar(255) COLLATE "pg_catalog"."default",
  "create_user" varchar(100) COLLATE "pg_catalog"."default",
  "create_time" timestamp(6),
  "update_user" varchar(100) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "del_tag" int4 DEFAULT 1
)
;
COMMENT ON COLUMN "public"."manager_organization"."id" IS '主键';
COMMENT ON COLUMN "public"."manager_organization"."item_scene" IS '专项场景（字典）';
COMMENT ON COLUMN "public"."manager_organization"."organization_type" IS '单位类型（字典）';
COMMENT ON COLUMN "public"."manager_organization"."organization_name" IS '单位名称';
COMMENT ON COLUMN "public"."manager_organization"."organization_duty" IS '单位职责';
COMMENT ON COLUMN "public"."manager_organization"."create_user" IS '创建人';
COMMENT ON COLUMN "public"."manager_organization"."create_time" IS '创建时间';
COMMENT ON COLUMN "public"."manager_organization"."update_user" IS '更新人';
COMMENT ON COLUMN "public"."manager_organization"."update_time" IS '更新时间';
COMMENT ON COLUMN "public"."manager_organization"."del_tag" IS '删除标识（0已删、1未删）';
COMMENT ON TABLE "public"."manager_organization" IS '主管运营组织';

-- ----------------------------
-- Table structure for local_dict_jcss
-- ----------------------------
DROP TABLE IF EXISTS "public"."local_dict_jcss";
CREATE TABLE "public"."local_dict_jcss" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "scene" varchar(64) COLLATE "pg_catalog"."default",
  "big_category" varchar(64) COLLATE "pg_catalog"."default",
  "small_category" varchar(64) COLLATE "pg_catalog"."default",
  "code" varchar(64) COLLATE "pg_catalog"."default",
  "type" varchar(64) COLLATE "pg_catalog"."default",
  "description" varchar(64) COLLATE "pg_catalog"."default",
  "sort" int4,
  "bz" varchar(500) COLLATE "pg_catalog"."default",
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON TABLE "public"."local_dict_jcss" IS '业务字典-基础设施';

-- ----------------------------
-- Table structure for local_dict
-- ----------------------------
DROP TABLE IF EXISTS "public"."local_dict";
CREATE TABLE "public"."local_dict" (
  "id" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  "city" varchar(255) COLLATE "pg_catalog"."default",
  "district" varchar(255) COLLATE "pg_catalog"."default",
  "street" varchar(255) COLLATE "pg_catalog"."default",
  "code" varchar(255) COLLATE "pg_catalog"."default",
  "type" varchar(1) COLLATE "pg_catalog"."default",
  "community" varchar(255) COLLATE "pg_catalog"."default",
  "order" int4
)
;
COMMENT ON COLUMN "public"."local_dict"."id" IS 'id';
COMMENT ON COLUMN "public"."local_dict"."city" IS ' 城市名称';
COMMENT ON COLUMN "public"."local_dict"."district" IS '区名称';
COMMENT ON COLUMN "public"."local_dict"."street" IS '街道名称';
COMMENT ON COLUMN "public"."local_dict"."code" IS '行政区划代码';
COMMENT ON COLUMN "public"."local_dict"."type" IS '种类1市,2区,3街道,4社区';
COMMENT ON COLUMN "public"."local_dict"."community" IS '社区名称';
COMMENT ON COLUMN "public"."local_dict"."order" IS '排序';
COMMENT ON TABLE "public"."local_dict" IS '行政区划代码表';

-- ----------------------------
-- Table structure for linkage_coordinate_send
-- ----------------------------
DROP TABLE IF EXISTS "public"."linkage_coordinate_send";
CREATE TABLE "public"."linkage_coordinate_send" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "scene" varchar(16) COLLATE "pg_catalog"."default",
  "coordinate_id" varchar(64) COLLATE "pg_catalog"."default",
  "event_number" varchar(64) COLLATE "pg_catalog"."default",
  "event_sub_number" varchar(64) COLLATE "pg_catalog"."default",
  "handler" varchar(64) COLLATE "pg_catalog"."default",
  "complete_attachments" varchar(600) COLLATE "pg_catalog"."default",
  "disposal_dept" varchar(255) COLLATE "pg_catalog"."default",
  "feedback" varchar(500) COLLATE "pg_catalog"."default",
  "process_time" timestamp(6),
  "state" varchar(16) COLLATE "pg_catalog"."default",
  "yjyabh" varchar(255) COLLATE "pg_catalog"."default",
  "bz" varchar(500) COLLATE "pg_catalog"."default",
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."linkage_coordinate_send"."scene" IS '所属专项';
COMMENT ON COLUMN "public"."linkage_coordinate_send"."coordinate_id" IS '联动协调id';
COMMENT ON COLUMN "public"."linkage_coordinate_send"."event_number" IS '事件编号';
COMMENT ON COLUMN "public"."linkage_coordinate_send"."event_sub_number" IS '关联子事件编号';
COMMENT ON COLUMN "public"."linkage_coordinate_send"."handler" IS '处理人';
COMMENT ON COLUMN "public"."linkage_coordinate_send"."complete_attachments" IS '处理后的图片';
COMMENT ON COLUMN "public"."linkage_coordinate_send"."disposal_dept" IS '处理部门';
COMMENT ON COLUMN "public"."linkage_coordinate_send"."feedback" IS '处理结果说明';
COMMENT ON COLUMN "public"."linkage_coordinate_send"."process_time" IS '处理时间';
COMMENT ON COLUMN "public"."linkage_coordinate_send"."state" IS '当前处理状态';
COMMENT ON COLUMN "public"."linkage_coordinate_send"."yjyabh" IS '关联应急预案编号';
COMMENT ON COLUMN "public"."linkage_coordinate_send"."bz" IS '备注';
COMMENT ON TABLE "public"."linkage_coordinate_send" IS '联动协调下发表';

-- ----------------------------
-- Table structure for linkage_coordinate
-- ----------------------------
DROP TABLE IF EXISTS "public"."linkage_coordinate";
CREATE TABLE "public"."linkage_coordinate" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "event_number" varchar(100) COLLATE "pg_catalog"."default",
  "scene" varchar(16) COLLATE "pg_catalog"."default",
  "event_name" varchar(64) COLLATE "pg_catalog"."default",
  "event_rank" varchar(16) COLLATE "pg_catalog"."default",
  "occur_time" timestamp(6),
  "occur_site" varchar(100) COLLATE "pg_catalog"."default",
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "issue_time" timestamp(6),
  "manage_dept" varchar(300) COLLATE "pg_catalog"."default",
  "manage_dept_id" varchar(300) COLLATE "pg_catalog"."default",
  "coordinate_dept" varchar(300) COLLATE "pg_catalog"."default",
  "coordinate_dept_id" varchar(300) COLLATE "pg_catalog"."default",
  "disposal_progress" varchar(16) COLLATE "pg_catalog"."default",
  "disposal_time" timestamp(6),
  "disposal_complete_time" timestamp(6),
  "geom_data" "public"."geometry",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default",
  "remark" varchar(500) COLLATE "pg_catalog"."default",
  "event_id" varchar(64) COLLATE "pg_catalog"."default",
  "coordinate_source" varchar(64) COLLATE "pg_catalog"."default",
  "sms_phone" varchar(1000) COLLATE "pg_catalog"."default",
  "sms_content" varchar(1000) COLLATE "pg_catalog"."default",
  "attachments" varchar(1000) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."linkage_coordinate"."event_number" IS '事件编号';
COMMENT ON COLUMN "public"."linkage_coordinate"."scene" IS '事件场景';
COMMENT ON COLUMN "public"."linkage_coordinate"."event_name" IS '事件名称';
COMMENT ON COLUMN "public"."linkage_coordinate"."event_rank" IS '事件等级 0一级、1二级、2三级、3四级';
COMMENT ON COLUMN "public"."linkage_coordinate"."occur_time" IS '事件发生时间';
COMMENT ON COLUMN "public"."linkage_coordinate"."occur_site" IS '事件发生地点';
COMMENT ON COLUMN "public"."linkage_coordinate"."area" IS '行政区划';
COMMENT ON COLUMN "public"."linkage_coordinate"."issue_time" IS '联动下发时间';
COMMENT ON COLUMN "public"."linkage_coordinate"."manage_dept" IS '事件主管部门';
COMMENT ON COLUMN "public"."linkage_coordinate"."manage_dept_id" IS '事件主管部门id';
COMMENT ON COLUMN "public"."linkage_coordinate"."coordinate_dept" IS '联动协调部门';
COMMENT ON COLUMN "public"."linkage_coordinate"."coordinate_dept_id" IS '联动协调部门id';
COMMENT ON COLUMN "public"."linkage_coordinate"."disposal_progress" IS '联动协调进度';
COMMENT ON COLUMN "public"."linkage_coordinate"."disposal_time" IS '事件处理时间';
COMMENT ON COLUMN "public"."linkage_coordinate"."disposal_complete_time" IS '联动完成时间';
COMMENT ON COLUMN "public"."linkage_coordinate"."geom_data" IS '空间信息';
COMMENT ON COLUMN "public"."linkage_coordinate"."remark" IS '备注';
COMMENT ON COLUMN "public"."linkage_coordinate"."event_id" IS '事件id';
COMMENT ON TABLE "public"."linkage_coordinate" IS '联动协调表';

-- ----------------------------
-- Table structure for jg_zdgz
-- ----------------------------
DROP TABLE IF EXISTS "public"."jg_zdgz";
CREATE TABLE "public"."jg_zdgz" (
  "id" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "type" varchar(32) COLLATE "pg_catalog"."default",
  "level" varchar(32) COLLATE "pg_catalog"."default",
  "name" varchar(255) COLLATE "pg_catalog"."default",
  "rwjd" varchar(6) COLLATE "pg_catalog"."default",
  "rwxq" text COLLATE "pg_catalog"."default",
  "fj" text COLLATE "pg_catalog"."default",
  "del_flag" int4,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."jg_zdgz"."id" IS '主键';
COMMENT ON COLUMN "public"."jg_zdgz"."type" IS '重点工作类型';
COMMENT ON COLUMN "public"."jg_zdgz"."level" IS '任务级别';
COMMENT ON COLUMN "public"."jg_zdgz"."name" IS '任务名称';
COMMENT ON COLUMN "public"."jg_zdgz"."rwjd" IS '任务进度';
COMMENT ON COLUMN "public"."jg_zdgz"."rwxq" IS '任务详情';
COMMENT ON COLUMN "public"."jg_zdgz"."fj" IS '附件';
COMMENT ON COLUMN "public"."jg_zdgz"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON COLUMN "public"."jg_zdgz"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."jg_zdgz"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."jg_zdgz"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."jg_zdgz"."update_user" IS '数据更新人员';
COMMENT ON TABLE "public"."jg_zdgz" IS '重点工作';

-- ----------------------------
-- Table structure for jg_yqgl
-- ----------------------------
DROP TABLE IF EXISTS "public"."jg_yqgl";
CREATE TABLE "public"."jg_yqgl" (
  "id" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "source" varchar(32) COLLATE "pg_catalog"."default",
  "title" varchar(255) COLLATE "pg_catalog"."default",
  "yqxq" text COLLATE "pg_catalog"."default",
  "fj" text COLLATE "pg_catalog"."default",
  "del_flag" int4,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."jg_yqgl"."id" IS '主键';
COMMENT ON COLUMN "public"."jg_yqgl"."source" IS '舆情来源';
COMMENT ON COLUMN "public"."jg_yqgl"."title" IS '标题';
COMMENT ON COLUMN "public"."jg_yqgl"."yqxq" IS '舆情详情';
COMMENT ON COLUMN "public"."jg_yqgl"."fj" IS '附件';
COMMENT ON COLUMN "public"."jg_yqgl"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON COLUMN "public"."jg_yqgl"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."jg_yqgl"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."jg_yqgl"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."jg_yqgl"."update_user" IS '数据更新人员';
COMMENT ON TABLE "public"."jg_yqgl" IS '热点舆情';

-- ----------------------------
-- Table structure for jg_yhjl_fj
-- ----------------------------
DROP TABLE IF EXISTS "public"."jg_yhjl_fj";
CREATE TABLE "public"."jg_yhjl_fj" (
  "id" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "rel_id" varchar(32) COLLATE "pg_catalog"."default",
  "name" varchar(255) COLLATE "pg_catalog"."default",
  "url" varchar(255) COLLATE "pg_catalog"."default",
  "del_flag" int4,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."jg_yhjl_fj"."id" IS '主键';
COMMENT ON COLUMN "public"."jg_yhjl_fj"."rel_id" IS '养护计划id';
COMMENT ON COLUMN "public"."jg_yhjl_fj"."name" IS '附件名称';
COMMENT ON COLUMN "public"."jg_yhjl_fj"."url" IS '附件地址';
COMMENT ON TABLE "public"."jg_yhjl_fj" IS '养护记录';

-- ----------------------------
-- Table structure for jg_yhjl
-- ----------------------------
DROP TABLE IF EXISTS "public"."jg_yhjl";
CREATE TABLE "public"."jg_yhjl" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "scene" varchar(5) COLLATE "pg_catalog"."default",
  "bsm" varchar(32) COLLATE "pg_catalog"."default",
  "xzqhdm" varchar(16) COLLATE "pg_catalog"."default",
  "yhdx" varchar(255) COLLATE "pg_catalog"."default",
  "yhrq" date,
  "yhnr" varchar(255) COLLATE "pg_catalog"."default",
  "zyry" varchar(32) COLLATE "pg_catalog"."default",
  "fj" text COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "tbsj" date,
  "del_flag" int4,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."jg_yhjl"."id" IS '主键';
COMMENT ON COLUMN "public"."jg_yhjl"."scene" IS '专项场景';
COMMENT ON COLUMN "public"."jg_yhjl"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."jg_yhjl"."xzqhdm" IS '行政区划';
COMMENT ON COLUMN "public"."jg_yhjl"."yhdx" IS '养护对象';
COMMENT ON COLUMN "public"."jg_yhjl"."yhrq" IS '养护日期';
COMMENT ON COLUMN "public"."jg_yhjl"."yhnr" IS '养护内容';
COMMENT ON COLUMN "public"."jg_yhjl"."zyry" IS '作业人员';
COMMENT ON COLUMN "public"."jg_yhjl"."fj" IS '附件';
COMMENT ON COLUMN "public"."jg_yhjl"."bz" IS '备注';
COMMENT ON COLUMN "public"."jg_yhjl"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."jg_yhjl"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON COLUMN "public"."jg_yhjl"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."jg_yhjl"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."jg_yhjl"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."jg_yhjl"."update_user" IS '数据更新人员';
COMMENT ON TABLE "public"."jg_yhjl" IS '养护记录';

-- ----------------------------
-- Table structure for jcss_txss
-- ----------------------------
DROP TABLE IF EXISTS "public"."jcss_txss";
CREATE TABLE "public"."jcss_txss" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "jcss_id" varchar(64) COLLATE "pg_catalog"."default",
  "txssbm" varchar(64) COLLATE "pg_catalog"."default",
  "lb" varchar(64) COLLATE "pg_catalog"."default",
  "qsdw" varchar(64) COLLATE "pg_catalog"."default",
  "sspsxt" varchar(64) COLLATE "pg_catalog"."default",
  "zgsw" numeric(10,2),
  "zdsw" numeric(10,2),
  "txssrj" numeric(10,2),
  "txsslx" varchar(64) COLLATE "pg_catalog"."default",
  "txsscz" varchar(64) COLLATE "pg_catalog"."default",
  "remark" varchar(500) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."jcss_txss"."jcss_id" IS '基础设施id';
COMMENT ON COLUMN "public"."jcss_txss"."txssbm" IS '调蓄设施编码';
COMMENT ON COLUMN "public"."jcss_txss"."lb" IS '类别';
COMMENT ON COLUMN "public"."jcss_txss"."qsdw" IS '权属单位';
COMMENT ON COLUMN "public"."jcss_txss"."sspsxt" IS '所属排水系统';
COMMENT ON COLUMN "public"."jcss_txss"."zgsw" IS '最高水位';
COMMENT ON COLUMN "public"."jcss_txss"."zdsw" IS '最低水位';
COMMENT ON COLUMN "public"."jcss_txss"."txssrj" IS '调蓄设施容积';
COMMENT ON COLUMN "public"."jcss_txss"."txsslx" IS '调蓄设施类型';
COMMENT ON COLUMN "public"."jcss_txss"."txsscz" IS '调蓄设施材质';
COMMENT ON COLUMN "public"."jcss_txss"."remark" IS '备注';
COMMENT ON TABLE "public"."jcss_txss" IS '调蓄设施';

-- ----------------------------
-- Table structure for jcss_rqgx
-- ----------------------------
DROP TABLE IF EXISTS "public"."jcss_rqgx";
CREATE TABLE "public"."jcss_rqgx" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "jcss_id" varchar(64) COLLATE "pg_catalog"."default",
  "qddh" varchar(64) COLLATE "pg_catalog"."default",
  "zddh" varchar(64) COLLATE "pg_catalog"."default",
  "qdgc" numeric(10,2),
  "zdgc" numeric(10,2),
  "qdms" numeric(10,2),
  "zdms" numeric(10,2),
  "mslx" varchar(64) COLLATE "pg_catalog"."default",
  "cz" varchar(64) COLLATE "pg_catalog"."default",
  "gj" varchar(32) COLLATE "pg_catalog"."default",
  "yl" varchar(32) COLLATE "pg_catalog"."default",
  "szdl" varchar(64) COLLATE "pg_catalog"."default",
  "qsdw" varchar(100) COLLATE "pg_catalog"."default",
  "gdjb" varchar(64) COLLATE "pg_catalog"."default",
  "dqjz" varchar(64) COLLATE "pg_catalog"."default",
  "bhcz" varchar(16) COLLATE "pg_catalog"."default",
  "sjyl" varchar(32) COLLATE "pg_catalog"."default",
  "fxdj" varchar(64) COLLATE "pg_catalog"."default",
  "yxyl" varchar(32) COLLATE "pg_catalog"."default",
  "tqrq" timestamp(6),
  "jsdw" varchar(100) COLLATE "pg_catalog"."default",
  "sccj" varchar(100) COLLATE "pg_catalog"."default",
  "ffxs" varchar(64) COLLATE "pg_catalog"."default",
  "fsqk" varchar(64) COLLATE "pg_catalog"."default",
  "jkfs" varchar(64) COLLATE "pg_catalog"."default",
  "lmxz" varchar(64) COLLATE "pg_catalog"."default",
  "zjgzsj" timestamp(6),
  "remark" varchar(500) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."jcss_rqgx"."jcss_id" IS '基础设施id';
COMMENT ON COLUMN "public"."jcss_rqgx"."qddh" IS '起点点号';
COMMENT ON COLUMN "public"."jcss_rqgx"."zddh" IS '终点点号';
COMMENT ON COLUMN "public"."jcss_rqgx"."qdgc" IS '起点高程';
COMMENT ON COLUMN "public"."jcss_rqgx"."zdgc" IS '终点高程';
COMMENT ON COLUMN "public"."jcss_rqgx"."qdms" IS '起点埋深';
COMMENT ON COLUMN "public"."jcss_rqgx"."zdms" IS '终点埋深';
COMMENT ON COLUMN "public"."jcss_rqgx"."mslx" IS '埋设类型 0直埋、1矩形管沟、2拱形管沟、3管块、4管埋、5架空、6井内连线、7顶管';
COMMENT ON COLUMN "public"."jcss_rqgx"."cz" IS '材质';
COMMENT ON COLUMN "public"."jcss_rqgx"."gj" IS '管径';
COMMENT ON COLUMN "public"."jcss_rqgx"."yl" IS '压力';
COMMENT ON COLUMN "public"."jcss_rqgx"."szdl" IS '所在道路';
COMMENT ON COLUMN "public"."jcss_rqgx"."qsdw" IS '权属单位';
COMMENT ON COLUMN "public"."jcss_rqgx"."gdjb" IS '管道级别 0高压A、1高压B、2次高压A、3次高压 、4中压A、5中压B、6低压';
COMMENT ON COLUMN "public"."jcss_rqgx"."dqjz" IS '当前介质';
COMMENT ON COLUMN "public"."jcss_rqgx"."bhcz" IS '保护材质';
COMMENT ON COLUMN "public"."jcss_rqgx"."sjyl" IS '设计压力';
COMMENT ON COLUMN "public"."jcss_rqgx"."fxdj" IS '风险等级';
COMMENT ON COLUMN "public"."jcss_rqgx"."yxyl" IS '运行压力';
COMMENT ON COLUMN "public"."jcss_rqgx"."tqrq" IS '通气日期';
COMMENT ON COLUMN "public"."jcss_rqgx"."jsdw" IS '建设单位';
COMMENT ON COLUMN "public"."jcss_rqgx"."sccj" IS '生产厂家';
COMMENT ON COLUMN "public"."jcss_rqgx"."ffxs" IS '防腐形式';
COMMENT ON COLUMN "public"."jcss_rqgx"."fsqk" IS '腐蚀情况';
COMMENT ON COLUMN "public"."jcss_rqgx"."jkfs" IS '接口方式';
COMMENT ON COLUMN "public"."jcss_rqgx"."lmxz" IS '路面性质 0水泥、1柏油、2土路、3弹石、4绿化地、5人行道板、6农田';
COMMENT ON COLUMN "public"."jcss_rqgx"."zjgzsj" IS '最近改造时间';
COMMENT ON COLUMN "public"."jcss_rqgx"."remark" IS '备注';
COMMENT ON TABLE "public"."jcss_rqgx" IS '燃气管线';

-- ----------------------------
-- Table structure for jcss_rqgd
-- ----------------------------
DROP TABLE IF EXISTS "public"."jcss_rqgd";
CREATE TABLE "public"."jcss_rqgd" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "jcss_id" varchar(64) COLLATE "pg_catalog"."default",
  "dmgc" numeric(10,3),
  "fsw" varchar(64) COLLATE "pg_catalog"."default",
  "szdl" varchar(64) COLLATE "pg_catalog"."default",
  "jsdm" varchar(64) COLLATE "pg_catalog"."default",
  "xzj" numeric(10,3),
  "js" numeric(10,2),
  "jgxz" varchar(64) COLLATE "pg_catalog"."default",
  "jgcz" varchar(64) COLLATE "pg_catalog"."default",
  "jgzj" numeric(10,2),
  "jgc" numeric(10,2),
  "jgk" numeric(10,2),
  "jxjcz" varchar(64) COLLATE "pg_catalog"."default",
  "jbs" numeric(10,2),
  "jszj" numeric(10,2),
  "qsdw" varchar(100) COLLATE "pg_catalog"."default",
  "remark" varchar(500) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."jcss_rqgd"."jcss_id" IS '基础设施id';
COMMENT ON COLUMN "public"."jcss_rqgd"."dmgc" IS '地面高程';
COMMENT ON COLUMN "public"."jcss_rqgd"."fsw" IS '附属物';
COMMENT ON COLUMN "public"."jcss_rqgd"."szdl" IS '所在道路';
COMMENT ON COLUMN "public"."jcss_rqgd"."jsdm" IS '井室代码';
COMMENT ON COLUMN "public"."jcss_rqgd"."xzj" IS '旋转角';
COMMENT ON COLUMN "public"."jcss_rqgd"."js" IS '井深';
COMMENT ON COLUMN "public"."jcss_rqgd"."jgxz" IS '井盖形状 0圆形、1矩形';
COMMENT ON COLUMN "public"."jcss_rqgd"."jgcz" IS '井盖材质';
COMMENT ON COLUMN "public"."jcss_rqgd"."jgzj" IS '井盖直径';
COMMENT ON COLUMN "public"."jcss_rqgd"."jgc" IS '井盖长';
COMMENT ON COLUMN "public"."jcss_rqgd"."jgk" IS '井盖宽';
COMMENT ON COLUMN "public"."jcss_rqgd"."jxjcz" IS '检修井材质 0水泥、1砖';
COMMENT ON COLUMN "public"."jcss_rqgd"."jbs" IS '井脖深';
COMMENT ON COLUMN "public"."jcss_rqgd"."jszj" IS '井室直径';
COMMENT ON COLUMN "public"."jcss_rqgd"."qsdw" IS '权属单位';
COMMENT ON COLUMN "public"."jcss_rqgd"."remark" IS '备注';
COMMENT ON TABLE "public"."jcss_rqgd" IS '燃气管点';

-- ----------------------------
-- Table structure for jcss_rqcz
-- ----------------------------
DROP TABLE IF EXISTS "public"."jcss_rqcz";
CREATE TABLE "public"."jcss_rqcz" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "jcss_id" varchar(64) COLLATE "pg_catalog"."default",
  "czlx" varchar(16) COLLATE "pg_catalog"."default",
  "cqnl" varchar(50) COLLATE "pg_catalog"."default",
  "sjcql" varchar(50) COLLATE "pg_catalog"."default",
  "gznl" varchar(50) COLLATE "pg_catalog"."default",
  "ngql" numeric(10,2),
  "xsgynl" numeric(10,2),
  "zps" numeric(10,2),
  "yl" numeric(10,2),
  "ll" numeric(10,2),
  "yw" numeric(10,2),
  "wd" numeric(10,2),
  "jgrq" timestamp(6),
  "remark" varchar(500) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."jcss_rqcz"."jcss_id" IS '基础设施id';
COMMENT ON COLUMN "public"."jcss_rqcz"."czlx" IS '场站类型 0-气化站、1-门站、2-储配站、3-加气站、4-调压站、5-瓶装供应站、6-LNG站';
COMMENT ON COLUMN "public"."jcss_rqcz"."cqnl" IS '储气能力 单位：万立方米';
COMMENT ON COLUMN "public"."jcss_rqcz"."sjcql" IS '实际储气量 单位：万立方米';
COMMENT ON COLUMN "public"."jcss_rqcz"."gznl" IS '灌装能力 单位：万立方米';
COMMENT ON COLUMN "public"."jcss_rqcz"."ngql" IS '年供气量 单位：万立方米';
COMMENT ON COLUMN "public"."jcss_rqcz"."xsgynl" IS '小时供应能力 单位：万立方米；场站类型为门站、调压站、气化站、加气站时填写';
COMMENT ON COLUMN "public"."jcss_rqcz"."zps" IS '(作废)重瓶数';
COMMENT ON COLUMN "public"."jcss_rqcz"."yl" IS '(作废)压力 单位：Mpa 当场站类型为气化站、门站、储配站、加气站、调压站时填写，取场站整体运行数据';
COMMENT ON COLUMN "public"."jcss_rqcz"."ll" IS '(作废)流量 单位：m³/h 当场站类型为门站、调压站时填写，取场站整体运行数据';
COMMENT ON COLUMN "public"."jcss_rqcz"."yw" IS '(作废)液位 单位：mm 当场站类型为储配站、LNG站时填写，取场站整体运行数据';
COMMENT ON COLUMN "public"."jcss_rqcz"."wd" IS '(作废)温度 单位：℃ 当场站类型为气化站、门站、储配站、加气站、调压站时填写，取场站整体运行数据';
COMMENT ON COLUMN "public"."jcss_rqcz"."jgrq" IS '竣工日期';
COMMENT ON COLUMN "public"."jcss_rqcz"."remark" IS '备注';
COMMENT ON TABLE "public"."jcss_rqcz" IS '燃气场站';

-- ----------------------------
-- Table structure for jcss_pspk
-- ----------------------------
DROP TABLE IF EXISTS "public"."jcss_pspk";
CREATE TABLE "public"."jcss_pspk" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "jcss_id" varchar(64) COLLATE "pg_catalog"."default",
  "lb" varchar(64) COLLATE "pg_catalog"."default",
  "dbgc" numeric(10,2),
  "dbugc" numeric(10,2),
  "pkcc" varchar(64) COLLATE "pg_catalog"."default",
  "sfypm" varchar(64) COLLATE "pg_catalog"."default",
  "clxs" varchar(64) COLLATE "pg_catalog"."default",
  "hdcsw" numeric(10,2),
  "pkzp" varchar(500) COLLATE "pg_catalog"."default",
  "remark" varchar(500) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."jcss_pspk"."jcss_id" IS '基础设施id';
COMMENT ON COLUMN "public"."jcss_pspk"."lb" IS '类别 0雨水、1污水、2合流';
COMMENT ON COLUMN "public"."jcss_pspk"."dbgc" IS '地表高程';
COMMENT ON COLUMN "public"."jcss_pspk"."dbugc" IS '顶部高程';
COMMENT ON COLUMN "public"."jcss_pspk"."pkcc" IS '排口尺寸';
COMMENT ON COLUMN "public"."jcss_pspk"."sfypm" IS '是否有拍门 0是、2否';
COMMENT ON COLUMN "public"."jcss_pspk"."clxs" IS '出流形式 0自由出流、1常水位淹没、2潮汐影响';
COMMENT ON COLUMN "public"."jcss_pspk"."hdcsw" IS '河道常水位';
COMMENT ON COLUMN "public"."jcss_pspk"."pkzp" IS '排口照片';
COMMENT ON COLUMN "public"."jcss_pspk"."remark" IS '备注';
COMMENT ON TABLE "public"."jcss_pspk" IS '排水排口';

-- ----------------------------
-- Table structure for jcss_psgx
-- ----------------------------
DROP TABLE IF EXISTS "public"."jcss_psgx";
CREATE TABLE "public"."jcss_psgx" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "jcss_id" varchar(64) COLLATE "pg_catalog"."default",
  "qddh" varchar(64) COLLATE "pg_catalog"."default",
  "zddh" varchar(64) COLLATE "pg_catalog"."default",
  "qdgc" numeric(10,2),
  "zdgc" numeric(10,2),
  "qdms" numeric(10,2),
  "zdms" numeric(10,2),
  "mslx" varchar(64) COLLATE "pg_catalog"."default",
  "cz" varchar(64) COLLATE "pg_catalog"."default",
  "gj" varchar(32) COLLATE "pg_catalog"."default",
  "yl" varchar(32) COLLATE "pg_catalog"."default",
  "szdl" varchar(64) COLLATE "pg_catalog"."default",
  "qsdw" varchar(100) COLLATE "pg_catalog"."default",
  "lb" varchar(64) COLLATE "pg_catalog"."default",
  "gdjb" varchar(64) COLLATE "pg_catalog"."default",
  "lx" varchar(64) COLLATE "pg_catalog"."default",
  "sfyl" varchar(64) COLLATE "pg_catalog"."default",
  "gdyc" varchar(64) COLLATE "pg_catalog"."default",
  "remark" varchar(500) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."jcss_psgx"."jcss_id" IS '基础设施id';
COMMENT ON COLUMN "public"."jcss_psgx"."qddh" IS '起点点号';
COMMENT ON COLUMN "public"."jcss_psgx"."zddh" IS '终点点号';
COMMENT ON COLUMN "public"."jcss_psgx"."qdgc" IS '起点高程';
COMMENT ON COLUMN "public"."jcss_psgx"."zdgc" IS '终点高程';
COMMENT ON COLUMN "public"."jcss_psgx"."qdms" IS '起点埋深';
COMMENT ON COLUMN "public"."jcss_psgx"."zdms" IS '终点埋深';
COMMENT ON COLUMN "public"."jcss_psgx"."mslx" IS '埋设类型 0直埋、1矩形管沟、2拱形管沟、3管块、4管埋、5架空、6井内连线、7顶管';
COMMENT ON COLUMN "public"."jcss_psgx"."cz" IS '材质';
COMMENT ON COLUMN "public"."jcss_psgx"."gj" IS '管径';
COMMENT ON COLUMN "public"."jcss_psgx"."yl" IS '压力';
COMMENT ON COLUMN "public"."jcss_psgx"."szdl" IS '所在道路';
COMMENT ON COLUMN "public"."jcss_psgx"."qsdw" IS '权属单位';
COMMENT ON COLUMN "public"."jcss_psgx"."lb" IS '类別 0雨水、1污水、2合流';
COMMENT ON COLUMN "public"."jcss_psgx"."gdjb" IS '管道级别 0主干管、1次干管、2支管';
COMMENT ON COLUMN "public"."jcss_psgx"."lx" IS '流向 0起点到终点、1终点到起点';
COMMENT ON COLUMN "public"."jcss_psgx"."sfyl" IS '是否有压 0是、1否';
COMMENT ON COLUMN "public"."jcss_psgx"."gdyc" IS '管道异常';
COMMENT ON COLUMN "public"."jcss_psgx"."remark" IS '备注';
COMMENT ON TABLE "public"."jcss_psgx" IS '排水管线';

-- ----------------------------
-- Table structure for jcss_psgd
-- ----------------------------
DROP TABLE IF EXISTS "public"."jcss_psgd";
CREATE TABLE "public"."jcss_psgd" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "jcss_id" varchar(64) COLLATE "pg_catalog"."default",
  "dmgc" numeric(10,3),
  "fsw" varchar(64) COLLATE "pg_catalog"."default",
  "szdl" varchar(64) COLLATE "pg_catalog"."default",
  "jsdm" varchar(64) COLLATE "pg_catalog"."default",
  "xzj" numeric(10,3),
  "js" numeric(10,2),
  "jgxz" varchar(64) COLLATE "pg_catalog"."default",
  "jgcz" varchar(64) COLLATE "pg_catalog"."default",
  "jgzj" numeric(10,2),
  "jgc" numeric(10,2),
  "jgk" numeric(10,2),
  "jxjcz" varchar(64) COLLATE "pg_catalog"."default",
  "jbs" numeric(10,2),
  "jszj" numeric(10,2),
  "qsdw" varchar(100) COLLATE "pg_catalog"."default",
  "remark" varchar(500) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."jcss_psgd"."jcss_id" IS '基础设施id';
COMMENT ON COLUMN "public"."jcss_psgd"."dmgc" IS '地面高程';
COMMENT ON COLUMN "public"."jcss_psgd"."fsw" IS '附属物';
COMMENT ON COLUMN "public"."jcss_psgd"."szdl" IS '所在道路';
COMMENT ON COLUMN "public"."jcss_psgd"."jsdm" IS '井室代码';
COMMENT ON COLUMN "public"."jcss_psgd"."xzj" IS '旋转角';
COMMENT ON COLUMN "public"."jcss_psgd"."js" IS '井深';
COMMENT ON COLUMN "public"."jcss_psgd"."jgxz" IS '井盖形状 0圆形、1矩形';
COMMENT ON COLUMN "public"."jcss_psgd"."jgcz" IS '井盖材质';
COMMENT ON COLUMN "public"."jcss_psgd"."jgzj" IS '井盖直径';
COMMENT ON COLUMN "public"."jcss_psgd"."jgc" IS '井盖长';
COMMENT ON COLUMN "public"."jcss_psgd"."jgk" IS '井盖宽';
COMMENT ON COLUMN "public"."jcss_psgd"."jxjcz" IS '检修井材质 0水泥、1砖';
COMMENT ON COLUMN "public"."jcss_psgd"."jbs" IS '井脖深';
COMMENT ON COLUMN "public"."jcss_psgd"."jszj" IS '井室直径';
COMMENT ON COLUMN "public"."jcss_psgd"."qsdw" IS '权属单位';
COMMENT ON COLUMN "public"."jcss_psgd"."remark" IS '备注';
COMMENT ON TABLE "public"."jcss_psgd" IS '排水管点';

-- ----------------------------
-- Table structure for jcss_pscz
-- ----------------------------
DROP TABLE IF EXISTS "public"."jcss_pscz";
CREATE TABLE "public"."jcss_pscz" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "jcss_id" varchar(64) COLLATE "pg_catalog"."default",
  "czlx" varchar(64) COLLATE "pg_catalog"."default",
  "jgrq" timestamp(6),
  "wscljb" varchar(64) COLLATE "pg_catalog"."default",
  "nhdl" numeric(10,2),
  "wsclsjgm" numeric(10,2),
  "wsyxfhl" numeric(10,2),
  "ysclsjgm" numeric(10,2),
  "wnclsjgm" numeric(10,2),
  "wnyxfhl" numeric(10,2),
  "wnczfs" varchar(64) COLLATE "pg_catalog"."default",
  "wnczdw" varchar(100) COLLATE "pg_catalog"."default",
  "bzsbts" int4,
  "bzzgl" numeric(10,2),
  "bzzll" numeric(10,2),
  "bzzp" varchar(500) COLLATE "pg_catalog"."default",
  "remark" varchar(500) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."jcss_pscz"."jcss_id" IS '基础设施id';
COMMENT ON COLUMN "public"."jcss_pscz"."czlx" IS '厂站类型 0污水处理厂、1雨水泵站、2污水泵站';
COMMENT ON COLUMN "public"."jcss_pscz"."jgrq" IS '竣工日期';
COMMENT ON COLUMN "public"."jcss_pscz"."wscljb" IS '污水处理级别 0一级、1二级、2三级';
COMMENT ON COLUMN "public"."jcss_pscz"."nhdl" IS '年耗电量';
COMMENT ON COLUMN "public"."jcss_pscz"."wsclsjgm" IS '污水处理设计规模';
COMMENT ON COLUMN "public"."jcss_pscz"."wsyxfhl" IS '污水运行负荷率';
COMMENT ON COLUMN "public"."jcss_pscz"."ysclsjgm" IS '雨水处理设计规模';
COMMENT ON COLUMN "public"."jcss_pscz"."wnclsjgm" IS '污泥处理设计规模';
COMMENT ON COLUMN "public"."jcss_pscz"."wnyxfhl" IS '污泥运行负荷率';
COMMENT ON COLUMN "public"."jcss_pscz"."wnczfs" IS '污泥处置方式 0填埋、1焚烧、2土地利用、3建材利用、4堆肥、5其它';
COMMENT ON COLUMN "public"."jcss_pscz"."wnczdw" IS '污泥处置单位';
COMMENT ON COLUMN "public"."jcss_pscz"."bzsbts" IS '泵站水泵台数';
COMMENT ON COLUMN "public"."jcss_pscz"."bzzgl" IS '泵站总功率';
COMMENT ON COLUMN "public"."jcss_pscz"."bzzll" IS '泵站总流量';
COMMENT ON COLUMN "public"."jcss_pscz"."bzzp" IS '泵站照片';
COMMENT ON COLUMN "public"."jcss_pscz"."remark" IS '备注';
COMMENT ON TABLE "public"."jcss_pscz" IS '排水场站';

-- ----------------------------
-- Table structure for jcss_jlss
-- ----------------------------
DROP TABLE IF EXISTS "public"."jcss_jlss";
CREATE TABLE "public"."jcss_jlss" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "jcss_id" varchar(64) COLLATE "pg_catalog"."default",
  "sspsxt" varchar(64) COLLATE "pg_catalog"."default",
  "jlsslx" varchar(64) COLLATE "pg_catalog"."default",
  "jlssljgqbm" varchar(64) COLLATE "pg_catalog"."default",
  "jlnbssbm" varchar(64) COLLATE "pg_catalog"."default",
  "jll" numeric(6,2),
  "jlqx" int4,
  "bz" varchar(500) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."jcss_jlss"."jcss_id" IS '基础设施id';
COMMENT ON COLUMN "public"."jcss_jlss"."sspsxt" IS '所属排水系统';
COMMENT ON COLUMN "public"."jcss_jlss"."jlsslx" IS '截流设施类型 1-闸，2-泵，3-堰，4-阀，5-其他';
COMMENT ON COLUMN "public"."jcss_jlss"."jlssljgqbm" IS '截流设施连接管渠编码';
COMMENT ON COLUMN "public"."jcss_jlss"."jlnbssbm" IS '截流内部设施编码';
COMMENT ON COLUMN "public"."jcss_jlss"."jll" IS '截流量';
COMMENT ON COLUMN "public"."jcss_jlss"."jlqx" IS '截流曲线';
COMMENT ON COLUMN "public"."jcss_jlss"."bz" IS '备注';
COMMENT ON TABLE "public"."jcss_jlss" IS '截流设施';

-- ----------------------------
-- Table structure for jcss_gscz
-- ----------------------------
DROP TABLE IF EXISTS "public"."jcss_gscz";
CREATE TABLE "public"."jcss_gscz" (
  "id" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
  "jcss_id" varchar(64) COLLATE "pg_catalog"."default",
  "czlx" varchar(64) COLLATE "pg_catalog"."default",
  "symc" varchar(64) COLLATE "pg_catalog"."default",
  "sylx" varchar(64) COLLATE "pg_catalog"."default",
  "qsgm" numeric(10,2),
  "yjsymc" varchar(64) COLLATE "pg_catalog"."default",
  "yjsylx" varchar(64) COLLATE "pg_catalog"."default",
  "yjqsgm" numeric(10,2),
  "yjqsts" numeric(10,2),
  "gsgm" numeric(10,2),
  "gsrk" numeric(10,2),
  "gsqy" varchar(250) COLLATE "pg_catalog"."default",
  "clgy" varchar(64) COLLATE "pg_catalog"."default",
  "tcrq" timestamp(6),
  "zyzlx" varchar(500) COLLATE "pg_catalog"."default",
  "jgrq" timestamp(6),
  "remark" varchar(500) COLLATE "pg_catalog"."default",
  "defined" int4,
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."jcss_gscz"."jcss_id" IS '基础设施id';
COMMENT ON COLUMN "public"."jcss_gscz"."czlx" IS '厂站类型 0原水厂、1自来水厂、2增压站、3二次供水泵房';
COMMENT ON COLUMN "public"."jcss_gscz"."symc" IS '水源名称';
COMMENT ON COLUMN "public"."jcss_gscz"."sylx" IS '水源类型 0地表水、1地下水';
COMMENT ON COLUMN "public"."jcss_gscz"."qsgm" IS '取水规模';
COMMENT ON COLUMN "public"."jcss_gscz"."yjsymc" IS '应急水源名称';
COMMENT ON COLUMN "public"."jcss_gscz"."yjsylx" IS '应急水源类型 0地表水、1地下水';
COMMENT ON COLUMN "public"."jcss_gscz"."yjqsgm" IS '应急取水规模';
COMMENT ON COLUMN "public"."jcss_gscz"."yjqsts" IS '应急取水天数';
COMMENT ON COLUMN "public"."jcss_gscz"."gsgm" IS '供水规模';
COMMENT ON COLUMN "public"."jcss_gscz"."gsrk" IS '供水人口';
COMMENT ON COLUMN "public"."jcss_gscz"."gsqy" IS '供水区域';
COMMENT ON COLUMN "public"."jcss_gscz"."clgy" IS '处理工艺';
COMMENT ON COLUMN "public"."jcss_gscz"."tcrq" IS '投产日期';
COMMENT ON COLUMN "public"."jcss_gscz"."zyzlx" IS '增压站类型';
COMMENT ON COLUMN "public"."jcss_gscz"."jgrq" IS '竣工日期';
COMMENT ON COLUMN "public"."jcss_gscz"."remark" IS '备注';
COMMENT ON TABLE "public"."jcss_gscz" IS '供水厂站';

-- ----------------------------
-- Table structure for industry_supervision_supervise_process
-- ----------------------------
DROP TABLE IF EXISTS "public"."industry_supervision_supervise_process";
CREATE TABLE "public"."industry_supervision_supervise_process" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "supervise_id" varchar(50) COLLATE "pg_catalog"."default",
  "result" varchar(50) COLLATE "pg_catalog"."default",
  "remark" varchar(2000) COLLATE "pg_catalog"."default",
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default",
  "del_flag" int4
)
;
COMMENT ON COLUMN "public"."industry_supervision_supervise_process"."id" IS '主键ID';
COMMENT ON COLUMN "public"."industry_supervision_supervise_process"."supervise_id" IS '督办ID';
COMMENT ON COLUMN "public"."industry_supervision_supervise_process"."result" IS '督办结果';
COMMENT ON COLUMN "public"."industry_supervision_supervise_process"."remark" IS '备注';
COMMENT ON COLUMN "public"."industry_supervision_supervise_process"."created_at" IS '数据创建日期';
COMMENT ON COLUMN "public"."industry_supervision_supervise_process"."created_by" IS '数据创建人员';
COMMENT ON COLUMN "public"."industry_supervision_supervise_process"."updated_at" IS '数据更新日志';
COMMENT ON COLUMN "public"."industry_supervision_supervise_process"."updated_by" IS '数据更新人员';
COMMENT ON COLUMN "public"."industry_supervision_supervise_process"."del_flag" IS '逻辑删除状态 无效：0 有效：1';

-- ----------------------------
-- Table structure for industry_supervision_supervise
-- ----------------------------
DROP TABLE IF EXISTS "public"."industry_supervision_supervise";
CREATE TABLE "public"."industry_supervision_supervise" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "content" text COLLATE "pg_catalog"."default",
  "level" varchar(50) COLLATE "pg_catalog"."default",
  "unit" varchar(500) COLLATE "pg_catalog"."default",
  "process_status" varchar(50) COLLATE "pg_catalog"."default",
  "plan_time" timestamp(6),
  "start_time" timestamp(6),
  "end_time" timestamp(6),
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "label" varchar(500) COLLATE "pg_catalog"."default",
  "annex" varchar(500) COLLATE "pg_catalog"."default",
  "release_time" timestamp(6),
  "state" varchar(50) COLLATE "pg_catalog"."default",
  "order_num" int8,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1,
  "supervise_rank" varchar(50) COLLATE "pg_catalog"."default",
  "supervise_area" varchar(50) COLLATE "pg_catalog"."default",
  "type" varchar(50) COLLATE "pg_catalog"."default",
  "area" varchar(50) COLLATE "pg_catalog"."default",
  "duty_unit" varchar(500) COLLATE "pg_catalog"."default",
  "result" varchar(50) COLLATE "pg_catalog"."default",
  "rel_id" varchar(50) COLLATE "pg_catalog"."default",
  "sms_phone" varchar(1000) COLLATE "pg_catalog"."default",
  "sms_content" varchar(1000) COLLATE "pg_catalog"."default",
  "event_type" varchar(16) COLLATE "pg_catalog"."default",
  "content_text" varchar(2000) COLLATE "pg_catalog"."default",
  "level_pro" varchar(16) COLLATE "pg_catalog"."default",
  "du_cha_ban_person" varchar(255) COLLATE "pg_catalog"."default",
  "du_cha_banphone" varchar(255) COLLATE "pg_catalog"."default",
  "from_source" varchar(255) COLLATE "pg_catalog"."default",
  "handle_way" varchar(255) COLLATE "pg_catalog"."default",
  "do_person" varchar(255) COLLATE "pg_catalog"."default",
  "do_person_phone" varchar(255) COLLATE "pg_catalog"."default",
  "do_org" varchar(255) COLLATE "pg_catalog"."default",
  "business_specialty" varchar(255) COLLATE "pg_catalog"."default",
  "handle_time" timestamp(0),
  "handle_result" varchar(2000) COLLATE "pg_catalog"."default",
  "originalid" varchar(255) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."industry_supervision_supervise"."id" IS '主键';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."content" IS '督办事项';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."level" IS '督办层级 省级督办、市级督办';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."unit" IS '签发单位';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."process_status" IS '事项状态/督办状态(00-未处理，1-签收待处理，2-完成处理，11-签收处理中)';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."plan_time" IS '要求完成时限';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."start_time" IS '任务下达时间';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."end_time" IS '任务完成时间';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."scene" IS '业务专项  燃气爆炸、城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷 ';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."label" IS '标签';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."annex" IS '附件';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."release_time" IS '发布时间';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."state" IS '发布状态 未发布:0  已发布:1';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."order_num" IS '排序';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."supervise_rank" IS '等级（重大、较大、一般）';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."supervise_area" IS '所属区域';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."type" IS '督办类型';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."area" IS '行政区划';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."duty_unit" IS '责任单位';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."result" IS '督办结果(不用了0">确认,1">打回)';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."rel_id" IS '关联id';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."event_type" IS '事件类型';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."content_text" IS '督查督办内容';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."level_pro" IS '督查督办级别';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."du_cha_ban_person" IS '联系人';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."du_cha_banphone" IS '联系电话';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."from_source" IS '来源';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."handle_way" IS '处理方式';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."do_person" IS '承办联系人';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."do_person_phone" IS '承办联系电话';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."do_org" IS '承办单位';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."business_specialty" IS '业务专项名称';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."handle_time" IS '处置时间';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."handle_result" IS '处置结果';
COMMENT ON COLUMN "public"."industry_supervision_supervise"."originalid" IS '源id(zdcqdb_fs_wx表)';
COMMENT ON TABLE "public"."industry_supervision_supervise" IS '行业监督-事项督办';

-- ----------------------------
-- Table structure for industry_supervision_scheme_resource
-- ----------------------------
DROP TABLE IF EXISTS "public"."industry_supervision_scheme_resource";
CREATE TABLE "public"."industry_supervision_scheme_resource" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "supervision_scheme_id" varchar(64) COLLATE "pg_catalog"."default",
  "resource_type" varchar(64) COLLATE "pg_catalog"."default",
  "resource_id" varchar(500) COLLATE "pg_catalog"."default",
  "resource_name" varchar(500) COLLATE "pg_catalog"."default",
  "bz" varchar(500) COLLATE "pg_catalog"."default",
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."industry_supervision_scheme_resource"."supervision_scheme_id" IS '应急预案id';
COMMENT ON COLUMN "public"."industry_supervision_scheme_resource"."resource_type" IS '资源类型';
COMMENT ON COLUMN "public"."industry_supervision_scheme_resource"."resource_id" IS '资源id';
COMMENT ON COLUMN "public"."industry_supervision_scheme_resource"."resource_name" IS '资源名称';
COMMENT ON COLUMN "public"."industry_supervision_scheme_resource"."bz" IS '备注';
COMMENT ON TABLE "public"."industry_supervision_scheme_resource" IS '应急预案资源保障';

-- ----------------------------
-- Table structure for industry_supervision_scheme_node
-- ----------------------------
DROP TABLE IF EXISTS "public"."industry_supervision_scheme_node";
CREATE TABLE "public"."industry_supervision_scheme_node" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "supervision_scheme_id" varchar(64) COLLATE "pg_catalog"."default",
  "dept_name" varchar(500) COLLATE "pg_catalog"."default",
  "dept_id" varchar(500) COLLATE "pg_catalog"."default",
  "ya_node_name" varchar(64) COLLATE "pg_catalog"."default",
  "bz" varchar(500) COLLATE "pg_catalog"."default",
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default",
  "disposal_time" int4
)
;
COMMENT ON COLUMN "public"."industry_supervision_scheme_node"."supervision_scheme_id" IS '应急预案id';
COMMENT ON COLUMN "public"."industry_supervision_scheme_node"."dept_name" IS '部门名称';
COMMENT ON COLUMN "public"."industry_supervision_scheme_node"."dept_id" IS '部门id';
COMMENT ON COLUMN "public"."industry_supervision_scheme_node"."ya_node_name" IS '预案节点';
COMMENT ON COLUMN "public"."industry_supervision_scheme_node"."bz" IS '备注';
COMMENT ON COLUMN "public"."industry_supervision_scheme_node"."disposal_time" IS '处置时间';
COMMENT ON TABLE "public"."industry_supervision_scheme_node" IS '应急预案节点';

-- ----------------------------
-- Table structure for industry_supervision_scheme
-- ----------------------------
DROP TABLE IF EXISTS "public"."industry_supervision_scheme";
CREATE TABLE "public"."industry_supervision_scheme" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "bsm" varchar(50) COLLATE "pg_catalog"."default",
  "name" varchar(500) COLLATE "pg_catalog"."default",
  "number" varchar(500) COLLATE "pg_catalog"."default",
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "annex" varchar(500) COLLATE "pg_catalog"."default",
  "location" varchar(500) COLLATE "pg_catalog"."default",
  "geometry_data" "public"."geometry",
  "release_time" timestamp(6),
  "state" varchar(50) COLLATE "pg_catalog"."default",
  "order_num" int8,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1,
  "yabzdw" varchar(500) COLLATE "pg_catalog"."default",
  "type" varchar(500) COLLATE "pg_catalog"."default",
  "keyword" varchar(255) COLLATE "pg_catalog"."default",
  "syfw" text COLLATE "pg_catalog"."default",
  "yazlc" varchar(500) COLLATE "pg_catalog"."default",
  "yanr" text COLLATE "pg_catalog"."default",
  "area" varchar(255) COLLATE "pg_catalog"."default",
  "warning_rank" varchar(16) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."industry_supervision_scheme"."id" IS '主键';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."name" IS '应急预案名称';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."number" IS '应急预案编码';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."scene" IS '专项场景  燃气爆炸、城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷 ';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."location" IS '空间信息';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."geometry_data" IS '地图选点';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."release_time" IS '预案启动时间';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."state" IS '预案状态 未启动:0  已启动:1';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."order_num" IS '排序';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."yabzdw" IS '预案编制单位';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."type" IS '预案类型';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."keyword" IS '关键字';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."syfw" IS '适用范围';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."yazlc" IS '预案主流程';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."yanr" IS '预案内容';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."area" IS '区县';
COMMENT ON COLUMN "public"."industry_supervision_scheme"."warning_rank" IS '预警级别 1一级、2二级、3三级、4四级(通用_JCYJ_YJJB_DM)';
COMMENT ON TABLE "public"."industry_supervision_scheme" IS '行业监督-行业知识管理-应急预案管理';

-- ----------------------------
-- Table structure for industry_supervision_report
-- ----------------------------
DROP TABLE IF EXISTS "public"."industry_supervision_report";
CREATE TABLE "public"."industry_supervision_report" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "title" varchar(500) COLLATE "pg_catalog"."default",
  "image" varchar(500) COLLATE "pg_catalog"."default",
  "content" text COLLATE "pg_catalog"."default",
  "level" varchar(500) COLLATE "pg_catalog"."default",
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "annex" varchar(255) COLLATE "pg_catalog"."default",
  "release_time" timestamp(6),
  "state" varchar(50) COLLATE "pg_catalog"."default",
  "order_num" int8,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1,
  "incident_level" varchar(255) COLLATE "pg_catalog"."default",
  "special" varchar(255) COLLATE "pg_catalog"."default",
  "organizer" varchar(255) COLLATE "pg_catalog"."default",
  "manager_phone" varchar(255) COLLATE "pg_catalog"."default",
  "originalid" varchar(128) COLLATE "pg_catalog"."default",
  "process_status" varchar(2) COLLATE "pg_catalog"."default",
  "from_source" varchar(255) COLLATE "pg_catalog"."default",
  "manager" varchar(255) COLLATE "pg_catalog"."default",
  "manager_time" timestamp(6)
)
;
COMMENT ON COLUMN "public"."industry_supervision_report"."id" IS '主键';
COMMENT ON COLUMN "public"."industry_supervision_report"."title" IS '通报标题';
COMMENT ON COLUMN "public"."industry_supervision_report"."image" IS '通报首页大图';
COMMENT ON COLUMN "public"."industry_supervision_report"."content" IS '通报内容';
COMMENT ON COLUMN "public"."industry_supervision_report"."level" IS '层级 0国家级、1江苏省、2无锡市';
COMMENT ON COLUMN "public"."industry_supervision_report"."scene" IS '所属专项 0 燃气爆炸、1城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷 ';
COMMENT ON COLUMN "public"."industry_supervision_report"."annex" IS '附件';
COMMENT ON COLUMN "public"."industry_supervision_report"."release_time" IS '发布时间';
COMMENT ON COLUMN "public"."industry_supervision_report"."state" IS '发布状态 未发布:0  已发布:1';
COMMENT ON COLUMN "public"."industry_supervision_report"."order_num" IS '排序';
COMMENT ON COLUMN "public"."industry_supervision_report"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."industry_supervision_report"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."industry_supervision_report"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."industry_supervision_report"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."industry_supervision_report"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON COLUMN "public"."industry_supervision_report"."incident_level" IS '公告类别/通知公告级别1 普通 2 重要';
COMMENT ON COLUMN "public"."industry_supervision_report"."special" IS '业务专项名称';
COMMENT ON COLUMN "public"."industry_supervision_report"."organizer" IS '发布单位';
COMMENT ON COLUMN "public"."industry_supervision_report"."manager_phone" IS '签收人电话';
COMMENT ON COLUMN "public"."industry_supervision_report"."originalid" IS '通知公告id';
COMMENT ON COLUMN "public"."industry_supervision_report"."process_status" IS '消息处理状态 0 未签收 1签收';
COMMENT ON COLUMN "public"."industry_supervision_report"."from_source" IS '来源';
COMMENT ON COLUMN "public"."industry_supervision_report"."manager" IS '签收人';
COMMENT ON COLUMN "public"."industry_supervision_report"."manager_time" IS '签收时间';
COMMENT ON TABLE "public"."industry_supervision_report" IS '行业监督-行业通报';

-- ----------------------------
-- Table structure for industry_supervision_plan_lifeline
-- ----------------------------
DROP TABLE IF EXISTS "public"."industry_supervision_plan_lifeline";
CREATE TABLE "public"."industry_supervision_plan_lifeline" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "project_progress" int4,
  "project_progress_description" varchar(1024) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."industry_supervision_plan_lifeline"."id" IS '主键';
COMMENT ON COLUMN "public"."industry_supervision_plan_lifeline"."project_progress" IS '项目进度0-100的值';
COMMENT ON COLUMN "public"."industry_supervision_plan_lifeline"."project_progress_description" IS '项目进度描述';
COMMENT ON TABLE "public"."industry_supervision_plan_lifeline" IS '行业监督-规划建设(平台设置部分)';

-- ----------------------------
-- Table structure for industry_supervision_plan
-- ----------------------------
DROP TABLE IF EXISTS "public"."industry_supervision_plan";
CREATE TABLE "public"."industry_supervision_plan" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "type" varchar(50) COLLATE "pg_catalog"."default",
  "unit" varchar(500) COLLATE "pg_catalog"."default",
  "name" varchar(500) COLLATE "pg_catalog"."default",
  "content" text COLLATE "pg_catalog"."default",
  "level" varchar(50) COLLATE "pg_catalog"."default",
  "completion_time" timestamp(6),
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "label" varchar(500) COLLATE "pg_catalog"."default",
  "annex" varchar(500) COLLATE "pg_catalog"."default",
  "release_time" timestamp(6),
  "state" varchar(50) COLLATE "pg_catalog"."default",
  "order_num" int8,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1,
  "cb" int4 DEFAULT 0
)
;
COMMENT ON COLUMN "public"."industry_supervision_plan"."id" IS '主键';
COMMENT ON COLUMN "public"."industry_supervision_plan"."type" IS '项目类型';
COMMENT ON COLUMN "public"."industry_supervision_plan"."unit" IS '项目承建单位';
COMMENT ON COLUMN "public"."industry_supervision_plan"."name" IS '项目名称';
COMMENT ON COLUMN "public"."industry_supervision_plan"."content" IS '项目内容简介';
COMMENT ON COLUMN "public"."industry_supervision_plan"."level" IS '层级 国家级、江苏省、无锡市';
COMMENT ON COLUMN "public"."industry_supervision_plan"."completion_time" IS '预计完成时间';
COMMENT ON COLUMN "public"."industry_supervision_plan"."scene" IS '所属专项  燃气爆炸、城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷 ';
COMMENT ON COLUMN "public"."industry_supervision_plan"."label" IS '标签';
COMMENT ON COLUMN "public"."industry_supervision_plan"."annex" IS '项目内容简介';
COMMENT ON COLUMN "public"."industry_supervision_plan"."release_time" IS '发布时间';
COMMENT ON COLUMN "public"."industry_supervision_plan"."state" IS '发布状态 未发布:0  已发布:1';
COMMENT ON COLUMN "public"."industry_supervision_plan"."order_num" IS '排序';
COMMENT ON COLUMN "public"."industry_supervision_plan"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."industry_supervision_plan"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."industry_supervision_plan"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."industry_supervision_plan"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."industry_supervision_plan"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON TABLE "public"."industry_supervision_plan" IS '行业监督-规划建设';

-- ----------------------------
-- Table structure for industry_supervision_patrol_plan_dtl
-- ----------------------------
DROP TABLE IF EXISTS "public"."industry_supervision_patrol_plan_dtl";
CREATE TABLE "public"."industry_supervision_patrol_plan_dtl" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "plan_id" varchar(50) COLLATE "pg_catalog"."default",
  "frequency_type" varchar(50) COLLATE "pg_catalog"."default",
  "plan_time" timestamp(6),
  "plan_count" int8,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1
)
;
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan_dtl"."id" IS '主键';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan_dtl"."plan_id" IS '巡查养护计划主键';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan_dtl"."frequency_type" IS '频次类型 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan_dtl"."plan_time" IS '计划时间 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan_dtl"."plan_count" IS '巡查养护对象数量 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan_dtl"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan_dtl"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan_dtl"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan_dtl"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan_dtl"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON TABLE "public"."industry_supervision_patrol_plan_dtl" IS '行业监督管理-巡查养护-巡查养护计划明细表';

-- ----------------------------
-- Table structure for industry_supervision_patrol_plan
-- ----------------------------
DROP TABLE IF EXISTS "public"."industry_supervision_patrol_plan";
CREATE TABLE "public"."industry_supervision_patrol_plan" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "type" varchar(500) COLLATE "pg_catalog"."default",
  "frequency_type" varchar(50) COLLATE "pg_catalog"."default",
  "planned_frequency" int8,
  "planned_count" int8,
  "order_num" int8,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1,
  "area" varchar(50) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan"."id" IS '主键';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan"."scene" IS '所属专项  燃气爆炸、城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan"."type" IS '巡查养护类型 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan"."frequency_type" IS '频次类型 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan"."planned_frequency" IS '计划频次 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan"."planned_count" IS '计划巡查总数 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan"."order_num" IS '排序';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON COLUMN "public"."industry_supervision_patrol_plan"."area" IS '行政区划';
COMMENT ON TABLE "public"."industry_supervision_patrol_plan" IS '行业监督管理-巡查养护-巡查养护计划';

-- ----------------------------
-- Table structure for industry_supervision_patrol
-- ----------------------------
DROP TABLE IF EXISTS "public"."industry_supervision_patrol";
CREATE TABLE "public"."industry_supervision_patrol" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "type" varchar(500) COLLATE "pg_catalog"."default",
  "object" varchar(500) COLLATE "pg_catalog"."default",
  "unit" varchar(500) COLLATE "pg_catalog"."default",
  "project" varchar(500) COLLATE "pg_catalog"."default",
  "function" varchar(500) COLLATE "pg_catalog"."default",
  "content" varchar(2000) COLLATE "pg_catalog"."default",
  "result" varchar(500) COLLATE "pg_catalog"."default",
  "pitfall" varchar(500) COLLATE "pg_catalog"."default",
  "check_time" timestamp(6),
  "checker" varchar(500) COLLATE "pg_catalog"."default",
  "owner" varchar(500) COLLATE "pg_catalog"."default",
  "manager" varchar(500) COLLATE "pg_catalog"."default",
  "annex" varchar(2000) COLLATE "pg_catalog"."default",
  "remark" varchar(2000) COLLATE "pg_catalog"."default",
  "order_num" int8,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1,
  "plan_id" varchar(50) COLLATE "pg_catalog"."default",
  "area" varchar(50) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."industry_supervision_patrol"."id" IS '主键';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."scene" IS '所属专项  燃气爆炸、城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."type" IS '巡查养护类型 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."object" IS '巡查对象 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."unit" IS '检查单元 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."project" IS '检查项目 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."function" IS '检查方法 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."content" IS '检查内容 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."result" IS '检查结果 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."pitfall" IS '存在隐患 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."check_time" IS '检查时间 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."checker" IS '检查人员 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."owner" IS '设施权属单位 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."manager" IS '主管单位 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."annex" IS '附件 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."remark" IS '备注 ';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."order_num" IS '排序';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."plan_id" IS '巡查养护计划ID';
COMMENT ON COLUMN "public"."industry_supervision_patrol"."area" IS '行政区划';
COMMENT ON TABLE "public"."industry_supervision_patrol" IS '行业监督管理-巡查养护-巡查养护记录';

-- ----------------------------
-- Table structure for industry_supervision_knowledge
-- ----------------------------
DROP TABLE IF EXISTS "public"."industry_supervision_knowledge";
CREATE TABLE "public"."industry_supervision_knowledge" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "name" varchar(500) COLLATE "pg_catalog"."default",
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "label" varchar(500) COLLATE "pg_catalog"."default",
  "annex" varchar(500) COLLATE "pg_catalog"."default",
  "release_time" timestamp(6),
  "state" varchar(50) COLLATE "pg_catalog"."default",
  "order_num" int8,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1
)
;
COMMENT ON COLUMN "public"."industry_supervision_knowledge"."id" IS '主键';
COMMENT ON COLUMN "public"."industry_supervision_knowledge"."name" IS '事件名称';
COMMENT ON COLUMN "public"."industry_supervision_knowledge"."scene" IS '专项场景  燃气爆炸、城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷 ';
COMMENT ON COLUMN "public"."industry_supervision_knowledge"."label" IS '标签';
COMMENT ON COLUMN "public"."industry_supervision_knowledge"."annex" IS '处置措施';
COMMENT ON COLUMN "public"."industry_supervision_knowledge"."release_time" IS '发布时间';
COMMENT ON COLUMN "public"."industry_supervision_knowledge"."state" IS '发布状态 未发布:0  已发布:1';
COMMENT ON COLUMN "public"."industry_supervision_knowledge"."order_num" IS '排序';
COMMENT ON COLUMN "public"."industry_supervision_knowledge"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."industry_supervision_knowledge"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."industry_supervision_knowledge"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."industry_supervision_knowledge"."update_user" IS '数据更新人员';
COMMENT ON TABLE "public"."industry_supervision_knowledge" IS '行业监督-行业知识管理-事件处置知识';

-- ----------------------------
-- Table structure for industry_supervision_evaluate
-- ----------------------------
DROP TABLE IF EXISTS "public"."industry_supervision_evaluate";
CREATE TABLE "public"."industry_supervision_evaluate" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "name" varchar(500) COLLATE "pg_catalog"."default",
  "national_rank" int8,
  "jiangsu_rank" int8,
  "wuxi_rank" int8,
  "rank_time" timestamp(6),
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "label" varchar(500) COLLATE "pg_catalog"."default",
  "annex" varchar(500) COLLATE "pg_catalog"."default",
  "release_time" timestamp(6),
  "state" varchar(50) COLLATE "pg_catalog"."default",
  "order_num" int8,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1,
  "annexwuxi_rank" text COLLATE "pg_catalog"."default",
  "annexjiangsu_rank" text COLLATE "pg_catalog"."default",
  "annexnational_rank" text COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."id" IS '主键';
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."name" IS '企业名称';
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."national_rank" IS '全国排名';
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."jiangsu_rank" IS '江苏省排名';
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."wuxi_rank" IS '无锡市排名';
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."rank_time" IS '排名统计时间';
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."scene" IS '专项场景  燃气爆炸、城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷 ';
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."label" IS '标签';
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."annex" IS '附件';
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."release_time" IS '发布时间';
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."state" IS '发布状态 未发布:0  已发布:1';
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."order_num" IS '排序';
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."annexwuxi_rank" IS '无锡附件';
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."annexjiangsu_rank" IS '江苏附件';
COMMENT ON COLUMN "public"."industry_supervision_evaluate"."annexnational_rank" IS '全国附件';
COMMENT ON TABLE "public"."industry_supervision_evaluate" IS '行业监督-行业评价';

-- ----------------------------
-- Table structure for industry_supervision_drill
-- ----------------------------
DROP TABLE IF EXISTS "public"."industry_supervision_drill";
CREATE TABLE "public"."industry_supervision_drill" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "name" varchar(500) COLLATE "pg_catalog"."default",
  "type" varchar(50) COLLATE "pg_catalog"."default",
  "department" varchar(100) COLLATE "pg_catalog"."default",
  "revision_time" timestamp(6),
  "commander" varchar(100) COLLATE "pg_catalog"."default",
  "drill_time" timestamp(6),
  "location" varchar(2000) COLLATE "pg_catalog"."default",
  "unit" varchar(200) COLLATE "pg_catalog"."default",
  "participant_num" varchar(50) COLLATE "pg_catalog"."default",
  "content" text COLLATE "pg_catalog"."default",
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "label" varchar(500) COLLATE "pg_catalog"."default",
  "annex" varchar(500) COLLATE "pg_catalog"."default",
  "release_time" timestamp(6),
  "state" varchar(50) COLLATE "pg_catalog"."default",
  "order_num" int8,
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1
)
;
COMMENT ON COLUMN "public"."industry_supervision_drill"."id" IS '主键';
COMMENT ON COLUMN "public"."industry_supervision_drill"."name" IS '演练名称';
COMMENT ON COLUMN "public"."industry_supervision_drill"."type" IS '演练类别';
COMMENT ON COLUMN "public"."industry_supervision_drill"."department" IS '所属部门';
COMMENT ON COLUMN "public"."industry_supervision_drill"."revision_time" IS '演练修订时间';
COMMENT ON COLUMN "public"."industry_supervision_drill"."commander" IS '演练总指挥';
COMMENT ON COLUMN "public"."industry_supervision_drill"."drill_time" IS '演练时间';
COMMENT ON COLUMN "public"."industry_supervision_drill"."location" IS '演练地点';
COMMENT ON COLUMN "public"."industry_supervision_drill"."unit" IS '参与单位（部门）';
COMMENT ON COLUMN "public"."industry_supervision_drill"."participant_num" IS '参加演练人数';
COMMENT ON COLUMN "public"."industry_supervision_drill"."content" IS '演练总结';
COMMENT ON COLUMN "public"."industry_supervision_drill"."scene" IS '专项场景  燃气爆炸、城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷 ';
COMMENT ON COLUMN "public"."industry_supervision_drill"."label" IS '标签';
COMMENT ON COLUMN "public"."industry_supervision_drill"."annex" IS '演练内容';
COMMENT ON COLUMN "public"."industry_supervision_drill"."release_time" IS '发布时间';
COMMENT ON COLUMN "public"."industry_supervision_drill"."state" IS '发布状态 未发布:0  已发布:1';
COMMENT ON COLUMN "public"."industry_supervision_drill"."order_num" IS '排序';
COMMENT ON COLUMN "public"."industry_supervision_drill"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."industry_supervision_drill"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."industry_supervision_drill"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."industry_supervision_drill"."update_user" IS '数据更新人员';
COMMENT ON TABLE "public"."industry_supervision_drill" IS '行业监督-行业知识管理-应急演练管理';

-- ----------------------------
-- Table structure for industry_supervision_data
-- ----------------------------
DROP TABLE IF EXISTS "public"."industry_supervision_data";
CREATE TABLE "public"."industry_supervision_data" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "name" varchar(255) COLLATE "pg_catalog"."default",
  "type" varchar(500) COLLATE "pg_catalog"."default",
  "years" timestamp(6),
  "keyword" text COLLATE "pg_catalog"."default",
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "annex" varchar(500) COLLATE "pg_catalog"."default",
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1
)
;
COMMENT ON COLUMN "public"."industry_supervision_data"."id" IS '主键';
COMMENT ON COLUMN "public"."industry_supervision_data"."name" IS '资料名称';
COMMENT ON COLUMN "public"."industry_supervision_data"."type" IS '资料类别';
COMMENT ON COLUMN "public"."industry_supervision_data"."years" IS '资料年代';
COMMENT ON COLUMN "public"."industry_supervision_data"."keyword" IS '关键字';
COMMENT ON COLUMN "public"."industry_supervision_data"."scene" IS '所属专项  燃气爆炸、城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷 ';
COMMENT ON COLUMN "public"."industry_supervision_data"."annex" IS '资料';
COMMENT ON COLUMN "public"."industry_supervision_data"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."industry_supervision_data"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."industry_supervision_data"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."industry_supervision_data"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."industry_supervision_data"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON TABLE "public"."industry_supervision_data" IS '行业监督-行业资料库';

-- ----------------------------
-- Table structure for holiday_management
-- ----------------------------
DROP TABLE IF EXISTS "public"."holiday_management";
CREATE TABLE "public"."holiday_management" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "staff_name" varchar(32) COLLATE "pg_catalog"."default",
  "staff_number" varchar(64) COLLATE "pg_catalog"."default",
  "staff_tel" varchar(16) COLLATE "pg_catalog"."default",
  "duty_date_start" timestamp(6),
  "duty_date_end" timestamp(6),
  "deleted" int4 DEFAULT 0,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."holiday_management"."id" IS 'id';
COMMENT ON COLUMN "public"."holiday_management"."staff_name" IS '人员姓名';
COMMENT ON COLUMN "public"."holiday_management"."staff_number" IS '人员编号';
COMMENT ON COLUMN "public"."holiday_management"."staff_tel" IS '人员手机号';
COMMENT ON COLUMN "public"."holiday_management"."duty_date_start" IS '开始时间';
COMMENT ON COLUMN "public"."holiday_management"."duty_date_end" IS '结束时间';
COMMENT ON TABLE "public"."holiday_management" IS '休假管理表';

-- ----------------------------
-- Table structure for gs_js_jcd
-- ----------------------------
DROP TABLE IF EXISTS "public"."gs_js_jcd";
CREATE TABLE "public"."gs_js_jcd" (
  "bsm" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "xzqhdm" varchar(6) COLLATE "pg_catalog"."default" NOT NULL,
  "dwmc" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "ssmc" varchar(64) COLLATE "pg_catalog"."default",
  "ssbm" varchar(17) COLLATE "pg_catalog"."default" NOT NULL,
  "jcwz" varchar(200) COLLATE "pg_catalog"."default",
  "gc" numeric(10,3),
  "gcjz" varchar(32) COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6),
  "kjxx" "public"."geometry",
  "xzb" varchar(50) COLLATE "pg_catalog"."default",
  "yzb" varchar(50) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."gs_js_jcd"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."gs_js_jcd"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."gs_js_jcd"."dwmc" IS '点位名称';
COMMENT ON COLUMN "public"."gs_js_jcd"."ssmc" IS '设施名称';
COMMENT ON COLUMN "public"."gs_js_jcd"."ssbm" IS '设施编码';
COMMENT ON COLUMN "public"."gs_js_jcd"."jcwz" IS '监测位置';
COMMENT ON COLUMN "public"."gs_js_jcd"."gc" IS '高程';
COMMENT ON COLUMN "public"."gs_js_jcd"."gcjz" IS '高程基准';
COMMENT ON COLUMN "public"."gs_js_jcd"."bz" IS '备注';
COMMENT ON COLUMN "public"."gs_js_jcd"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."gs_js_jcd"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."gs_js_jcd"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."gs_js_jcd"."kjxx" IS '空间信息';
COMMENT ON COLUMN "public"."gs_js_jcd"."xzb" IS 'x坐标';
COMMENT ON COLUMN "public"."gs_js_jcd"."yzb" IS 'y坐标';
COMMENT ON TABLE "public"."gs_js_jcd" IS '监测点属性结构表';

-- ----------------------------
-- Table structure for gs_js_gsbz
-- ----------------------------
DROP TABLE IF EXISTS "public"."gs_js_gsbz";
CREATE TABLE "public"."gs_js_gsbz" (
  "jyhs" varchar(60) COLLATE "pg_catalog"."default",
  "gsqy" varchar(60) COLLATE "pg_catalog"."default",
  "scbsm" varchar(60) COLLATE "pg_catalog"."default",
  "mc" varchar(60) COLLATE "pg_catalog"."default",
  "sysj" date,
  "lxsm" varchar(60) COLLATE "pg_catalog"."default",
  "bsm" varchar(60) COLLATE "pg_catalog"."default",
  "dz" varchar(300) COLLATE "pg_catalog"."default",
  "xzqhdm" varchar(60) COLLATE "pg_catalog"."default",
  "jgrq" date,
  "xqwz" varchar(200) COLLATE "pg_catalog"."default",
  "bfzt" varchar(60) COLLATE "pg_catalog"."default",
  "lx" varchar(60) COLLATE "pg_catalog"."default",
  "jsdw" varchar(60) COLLATE "pg_catalog"."default",
  "kjsj" varchar(60) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."gs_js_gsbz"."jyhs" IS '加压户数';
COMMENT ON COLUMN "public"."gs_js_gsbz"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."gs_js_gsbz"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."gs_js_gsbz"."xqwz" IS '小区位置';
COMMENT ON TABLE "public"."gs_js_gsbz" IS '增压站或二供泵房(市)';

-- ----------------------------
-- Table structure for gs_jg_ljgwgzlsqk
-- ----------------------------
DROP TABLE IF EXISTS "public"."gs_jg_ljgwgzlsqk";
CREATE TABLE "public"."gs_jg_ljgwgzlsqk" (
  "szljgwygzgls" float4,
  "nf" varchar(50) COLLATE "pg_catalog"."default",
  "xzqhdm" varchar(16) COLLATE "pg_catalog"."default",
  "ljgwygzgls" float4,
  "ljgwgzzgls" float4,
  "bz" varchar(50) COLLATE "pg_catalog"."default",
  "dnjhgzljgwgls" float4,
  "tjsj" date,
  "ljgwwgzgls" float4,
  "bsm" varchar(64) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."gs_jg_ljgwgzlsqk"."szljgwygzgls" IS '市政老旧管网已改造公里数';
COMMENT ON COLUMN "public"."gs_jg_ljgwgzlsqk"."nf" IS '年份';
COMMENT ON COLUMN "public"."gs_jg_ljgwgzlsqk"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."gs_jg_ljgwgzlsqk"."ljgwygzgls" IS '老旧管网已改造长度';
COMMENT ON COLUMN "public"."gs_jg_ljgwgzlsqk"."ljgwgzzgls" IS '老旧管网改造中长度';
COMMENT ON COLUMN "public"."gs_jg_ljgwgzlsqk"."bz" IS '备注';
COMMENT ON COLUMN "public"."gs_jg_ljgwgzlsqk"."dnjhgzljgwgls" IS '当年计划改造老旧管网总长';
COMMENT ON COLUMN "public"."gs_jg_ljgwgzlsqk"."tjsj" IS '提交时间';
COMMENT ON COLUMN "public"."gs_jg_ljgwgzlsqk"."ljgwwgzgls" IS '老旧管网未改造长度';
COMMENT ON COLUMN "public"."gs_jg_ljgwgzlsqk"."bsm" IS '标识码';
COMMENT ON TABLE "public"."gs_jg_ljgwgzlsqk" IS '老旧管网改造落实情况结构表(省)';

-- ----------------------------
-- Table structure for gs_jg_gwfxhczxx
-- ----------------------------
DROP TABLE IF EXISTS "public"."gs_jg_gwfxhczxx";
CREATE TABLE "public"."gs_jg_gwfxhczxx" (
  "pgdywz" varchar(200) COLLATE "pg_catalog"."default",
  "pgdw" varchar(200) COLLATE "pg_catalog"."default",
  "bz" varchar(200) COLLATE "pg_catalog"."default",
  "gkcs" varchar(200) COLLATE "pg_catalog"."default",
  "pgdywybs" varchar(200) COLLATE "pg_catalog"."default",
  "gkzt" numeric(23,0),
  "fxdj" numeric(23,0),
  "xzqhdm" varchar(16) COLLATE "pg_catalog"."default",
  "pgsj" date,
  "xxdz" varchar(200) COLLATE "pg_catalog"."default",
  "knxdj" numeric(23,0),
  "pgdygdcd" numeric(23,0),
  "qsdw" varchar(200) COLLATE "pg_catalog"."default",
  "bsm" varchar(64) COLLATE "pg_catalog"."default",
  "sjcgpcbh" varchar(200) COLLATE "pg_catalog"."default",
  "fxms" varchar(200) COLLATE "pg_catalog"."default",
  "hgdj" numeric(23,0),
  "pgdymc" varchar(200) COLLATE "pg_catalog"."default",
  "kjxx" text COLLATE "pg_catalog"."default",
  "fxbh" varchar(200) COLLATE "pg_catalog"."default",
  "glgdbh" varchar(2000) COLLATE "pg_catalog"."default"
)
;
COMMENT ON TABLE "public"."gs_jg_gwfxhczxx" IS '供水管网风险&处置信息属性结构表(省)';

-- ----------------------------
-- Table structure for gs_jc_jcxyz
-- ----------------------------
DROP TABLE IF EXISTS "public"."gs_jc_jcxyz";
CREATE TABLE "public"."gs_jc_jcxyz" (
  "bsm" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "sbbsm" varchar(64) COLLATE "pg_catalog"."default",
  "sblx" varchar(32) COLLATE "pg_catalog"."default",
  "jczb" varchar(32) COLLATE "pg_catalog"."default",
  "bjyz" varchar(255) COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6)
)
;
COMMENT ON COLUMN "public"."gs_jc_jcxyz"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."gs_jc_jcxyz"."sbbsm" IS '设备标识码';
COMMENT ON COLUMN "public"."gs_jc_jcxyz"."sblx" IS '设备类型';
COMMENT ON COLUMN "public"."gs_jc_jcxyz"."jczb" IS '监测指标';
COMMENT ON COLUMN "public"."gs_jc_jcxyz"."bjyz" IS '报警阈值';
COMMENT ON COLUMN "public"."gs_jc_jcxyz"."bz" IS '备注';
COMMENT ON COLUMN "public"."gs_jc_jcxyz"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."gs_jc_jcxyz"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."gs_jc_jcxyz"."tbsj" IS '同步时间';
COMMENT ON TABLE "public"."gs_jc_jcxyz" IS '监测项阈值属性结构表';

-- ----------------------------
-- Table structure for gs_jc_jcsb
-- ----------------------------
DROP TABLE IF EXISTS "public"."gs_jc_jcsb";
CREATE TABLE "public"."gs_jc_jcsb" (
  "bsm" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "dwbsm" varchar(64) COLLATE "pg_catalog"."default",
  "sblx" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "sbmc" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "sbxh" varchar(50) COLLATE "pg_catalog"."default",
  "jczb" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "cjpl" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "scpl" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "sbzt" int4,
  "csmc" varchar(50) COLLATE "pg_catalog"."default",
  "xdgd" numeric(10,3),
  "azrq" date,
  "azwhdw" varchar(100) COLLATE "pg_catalog"."default",
  "gdfs" varchar(32) COLLATE "pg_catalog"."default",
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  "tbsj" timestamp(6) NOT NULL
)
;
COMMENT ON COLUMN "public"."gs_jc_jcsb"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."gs_jc_jcsb"."dwbsm" IS '点位标识码';
COMMENT ON COLUMN "public"."gs_jc_jcsb"."sblx" IS '设备类型';
COMMENT ON COLUMN "public"."gs_jc_jcsb"."sbmc" IS '设备名称';
COMMENT ON COLUMN "public"."gs_jc_jcsb"."sbxh" IS '设备型号';
COMMENT ON COLUMN "public"."gs_jc_jcsb"."jczb" IS '监测指标';
COMMENT ON COLUMN "public"."gs_jc_jcsb"."cjpl" IS '采集频率';
COMMENT ON COLUMN "public"."gs_jc_jcsb"."scpl" IS '上传频率';
COMMENT ON COLUMN "public"."gs_jc_jcsb"."sbzt" IS '设备状态';
COMMENT ON COLUMN "public"."gs_jc_jcsb"."csmc" IS '厂商名称';
COMMENT ON COLUMN "public"."gs_jc_jcsb"."xdgd" IS '相对高度';
COMMENT ON COLUMN "public"."gs_jc_jcsb"."azrq" IS '安装时间';
COMMENT ON COLUMN "public"."gs_jc_jcsb"."azwhdw" IS '安装维护单位';
COMMENT ON COLUMN "public"."gs_jc_jcsb"."gdfs" IS '供电方式';
COMMENT ON COLUMN "public"."gs_jc_jcsb"."bz" IS '备注';
COMMENT ON COLUMN "public"."gs_jc_jcsb"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."gs_jc_jcsb"."sjtbzt" IS '数据同步状态';
COMMENT ON COLUMN "public"."gs_jc_jcsb"."tbsj" IS '同步时间';
COMMENT ON TABLE "public"."gs_jc_jcsb" IS '监测设备属性结构表';

-- ----------------------------
-- Table structure for duty_management_type
-- ----------------------------
DROP TABLE IF EXISTS "public"."duty_management_type";
CREATE TABLE "public"."duty_management_type" (
  "id" varchar(60) COLLATE "pg_catalog"."default" NOT NULL,
  "start_time" timestamp(6),
  "end_time" timestamp(6),
  "type" varchar(2) COLLATE "pg_catalog"."default",
  "start_first" time(6),
  "end_first" time(6),
  "first_time" numeric(4,1),
  "start_second" time(6),
  "end_second" time(6),
  "second_time" numeric(4,1),
  "start_third" time(6),
  "end_third" time(6),
  "third_time" numeric(4,1),
  "deleted" int2,
  "create_time" timestamp(6),
  "creater_id" varchar(64) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "updater_id" varchar(64) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."duty_management_type"."id" IS 'id';
COMMENT ON COLUMN "public"."duty_management_type"."start_time" IS '生效日期';
COMMENT ON COLUMN "public"."duty_management_type"."end_time" IS '失效日期';
COMMENT ON COLUMN "public"."duty_management_type"."type" IS '排班类型2两班制,3三班制';
COMMENT ON COLUMN "public"."duty_management_type"."start_first" IS '第一班';
COMMENT ON COLUMN "public"."duty_management_type"."end_first" IS '第一班';
COMMENT ON COLUMN "public"."duty_management_type"."first_time" IS '所用工时';
COMMENT ON COLUMN "public"."duty_management_type"."start_second" IS '第2班';
COMMENT ON COLUMN "public"."duty_management_type"."end_second" IS '第2班';
COMMENT ON COLUMN "public"."duty_management_type"."second_time" IS '所用工时';
COMMENT ON COLUMN "public"."duty_management_type"."start_third" IS '第3班';
COMMENT ON COLUMN "public"."duty_management_type"."end_third" IS '第3班';
COMMENT ON COLUMN "public"."duty_management_type"."third_time" IS '所用工时';
COMMENT ON COLUMN "public"."duty_management_type"."deleted" IS '1不删除,0删除';
COMMENT ON COLUMN "public"."duty_management_type"."create_time" IS '创建时间';
COMMENT ON COLUMN "public"."duty_management_type"."creater_id" IS '创建人id';
COMMENT ON COLUMN "public"."duty_management_type"."update_time" IS '修改时间';
COMMENT ON COLUMN "public"."duty_management_type"."updater_id" IS '修改人id';
COMMENT ON TABLE "public"."duty_management_type" IS '排班类型管理日志';

-- ----------------------------
-- Table structure for duty_management
-- ----------------------------
DROP TABLE IF EXISTS "public"."duty_management";
CREATE TABLE "public"."duty_management" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "staff_name" varchar(32) COLLATE "pg_catalog"."default",
  "staff_number" varchar(64) COLLATE "pg_catalog"."default",
  "staff_tel" varchar(16) COLLATE "pg_catalog"."default",
  "duty_date" timestamp(6),
  "duty_type" varchar(16) COLLATE "pg_catalog"."default",
  "day_record" varchar(2000) COLLATE "pg_catalog"."default",
  "deleted" int4 DEFAULT 0,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default",
  "management_type_id" varchar(64) COLLATE "pg_catalog"."default",
  "annex" varchar(1024) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."duty_management"."id" IS 'id';
COMMENT ON COLUMN "public"."duty_management"."staff_name" IS '人员姓名';
COMMENT ON COLUMN "public"."duty_management"."staff_number" IS '人员编号';
COMMENT ON COLUMN "public"."duty_management"."staff_tel" IS '人员手机号';
COMMENT ON COLUMN "public"."duty_management"."duty_date" IS '排班时间';
COMMENT ON COLUMN "public"."duty_management"."duty_type" IS '值班班次 0早班 1中班 2晚班';
COMMENT ON COLUMN "public"."duty_management"."day_record" IS '日报';
COMMENT ON COLUMN "public"."duty_management"."deleted" IS '是否删除';
COMMENT ON COLUMN "public"."duty_management"."created_at" IS '创建时间';
COMMENT ON COLUMN "public"."duty_management"."created_by" IS '创建人';
COMMENT ON COLUMN "public"."duty_management"."updated_at" IS '修改时间';
COMMENT ON COLUMN "public"."duty_management"."updated_by" IS '修改人';
COMMENT ON COLUMN "public"."duty_management"."management_type_id" IS '排班类型管理日志表id';
COMMENT ON COLUMN "public"."duty_management"."annex" IS '附件';
COMMENT ON TABLE "public"."duty_management" IS '排班管理表';

-- ----------------------------
-- Table structure for dl_js_csdl
-- ----------------------------
DROP TABLE IF EXISTS "public"."dl_js_csdl";
CREATE TABLE "public"."dl_js_csdl" (
  "bsm" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "xzqhdm" varchar(6) COLLATE "pg_catalog"."default",
  "dlmc" varchar(100) COLLATE "pg_catalog"."default",
  "dlqd" varchar(100) COLLATE "pg_catalog"."default",
  "dlzd" varchar(100) COLLATE "pg_catalog"."default",
  "dlzx" int4,
  "dldj" int4 NOT NULL,
  "glfl" int4 NOT NULL,
  "yhdj" int4 NOT NULL,
  "dlcd" numeric(12,2) NOT NULL,
  "dlkd" numeric(8,2) NOT NULL,
  "dlmj" numeric(12,2) NOT NULL,
  "jsdw" varchar(100) COLLATE "pg_catalog"."default",
  "sjdw" varchar(100) COLLATE "pg_catalog"."default",
  "sgdw" varchar(100) COLLATE "pg_catalog"."default",
  "jldw" varchar(100) COLLATE "pg_catalog"."default",
  "gldw" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  "yhdw" varchar(100) COLLATE "pg_catalog"."default",
  "jgny" date,
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6),
  "yskzjbz" varchar(64) COLLATE "pg_catalog"."default",
  "kjxx" varchar(4000) COLLATE "pg_catalog"."default",
  "del_flag" int4
)
;
COMMENT ON COLUMN "public"."dl_js_csdl"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."dl_js_csdl"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."dl_js_csdl"."dlmc" IS '道路名称';
COMMENT ON COLUMN "public"."dl_js_csdl"."dlqd" IS '道路起点';
COMMENT ON COLUMN "public"."dl_js_csdl"."dlzd" IS '道路终点';
COMMENT ON COLUMN "public"."dl_js_csdl"."dlzx" IS '道路走向';
COMMENT ON COLUMN "public"."dl_js_csdl"."dldj" IS '道路等级';
COMMENT ON COLUMN "public"."dl_js_csdl"."glfl" IS '管理分类';
COMMENT ON COLUMN "public"."dl_js_csdl"."yhdj" IS '养护等级';
COMMENT ON COLUMN "public"."dl_js_csdl"."dlcd" IS '道路长度';
COMMENT ON COLUMN "public"."dl_js_csdl"."dlkd" IS '道路宽度';
COMMENT ON COLUMN "public"."dl_js_csdl"."dlmj" IS '道路面积';
COMMENT ON COLUMN "public"."dl_js_csdl"."jsdw" IS '建设单位';
COMMENT ON COLUMN "public"."dl_js_csdl"."sjdw" IS '设计单位';
COMMENT ON COLUMN "public"."dl_js_csdl"."sgdw" IS '施工单位';
COMMENT ON COLUMN "public"."dl_js_csdl"."jldw" IS '监理单位';
COMMENT ON COLUMN "public"."dl_js_csdl"."gldw" IS '管理单位';
COMMENT ON COLUMN "public"."dl_js_csdl"."yhdw" IS '养护单位';
COMMENT ON COLUMN "public"."dl_js_csdl"."jgny" IS '竣工年月';
COMMENT ON COLUMN "public"."dl_js_csdl"."bz" IS '备注';
COMMENT ON COLUMN "public"."dl_js_csdl"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."dl_js_csdl"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."dl_js_csdl"."kjxx" IS '空间信息';
COMMENT ON TABLE "public"."dl_js_csdl" IS '城市道路属性结构表(根据省标作废)';

-- ----------------------------
-- Table structure for dl_jg_dltxfx
-- ----------------------------
DROP TABLE IF EXISTS "public"."dl_jg_dltxfx";
CREATE TABLE "public"."dl_jg_dltxfx" (
  "bsm" varchar(64) COLLATE "pg_catalog"."default",
  "xzqhdm" varchar(16) COLLATE "pg_catalog"."default",
  "dlmc" varchar(64) COLLATE "pg_catalog"."default",
  "dlqd" varchar(100) COLLATE "pg_catalog"."default",
  "dlzd" varchar(100) COLLATE "pg_catalog"."default",
  "dldj" int4,
  "fxdj" int4,
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "tbsj" date,
  "del_flag" int4,
  "mc" varchar(100) COLLATE "pg_catalog"."default",
  "jcdw" varchar(100) COLLATE "pg_catalog"."default",
  "pgdybh" varchar(64) COLLATE "pg_catalog"."default",
  "pgdycd" int4,
  "pgfz" numeric(6,2),
  "kjxx" varchar(4000) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(32) COLLATE "pg_catalog"."default",
  "pgsj" date,
  "fj" varchar(100) COLLATE "pg_catalog"."default",
  "fxms" varchar(255) COLLATE "pg_catalog"."default",
  "gkcs" varchar(100) COLLATE "pg_catalog"."default",
  "gkzt" int4,
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."dlmc" IS '道路名称';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."dlqd" IS '道路起点';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."dlzd" IS '道路终点';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."dldj" IS '道路等级';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."fxdj" IS '风险等级';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."bz" IS '备注';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."mc" IS '名称';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."jcdw" IS '检测单位';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."pgdybh" IS '评估单元编号';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."pgdycd" IS '评估单元长度';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."pgfz" IS '评估分值';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."kjxx" IS '空间信息';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."pgsj" IS '评估时间';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."fj" IS '附件';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."fxms" IS '风险描述';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."gkcs" IS '管控措施';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."gkzt" IS '管控状态';
COMMENT ON COLUMN "public"."dl_jg_dltxfx"."sjtbzt" IS '数据同步状态';
COMMENT ON TABLE "public"."dl_jg_dltxfx" IS '道路塌陷风险属性结构表';

-- ----------------------------
-- Table structure for dl_jc_dltxfx
-- ----------------------------
DROP TABLE IF EXISTS "public"."dl_jc_dltxfx";
CREATE TABLE "public"."dl_jc_dltxfx" (
  "bsm" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "xzqhdm" varchar(6) COLLATE "pg_catalog"."default",
  "dlmc" varchar(32) COLLATE "pg_catalog"."default",
  "dlqd" varchar(100) COLLATE "pg_catalog"."default",
  "dlzd" varchar(100) COLLATE "pg_catalog"."default",
  "dldj" int4,
  "fxdj" int4,
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "tbsj" date,
  "del_flag" int4,
  "gcmc" varchar(50) COLLATE "pg_catalog"."default",
  "jcdw" varchar(50) COLLATE "pg_catalog"."default",
  "pgdybh" varchar(32) COLLATE "pg_catalog"."default",
  "pgdylc" float8,
  "pgfz" int4,
  "kjxx" varchar(4000) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(32) COLLATE "pg_catalog"."default",
  "pgsj" date,
  "fj" varchar(255) COLLATE "pg_catalog"."default"
)
;
COMMENT ON TABLE "public"."dl_jc_dltxfx" IS '道路塌陷风险(根据省标作废)';

-- ----------------------------
-- Table structure for dl_csdl
-- ----------------------------
DROP TABLE IF EXISTS "public"."dl_csdl";
CREATE TABLE "public"."dl_csdl" (
  "bsm" varchar(64) COLLATE "pg_catalog"."default",
  "xzqhdm" varchar(16) COLLATE "pg_catalog"."default",
  "dlmc" varchar(64) COLLATE "pg_catalog"."default",
  "dlqd" varchar(100) COLLATE "pg_catalog"."default",
  "dlzd" varchar(100) COLLATE "pg_catalog"."default",
  "dlzx" int4,
  "dldj" int4,
  "glfl" int4,
  "yhdj" int4,
  "dlcd" numeric(12,2),
  "dlkd" numeric(8,2),
  "dlmj" numeric(12,2),
  "jsdw" varchar(100) COLLATE "pg_catalog"."default",
  "sjdw" varchar(100) COLLATE "pg_catalog"."default",
  "sgdw" varchar(100) COLLATE "pg_catalog"."default",
  "jldw" varchar(100) COLLATE "pg_catalog"."default",
  "gldw" varchar(100) COLLATE "pg_catalog"."default",
  "yhdw" varchar(100) COLLATE "pg_catalog"."default",
  "jgrq" date,
  "bz" varchar(255) COLLATE "pg_catalog"."default",
  "tbsj" date,
  "del_flag" int4,
  "kjxx" varchar(4000) COLLATE "pg_catalog"."default",
  "yskzjbz" varchar(32) COLLATE "pg_catalog"."default",
  "dlmcbz" int4,
  "flbm" varchar(4) COLLATE "pg_catalog"."default",
  "rxdsl" int4,
  "rxdlc" numeric(12,2),
  "zxcdsl" int4,
  "zxcdlc" numeric(12,2),
  "sjtbzt" varchar(16) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."dl_csdl"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."dl_csdl"."xzqhdm" IS '行政区划代码';
COMMENT ON COLUMN "public"."dl_csdl"."dlmc" IS '道路名称';
COMMENT ON COLUMN "public"."dl_csdl"."dlqd" IS '道路起点';
COMMENT ON COLUMN "public"."dl_csdl"."dlzd" IS '道路终点';
COMMENT ON COLUMN "public"."dl_csdl"."dlzx" IS '道路走向';
COMMENT ON COLUMN "public"."dl_csdl"."dldj" IS '道路等级';
COMMENT ON COLUMN "public"."dl_csdl"."glfl" IS '管理分类';
COMMENT ON COLUMN "public"."dl_csdl"."yhdj" IS '养护等级';
COMMENT ON COLUMN "public"."dl_csdl"."dlcd" IS '道路长度';
COMMENT ON COLUMN "public"."dl_csdl"."dlkd" IS '道路宽度';
COMMENT ON COLUMN "public"."dl_csdl"."dlmj" IS '道路面积';
COMMENT ON COLUMN "public"."dl_csdl"."jsdw" IS '建设单位';
COMMENT ON COLUMN "public"."dl_csdl"."sjdw" IS '设计单位';
COMMENT ON COLUMN "public"."dl_csdl"."sgdw" IS '施工单位';
COMMENT ON COLUMN "public"."dl_csdl"."jldw" IS '监理单位';
COMMENT ON COLUMN "public"."dl_csdl"."gldw" IS '管理单位';
COMMENT ON COLUMN "public"."dl_csdl"."yhdw" IS '养护单位';
COMMENT ON COLUMN "public"."dl_csdl"."jgrq" IS '竣工日期';
COMMENT ON COLUMN "public"."dl_csdl"."bz" IS '备注';
COMMENT ON COLUMN "public"."dl_csdl"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."dl_csdl"."kjxx" IS '空间信息';
COMMENT ON COLUMN "public"."dl_csdl"."yskzjbz" IS '原始库主键标志';
COMMENT ON COLUMN "public"."dl_csdl"."dlmcbz" IS '道路名称备注';
COMMENT ON COLUMN "public"."dl_csdl"."flbm" IS '分类编码';
COMMENT ON COLUMN "public"."dl_csdl"."rxdsl" IS '人行道数量';
COMMENT ON COLUMN "public"."dl_csdl"."rxdlc" IS '人行道里程';
COMMENT ON COLUMN "public"."dl_csdl"."zxcdsl" IS '自行车道数量';
COMMENT ON COLUMN "public"."dl_csdl"."zxcdlc" IS '自行车道里程';
COMMENT ON COLUMN "public"."dl_csdl"."sjtbzt" IS '数据同步状态';
COMMENT ON TABLE "public"."dl_csdl" IS '城市道路属性结构表';

-- ----------------------------
-- Table structure for demo_class
-- ----------------------------
DROP TABLE IF EXISTS "public"."demo_class";
CREATE TABLE "public"."demo_class" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "name" varchar(100) COLLATE "pg_catalog"."default" DEFAULT NULL::character varying,
  "grade" varchar(10) COLLATE "pg_catalog"."default" DEFAULT NULL::character varying,
  "created_at" time(6),
  "created_by" varchar(50) COLLATE "pg_catalog"."default" DEFAULT NULL::character varying
)
;

-- ----------------------------
-- Table structure for change_duty_management
-- ----------------------------
DROP TABLE IF EXISTS "public"."change_duty_management";
CREATE TABLE "public"."change_duty_management" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "staff_name" varchar(32) COLLATE "pg_catalog"."default",
  "staff_number" varchar(64) COLLATE "pg_catalog"."default",
  "staff_tel" varchar(16) COLLATE "pg_catalog"."default",
  "apply_staff_name" varchar(32) COLLATE "pg_catalog"."default",
  "apply_staff_number" varchar(64) COLLATE "pg_catalog"."default",
  "apply_staff_tel" varchar(16) COLLATE "pg_catalog"."default",
  "duty_date" timestamp(6),
  "duty_type" varchar(16) COLLATE "pg_catalog"."default",
  "deleted" int4 DEFAULT 0,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."change_duty_management"."id" IS 'id';
COMMENT ON COLUMN "public"."change_duty_management"."staff_name" IS '调班对象人员姓名';
COMMENT ON COLUMN "public"."change_duty_management"."staff_number" IS '调班对象人员编号';
COMMENT ON COLUMN "public"."change_duty_management"."staff_tel" IS '调班对象人员手机号';
COMMENT ON COLUMN "public"."change_duty_management"."apply_staff_name" IS '申请调班人员姓名';
COMMENT ON COLUMN "public"."change_duty_management"."apply_staff_number" IS '申请调班人员编号';
COMMENT ON COLUMN "public"."change_duty_management"."apply_staff_tel" IS '申请调班人员手机号';
COMMENT ON COLUMN "public"."change_duty_management"."duty_date" IS '调班日期';
COMMENT ON COLUMN "public"."change_duty_management"."duty_type" IS '调班班次 0早班 1中班 2晚班';
COMMENT ON COLUMN "public"."change_duty_management"."deleted" IS '1正常0删除';
COMMENT ON TABLE "public"."change_duty_management" IS '调班管理表';

-- ----------------------------
-- Table structure for business_tag_info
-- ----------------------------
DROP TABLE IF EXISTS "public"."business_tag_info";
CREATE TABLE "public"."business_tag_info" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "tag_id" varchar(500) COLLATE "pg_catalog"."default",
  "business_id" varchar(64) COLLATE "pg_catalog"."default",
  "business_type" varchar(64) COLLATE "pg_catalog"."default",
  "deleted" int4,
  "created_at" timestamp(6),
  "created_by" varchar(100) COLLATE "pg_catalog"."default",
  "updated_at" timestamp(6),
  "updated_by" varchar(100) COLLATE "pg_catalog"."default"
)
;

-- ----------------------------
-- Table structure for archives_risk
-- ----------------------------
DROP TABLE IF EXISTS "public"."archives_risk";
CREATE TABLE "public"."archives_risk" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "name" varchar(500) COLLATE "pg_catalog"."default",
  "type" varchar(50) COLLATE "pg_catalog"."default",
  "level" varchar(50) COLLATE "pg_catalog"."default",
  "keyword" text COLLATE "pg_catalog"."default",
  "annex" varchar(500) COLLATE "pg_catalog"."default",
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1,
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "is_often" varchar(2) COLLATE "pg_catalog"."default",
  "dispose_progress" varchar(16) COLLATE "pg_catalog"."default",
  "kjxx" "public"."geometry",
  "zrdw" varchar(500) COLLATE "pg_catalog"."default",
  "pgdw" varchar(500) COLLATE "pg_catalog"."default",
  "pgsj" timestamp(6),
  "dlwz" varchar(2000) COLLATE "pg_catalog"."default",
  "fxms" varchar(1000) COLLATE "pg_catalog"."default",
  "bsm" varchar(64) COLLATE "pg_catalog"."default",
  "childtype" varchar(255) COLLATE "pg_catalog"."default",
  "code" varchar(255) COLLATE "pg_catalog"."default",
  "table" varchar(255) COLLATE "pg_catalog"."default",
  "tbsj" timestamp(6),
  "pgfz" numeric(6,2)
)
;
COMMENT ON COLUMN "public"."archives_risk"."id" IS '主键';
COMMENT ON COLUMN "public"."archives_risk"."scene" IS '所属专项  燃气爆炸、城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷 ';
COMMENT ON COLUMN "public"."archives_risk"."name" IS '风险名称';
COMMENT ON COLUMN "public"."archives_risk"."type" IS '风险类型  下拉框';
COMMENT ON COLUMN "public"."archives_risk"."level" IS '风险等级 一级、二级、三级、四级';
COMMENT ON COLUMN "public"."archives_risk"."keyword" IS '关键字';
COMMENT ON COLUMN "public"."archives_risk"."annex" IS '档案文件';
COMMENT ON COLUMN "public"."archives_risk"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."archives_risk"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."archives_risk"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."archives_risk"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."archives_risk"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON COLUMN "public"."archives_risk"."area" IS '行政区划';
COMMENT ON COLUMN "public"."archives_risk"."is_often" IS '是否高发是,不是';
COMMENT ON COLUMN "public"."archives_risk"."dispose_progress" IS '处置进度(处置状态) 0未处置、1处置中、2已完成';
COMMENT ON COLUMN "public"."archives_risk"."kjxx" IS '空间信息';
COMMENT ON COLUMN "public"."archives_risk"."zrdw" IS '责任单位';
COMMENT ON COLUMN "public"."archives_risk"."pgdw" IS '评估单位';
COMMENT ON COLUMN "public"."archives_risk"."pgsj" IS '评估时间';
COMMENT ON COLUMN "public"."archives_risk"."dlwz" IS '地理位置';
COMMENT ON COLUMN "public"."archives_risk"."fxms" IS '风险描述';
COMMENT ON COLUMN "public"."archives_risk"."bsm" IS '标识码';
COMMENT ON COLUMN "public"."archives_risk"."childtype" IS '专项子类名称';
COMMENT ON COLUMN "public"."archives_risk"."code" IS '所属专项名称';
COMMENT ON COLUMN "public"."archives_risk"."table" IS '来源表名称';
COMMENT ON COLUMN "public"."archives_risk"."tbsj" IS '同步时间';
COMMENT ON COLUMN "public"."archives_risk"."pgfz" IS '评估分值';
COMMENT ON TABLE "public"."archives_risk" IS '档案管理-事件档案库-风险档案';

-- ----------------------------
-- Table structure for archives_pitfall
-- ----------------------------
DROP TABLE IF EXISTS "public"."archives_pitfall";
CREATE TABLE "public"."archives_pitfall" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "name" varchar(500) COLLATE "pg_catalog"."default",
  "type" varchar(50) COLLATE "pg_catalog"."default",
  "level" varchar(50) COLLATE "pg_catalog"."default",
  "keyword" text COLLATE "pg_catalog"."default",
  "annex" varchar(500) COLLATE "pg_catalog"."default",
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1,
  "is_often" varchar(2) COLLATE "pg_catalog"."default",
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "dispose_progress" varchar(16) COLLATE "pg_catalog"."default",
  "hidden_trouble_description" varchar(1000) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."archives_pitfall"."id" IS '主键';
COMMENT ON COLUMN "public"."archives_pitfall"."scene" IS '所属专项  燃气爆炸、城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷 ';
COMMENT ON COLUMN "public"."archives_pitfall"."name" IS '隐患名称';
COMMENT ON COLUMN "public"."archives_pitfall"."type" IS '隐患类型  下拉框';
COMMENT ON COLUMN "public"."archives_pitfall"."level" IS '隐患等级 一级、二级、三级、四级';
COMMENT ON COLUMN "public"."archives_pitfall"."keyword" IS '关键字';
COMMENT ON COLUMN "public"."archives_pitfall"."annex" IS '档案文件';
COMMENT ON COLUMN "public"."archives_pitfall"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."archives_pitfall"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."archives_pitfall"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."archives_pitfall"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."archives_pitfall"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON COLUMN "public"."archives_pitfall"."is_often" IS '是否高发是,不是';
COMMENT ON COLUMN "public"."archives_pitfall"."area" IS '行政区划梁溪区320213 滨湖区320211...';
COMMENT ON COLUMN "public"."archives_pitfall"."dispose_progress" IS '处置进度(处置状态) 0未处置、1处置中、2已完成';
COMMENT ON COLUMN "public"."archives_pitfall"."hidden_trouble_description" IS '隐患描述';
COMMENT ON TABLE "public"."archives_pitfall" IS '档案管理-事件档案库-隐患档案';

-- ----------------------------
-- Table structure for archives_personnel
-- ----------------------------
DROP TABLE IF EXISTS "public"."archives_personnel";
CREATE TABLE "public"."archives_personnel" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "org_id" varchar(50) COLLATE "pg_catalog"."default",
  "name" varchar(500) COLLATE "pg_catalog"."default",
  "department" varchar(500) COLLATE "pg_catalog"."default",
  "post" varchar(500) COLLATE "pg_catalog"."default",
  "phone" varchar(500) COLLATE "pg_catalog"."default",
  "order_num" varchar(50) COLLATE "pg_catalog"."default",
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1
)
;
COMMENT ON COLUMN "public"."archives_personnel"."id" IS '主键';
COMMENT ON COLUMN "public"."archives_personnel"."org_id" IS '组织id';
COMMENT ON COLUMN "public"."archives_personnel"."name" IS '姓名';
COMMENT ON COLUMN "public"."archives_personnel"."department" IS '部门';
COMMENT ON COLUMN "public"."archives_personnel"."post" IS '岗位';
COMMENT ON COLUMN "public"."archives_personnel"."phone" IS '联系方式';
COMMENT ON COLUMN "public"."archives_personnel"."order_num" IS '排序';
COMMENT ON COLUMN "public"."archives_personnel"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."archives_personnel"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."archives_personnel"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."archives_personnel"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."archives_personnel"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON TABLE "public"."archives_personnel" IS '档案管理-联动通讯录-组织';

-- ----------------------------
-- Table structure for archives_organization
-- ----------------------------
DROP TABLE IF EXISTS "public"."archives_organization";
CREATE TABLE "public"."archives_organization" (
  "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "name" varchar(500) COLLATE "pg_catalog"."default",
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1
)
;
COMMENT ON COLUMN "public"."archives_organization"."id" IS '主键';
COMMENT ON COLUMN "public"."archives_organization"."name" IS '组织名称';
COMMENT ON COLUMN "public"."archives_organization"."create_time" IS '数据创建日期';
COMMENT ON COLUMN "public"."archives_organization"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."archives_organization"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."archives_organization"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."archives_organization"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON TABLE "public"."archives_organization" IS '档案管理-联动通讯录-组织';

-- ----------------------------
-- Table structure for archives_event
-- ----------------------------
DROP TABLE IF EXISTS "public"."archives_event";
CREATE TABLE "public"."archives_event" (
  "id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  "scene" varchar(50) COLLATE "pg_catalog"."default",
  "name" varchar(500) COLLATE "pg_catalog"."default",
  "type" varchar(50) COLLATE "pg_catalog"."default",
  "level" varchar(50) COLLATE "pg_catalog"."default",
  "keyword" text COLLATE "pg_catalog"."default",
  "annex" varchar(500) COLLATE "pg_catalog"."default",
  "create_time" timestamp(6),
  "create_user" varchar(50) COLLATE "pg_catalog"."default",
  "update_time" timestamp(6),
  "update_user" varchar(50) COLLATE "pg_catalog"."default",
  "del_flag" int4 DEFAULT 1,
  "is_often" varchar(2) COLLATE "pg_catalog"."default",
  "area" varchar(16) COLLATE "pg_catalog"."default",
  "dispose_progress" varchar(16) COLLATE "pg_catalog"."default",
  "emergency_description" varchar(1000) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."archives_event"."id" IS '主键';
COMMENT ON COLUMN "public"."archives_event"."scene" IS '所属专项  燃气爆炸、城市内涝、供水爆管、第三方破坏、地下管线、桥梁倒塌、道路塌陷 ';
COMMENT ON COLUMN "public"."archives_event"."name" IS '事件名称';
COMMENT ON COLUMN "public"."archives_event"."type" IS '事件类型  下拉框';
COMMENT ON COLUMN "public"."archives_event"."level" IS '事件等级 一级、二级、三级、四级';
COMMENT ON COLUMN "public"."archives_event"."keyword" IS '关键字';
COMMENT ON COLUMN "public"."archives_event"."annex" IS '档案文件';
COMMENT ON COLUMN "public"."archives_event"."create_time" IS '数据创建日期/存档时间';
COMMENT ON COLUMN "public"."archives_event"."create_user" IS '数据创建人员';
COMMENT ON COLUMN "public"."archives_event"."update_time" IS '数据更新日期';
COMMENT ON COLUMN "public"."archives_event"."update_user" IS '数据更新人员';
COMMENT ON COLUMN "public"."archives_event"."del_flag" IS '逻辑删除状态 无效：0 有效：1';
COMMENT ON COLUMN "public"."archives_event"."is_often" IS '是否高发是,不是';
COMMENT ON COLUMN "public"."archives_event"."area" IS '行政区划';
COMMENT ON COLUMN "public"."archives_event"."dispose_progress" IS '处置进度(处置状态) 0未处置、1处置中、2已完成';
COMMENT ON COLUMN "public"."archives_event"."emergency_description" IS '事件说明';
COMMENT ON TABLE "public"."archives_event" IS '档案管理-事件档案库-事件档案';

-- ----------------------------
-- Primary Key structure for table 作废sg_jg_dsfsgxmxx
-- ----------------------------
ALTER TABLE "public"."作废sg_jg_dsfsgxmxx" ADD CONSTRAINT "sg_jg_dsfsgxmxx_copy1_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table zy_js_zdwxy
-- ----------------------------
ALTER TABLE "public"."zy_js_zdwxy" ADD CONSTRAINT "zy_js_zdwxy_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table zy_js_ylwsjg
-- ----------------------------
ALTER TABLE "public"."zy_js_ylwsjg" ADD CONSTRAINT "zy_js_ylwsjg_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table zy_js_yjzj
-- ----------------------------
ALTER TABLE "public"."zy_js_yjzj" ADD CONSTRAINT "zy_js_yjzj_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table zy_js_yjwz
-- ----------------------------
ALTER TABLE "public"."zy_js_yjwz" ADD CONSTRAINT "zy_js_yjwz_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table zy_js_jydw
-- ----------------------------
ALTER TABLE "public"."zy_js_jydw" ADD CONSTRAINT "zy_js_jydw_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table zy_js_ck
-- ----------------------------
ALTER TABLE "public"."zy_js_ck" ADD CONSTRAINT "zy_js_ck_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table zy_js_bncs
-- ----------------------------
ALTER TABLE "public"."zy_js_bncs" ADD CONSTRAINT "zy_js_bncs_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table zhjg_repair_bill
-- ----------------------------
ALTER TABLE "public"."zhjg_repair_bill" ADD CONSTRAINT "zhjg_repair_bill_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table zhjg_rcwhwx
-- ----------------------------
ALTER TABLE "public"."zhjg_rcwhwx" ADD CONSTRAINT "zhjg_rcwhwx_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table zhjg_analysis_point_rel
-- ----------------------------
CREATE UNIQUE INDEX "zhjg_analysis_point_rel_id_idx" ON "public"."zhjg_analysis_point_rel" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table zhjg_analysis_point_rel
-- ----------------------------
ALTER TABLE "public"."zhjg_analysis_point_rel" ADD CONSTRAINT "zhjg_analysis_point_rel_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table zhjg_analysis_monitoring_equipment
-- ----------------------------
ALTER TABLE "public"."zhjg_analysis_monitoring_equipment" ADD CONSTRAINT "zhjg_analysis_monitoring_equipment_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table zhjg_analysis_monitor_point
-- ----------------------------
CREATE UNIQUE INDEX "zhjg_analysis_monitor_point_id_idx" ON "public"."zhjg_analysis_monitor_point" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table zhjg_analysis_monitor_point
-- ----------------------------
ALTER TABLE "public"."zhjg_analysis_monitor_point" ADD CONSTRAINT "zhjg_analysis_monitor_point_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table zhjg_analysis_hidden_trouble
-- ----------------------------
ALTER TABLE "public"."zhjg_analysis_hidden_trouble" ADD CONSTRAINT "zhjg_analysis_hidden_trouble_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table zhjg_analysis_facility_lifeline
-- ----------------------------
ALTER TABLE "public"."zhjg_analysis_facility_lifeline" ADD CONSTRAINT "zhjg_analysis_facility_copy1_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table zhjg_analysis_facility
-- ----------------------------
ALTER TABLE "public"."zhjg_analysis_facility" ADD CONSTRAINT "zhjg_analysis_facility_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table zhjg_analysis_emergency
-- ----------------------------
ALTER TABLE "public"."zhjg_analysis_emergency" ADD CONSTRAINT "zhjg_analysis_emergency_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table work_order_info
-- ----------------------------
ALTER TABLE "public"."work_order_info" ADD CONSTRAINT "work_order_info_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table work_order_admin
-- ----------------------------
ALTER TABLE "public"."work_order_admin" ADD CONSTRAINT "work_order_admin_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table warning_info_lifeline
-- ----------------------------
ALTER TABLE "public"."warning_info_lifeline" ADD CONSTRAINT "warning_info_copy1_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table warning_info
-- ----------------------------
CREATE INDEX "warning_info_table_name_idx" ON "public"."warning_info" USING btree (
  "table_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Triggers structure for table warning_info
-- ----------------------------
CREATE TRIGGER "before_insert_set_timely_status" BEFORE INSERT ON "public"."warning_info"
FOR EACH ROW
EXECUTE PROCEDURE "public"."set_timely_status_before_insert"();

-- ----------------------------
-- Primary Key structure for table warning_info
-- ----------------------------
ALTER TABLE "public"."warning_info" ADD CONSTRAINT "warning_info_copy1_pkey1" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table video_channel
-- ----------------------------
ALTER TABLE "public"."video_channel" ADD CONSTRAINT "video_channel_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table us_rules
-- ----------------------------
ALTER TABLE "public"."us_rules" ADD CONSTRAINT "pk_us_rules" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table us_lex
-- ----------------------------
ALTER TABLE "public"."us_lex" ADD CONSTRAINT "pk_us_lex" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table us_gaz
-- ----------------------------
ALTER TABLE "public"."us_gaz" ADD CONSTRAINT "pk_us_gaz" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table third_party_stage_route
-- ----------------------------
ALTER TABLE "public"."third_party_stage_route" ADD CONSTRAINT "third_party_stage_route_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table third_party_layer_route
-- ----------------------------
ALTER TABLE "public"."third_party_layer_route" ADD CONSTRAINT "third_party_layer_route_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table third_party_layer_info
-- ----------------------------
ALTER TABLE "public"."third_party_layer_info" ADD CONSTRAINT "third_party_layer_info_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table tag_info
-- ----------------------------
ALTER TABLE "public"."tag_info" ADD CONSTRAINT "tag_info_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table tag_category_info
-- ----------------------------
ALTER TABLE "public"."tag_category_info" ADD CONSTRAINT "tag_category_info_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table sync_table_time
-- ----------------------------
ALTER TABLE "public"."sync_table_time" ADD CONSTRAINT "sync_table_time_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Checks structure for table spatial_ref_sys
-- ----------------------------
ALTER TABLE "public"."spatial_ref_sys" ADD CONSTRAINT "spatial_ref_sys_srid_check" CHECK (srid > 0 AND srid <= 998999);

-- ----------------------------
-- Primary Key structure for table spatial_ref_sys
-- ----------------------------
ALTER TABLE "public"."spatial_ref_sys" ADD CONSTRAINT "spatial_ref_sys_pkey" PRIMARY KEY ("srid");

-- ----------------------------
-- Indexes structure for table social_public_training
-- ----------------------------
CREATE UNIQUE INDEX "social_public_training_id_idx" ON "public"."social_public_training" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table social_public_training
-- ----------------------------
ALTER TABLE "public"."social_public_training" ADD CONSTRAINT "social_public_training_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table social_public_train_plan_dtl
-- ----------------------------
CREATE UNIQUE INDEX "social_public_train_plan_dtl_id_idx" ON "public"."social_public_train_plan_dtl" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table social_public_train_plan_dtl
-- ----------------------------
ALTER TABLE "public"."social_public_train_plan_dtl" ADD CONSTRAINT "social_public_train_plan_dtl_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table social_public_train_plan
-- ----------------------------
CREATE UNIQUE INDEX "social_public_train_plan_id_idx" ON "public"."social_public_train_plan" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table social_public_train_plan
-- ----------------------------
ALTER TABLE "public"."social_public_train_plan" ADD CONSTRAINT "social_public_train_plan_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Uniques structure for table social_public_notice_read
-- ----------------------------
ALTER TABLE "public"."social_public_notice_read" ADD CONSTRAINT "social_public_notice_read_source_id_user_id_key" UNIQUE ("source_id", "user_id");

-- ----------------------------
-- Primary Key structure for table social_public_notice_read
-- ----------------------------
ALTER TABLE "public"."social_public_notice_read" ADD CONSTRAINT "message_read_copy1_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table social_public_notice
-- ----------------------------
CREATE UNIQUE INDEX "social_public_notice_id_idx" ON "public"."social_public_notice" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table social_public_notice
-- ----------------------------
ALTER TABLE "public"."social_public_notice" ADD CONSTRAINT "social_public_notice_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table social_public_feedback
-- ----------------------------
CREATE UNIQUE INDEX "social_public_feedback_id_idx" ON "public"."social_public_feedback" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table social_public_feedback
-- ----------------------------
ALTER TABLE "public"."social_public_feedback" ADD CONSTRAINT "social_public_feedback_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table social_public_case
-- ----------------------------
CREATE UNIQUE INDEX "social_public_case_id_idx" ON "public"."social_public_case" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table social_public_case
-- ----------------------------
ALTER TABLE "public"."social_public_case" ADD CONSTRAINT "social_public_case_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table sms_record
-- ----------------------------
ALTER TABLE "public"."sms_record" ADD CONSTRAINT "sms_record_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table sg_js_jcd
-- ----------------------------
ALTER TABLE "public"."sg_js_jcd" ADD CONSTRAINT "sg_js_jcd_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table sg_jg_xmxx
-- ----------------------------
ALTER TABLE "public"."sg_jg_xmxx" ADD CONSTRAINT "sg_jg_xmxx_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table sg_jg_lhcj
-- ----------------------------
ALTER TABLE "public"."sg_jg_lhcj" ADD CONSTRAINT "sg_jg_lhcj_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table sg_jg_dsfsglhcj
-- ----------------------------
ALTER TABLE "public"."sg_jg_dsfsglhcj" ADD CONSTRAINT "sg_jg_dsfsglhcj_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table sg_jc_jcxyz
-- ----------------------------
ALTER TABLE "public"."sg_jc_jcxyz" ADD CONSTRAINT "sg_jc_jcxyz_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table sg_jc_jcsb
-- ----------------------------
ALTER TABLE "public"."sg_jc_jcsb" ADD CONSTRAINT "sg_jc_jcsb_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table send_expert
-- ----------------------------
ALTER TABLE "public"."send_expert" ADD CONSTRAINT "send_expert_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table rq_js_rqyh
-- ----------------------------
ALTER TABLE "public"."rq_js_rqyh" ADD CONSTRAINT "rq_js_rqyh_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table rq_js_jcd
-- ----------------------------
ALTER TABLE "public"."rq_js_jcd" ADD CONSTRAINT "rq_js_jcd_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table rq_jg_zgjl
-- ----------------------------
ALTER TABLE "public"."rq_jg_zgjl" ADD CONSTRAINT "rq_jg_zgjl_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table rq_jg_fxpg
-- ----------------------------
ALTER TABLE "public"."rq_jg_fxpg" ADD CONSTRAINT "rq_jg_fxpg_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table rq_jc_jcsb
-- ----------------------------
ALTER TABLE "public"."rq_jc_jcsb" ADD CONSTRAINT "rq_jc_jcsb_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table ql_js_ql
-- ----------------------------
ALTER TABLE "public"."ql_js_ql" ADD CONSTRAINT "ql_js_ql_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table ql_js_jcd
-- ----------------------------
ALTER TABLE "public"."ql_js_jcd" ADD CONSTRAINT "ql_js_jcd_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table ql_jc_jcxyz
-- ----------------------------
ALTER TABLE "public"."ql_jc_jcxyz" ADD CONSTRAINT "ql_jc_jcxyz_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table ql_jc_jcsb
-- ----------------------------
ALTER TABLE "public"."ql_jc_jcsb" ADD CONSTRAINT "ql_jc_jcsb_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table public_report_hidden_trouble_lifeline
-- ----------------------------
ALTER TABLE "public"."public_report_hidden_trouble_lifeline" ADD CONSTRAINT "zhjg_analysis_hidden_trouble_copy1_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table ps_js_xxtd
-- ----------------------------
ALTER TABLE "public"."ps_js_xxtd" ADD CONSTRAINT "ps_js_xxtd_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table ps_js_psh
-- ----------------------------
ALTER TABLE "public"."ps_js_psh" ADD CONSTRAINT "ps_js_psh_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table ps_js_jcd
-- ----------------------------
ALTER TABLE "public"."ps_js_jcd" ADD CONSTRAINT "ps_js_jcd_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table ps_jc_jcxyz
-- ----------------------------
ALTER TABLE "public"."ps_jc_jcxyz" ADD CONSTRAINT "ps_jc_jcxyz_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table ps_jc_jcsb
-- ----------------------------
ALTER TABLE "public"."ps_jc_jcsb" ADD CONSTRAINT "ps_jc_jcsb_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Indexes structure for table operation_maintain_platform
-- ----------------------------
CREATE UNIQUE INDEX "operation_maintain_platform_id_idx" ON "public"."operation_maintain_platform" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table operation_maintain_platform
-- ----------------------------
ALTER TABLE "public"."operation_maintain_platform" ADD CONSTRAINT "operation_maintain_platform_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table operation_maintain_performance
-- ----------------------------
CREATE UNIQUE INDEX "operation_maintain_performance_id_idx" ON "public"."operation_maintain_performance" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table operation_maintain_performance
-- ----------------------------
ALTER TABLE "public"."operation_maintain_performance" ADD CONSTRAINT "operation_maintain_performance_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table operation_maintain_assets
-- ----------------------------
CREATE UNIQUE INDEX "operation_maintain_assets_id_idx" ON "public"."operation_maintain_assets" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table operation_maintain_assets
-- ----------------------------
ALTER TABLE "public"."operation_maintain_assets" ADD CONSTRAINT "operation_maintain_assets_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table message_read
-- ----------------------------
ALTER TABLE "public"."message_read" ADD CONSTRAINT "notice_read_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table manager_organization
-- ----------------------------
ALTER TABLE "public"."manager_organization" ADD CONSTRAINT "manager_organization_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table local_dict_jcss
-- ----------------------------
ALTER TABLE "public"."local_dict_jcss" ADD CONSTRAINT "local_dict_jcss_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table local_dict
-- ----------------------------
ALTER TABLE "public"."local_dict" ADD CONSTRAINT "local_dict_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table linkage_coordinate_send
-- ----------------------------
ALTER TABLE "public"."linkage_coordinate_send" ADD CONSTRAINT "linkage_coordinate_send_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table linkage_coordinate
-- ----------------------------
ALTER TABLE "public"."linkage_coordinate" ADD CONSTRAINT "linkage_coordinate_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table jg_zdgz
-- ----------------------------
CREATE UNIQUE INDEX "jg_zdgz_id_idx" ON "public"."jg_zdgz" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table jg_zdgz
-- ----------------------------
ALTER TABLE "public"."jg_zdgz" ADD CONSTRAINT "jg_zdgz_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table jg_yqgl
-- ----------------------------
CREATE UNIQUE INDEX "jg_yqgl_id_idx" ON "public"."jg_yqgl" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table jg_yqgl
-- ----------------------------
ALTER TABLE "public"."jg_yqgl" ADD CONSTRAINT "jg_yqgl_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table jg_yhjl_fj
-- ----------------------------
ALTER TABLE "public"."jg_yhjl_fj" ADD CONSTRAINT "jg_yhjl_fj_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table jg_yhjl
-- ----------------------------
CREATE UNIQUE INDEX "jg_yhjl_id_idx" ON "public"."jg_yhjl" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table jg_yhjl
-- ----------------------------
ALTER TABLE "public"."jg_yhjl" ADD CONSTRAINT "jg_yhjl_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table jcss_txss
-- ----------------------------
ALTER TABLE "public"."jcss_txss" ADD CONSTRAINT "jcss_txss_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table jcss_rqgx
-- ----------------------------
ALTER TABLE "public"."jcss_rqgx" ADD CONSTRAINT "jcss_rqgx_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table jcss_rqgd
-- ----------------------------
ALTER TABLE "public"."jcss_rqgd" ADD CONSTRAINT "jcss_rqgd_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table jcss_rqcz
-- ----------------------------
ALTER TABLE "public"."jcss_rqcz" ADD CONSTRAINT "jcss_rqcz_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table jcss_pspk
-- ----------------------------
ALTER TABLE "public"."jcss_pspk" ADD CONSTRAINT "jcss_pspk_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table jcss_psgx
-- ----------------------------
ALTER TABLE "public"."jcss_psgx" ADD CONSTRAINT "jcss_psgx_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table jcss_psgd
-- ----------------------------
ALTER TABLE "public"."jcss_psgd" ADD CONSTRAINT "jcss_psgd_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table jcss_pscz
-- ----------------------------
ALTER TABLE "public"."jcss_pscz" ADD CONSTRAINT "jcss_pscz_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table jcss_jlss
-- ----------------------------
ALTER TABLE "public"."jcss_jlss" ADD CONSTRAINT "jcss_jlss_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table jcss_gscz
-- ----------------------------
ALTER TABLE "public"."jcss_gscz" ADD CONSTRAINT "jcss_gscz_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table industry_supervision_supervise_process
-- ----------------------------
ALTER TABLE "public"."industry_supervision_supervise_process" ADD CONSTRAINT "industry_supervision_supervise_process_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table industry_supervision_supervise
-- ----------------------------
CREATE UNIQUE INDEX "industry_supervision_supervise_id_idx" ON "public"."industry_supervision_supervise" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table industry_supervision_supervise
-- ----------------------------
ALTER TABLE "public"."industry_supervision_supervise" ADD CONSTRAINT "industry_supervision_supervise_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table industry_supervision_scheme_resource
-- ----------------------------
ALTER TABLE "public"."industry_supervision_scheme_resource" ADD CONSTRAINT "industry_supervision_scheme_resource_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table industry_supervision_scheme_node
-- ----------------------------
ALTER TABLE "public"."industry_supervision_scheme_node" ADD CONSTRAINT "industry_supervision_scheme_node_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table industry_supervision_scheme
-- ----------------------------
CREATE UNIQUE INDEX "industry_supervision_scheme_id_idx" ON "public"."industry_supervision_scheme" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table industry_supervision_scheme
-- ----------------------------
ALTER TABLE "public"."industry_supervision_scheme" ADD CONSTRAINT "industry_supervision_scheme_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table industry_supervision_report
-- ----------------------------
CREATE UNIQUE INDEX "industry_supervision_report_id_idx" ON "public"."industry_supervision_report" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table industry_supervision_report
-- ----------------------------
ALTER TABLE "public"."industry_supervision_report" ADD CONSTRAINT "industry_supervision_report_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table industry_supervision_plan_lifeline
-- ----------------------------
ALTER TABLE "public"."industry_supervision_plan_lifeline" ADD CONSTRAINT "industry_supervision_plan_copy1_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table industry_supervision_plan
-- ----------------------------
CREATE UNIQUE INDEX "industry_supervision_plan_id_idx" ON "public"."industry_supervision_plan" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table industry_supervision_plan
-- ----------------------------
ALTER TABLE "public"."industry_supervision_plan" ADD CONSTRAINT "industry_supervision_plan_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table industry_supervision_patrol_plan_dtl
-- ----------------------------
CREATE UNIQUE INDEX "industry_supervision_patrol_plan_dtl_id_idx" ON "public"."industry_supervision_patrol_plan_dtl" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table industry_supervision_patrol_plan_dtl
-- ----------------------------
ALTER TABLE "public"."industry_supervision_patrol_plan_dtl" ADD CONSTRAINT "industry_supervision_patrol_plan_dtl_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table industry_supervision_patrol_plan
-- ----------------------------
CREATE UNIQUE INDEX "industry_supervision_patrol_plan_id_idx" ON "public"."industry_supervision_patrol_plan" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table industry_supervision_patrol_plan
-- ----------------------------
ALTER TABLE "public"."industry_supervision_patrol_plan" ADD CONSTRAINT "industry_supervision_patrol_plan_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table industry_supervision_patrol
-- ----------------------------
CREATE UNIQUE INDEX "industry_supervision_patrol_id_idx" ON "public"."industry_supervision_patrol" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table industry_supervision_patrol
-- ----------------------------
ALTER TABLE "public"."industry_supervision_patrol" ADD CONSTRAINT "industry_supervision_patrol_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table industry_supervision_knowledge
-- ----------------------------
CREATE UNIQUE INDEX "industry_supervision_knowledge_id_idx" ON "public"."industry_supervision_knowledge" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table industry_supervision_knowledge
-- ----------------------------
ALTER TABLE "public"."industry_supervision_knowledge" ADD CONSTRAINT "industry_supervision_knowledge_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table industry_supervision_evaluate
-- ----------------------------
CREATE UNIQUE INDEX "industry_supervision_evaluate_id_idx" ON "public"."industry_supervision_evaluate" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table industry_supervision_evaluate
-- ----------------------------
ALTER TABLE "public"."industry_supervision_evaluate" ADD CONSTRAINT "industry_supervision_evaluate_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table industry_supervision_drill
-- ----------------------------
CREATE UNIQUE INDEX "industry_supervision_drill_id_idx" ON "public"."industry_supervision_drill" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table industry_supervision_drill
-- ----------------------------
ALTER TABLE "public"."industry_supervision_drill" ADD CONSTRAINT "industry_supervision_drill_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table industry_supervision_data
-- ----------------------------
CREATE UNIQUE INDEX "industry_supervision_data_id_idx" ON "public"."industry_supervision_data" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table industry_supervision_data
-- ----------------------------
ALTER TABLE "public"."industry_supervision_data" ADD CONSTRAINT "industry_supervision_data_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table holiday_management
-- ----------------------------
ALTER TABLE "public"."holiday_management" ADD CONSTRAINT "holiday_management_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table gs_js_jcd
-- ----------------------------
ALTER TABLE "public"."gs_js_jcd" ADD CONSTRAINT "gs_js_jcd_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table gs_jc_jcxyz
-- ----------------------------
ALTER TABLE "public"."gs_jc_jcxyz" ADD CONSTRAINT "gs_jc_jcxyz_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table gs_jc_jcsb
-- ----------------------------
ALTER TABLE "public"."gs_jc_jcsb" ADD CONSTRAINT "gs_jc_jcsb_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table duty_management_type
-- ----------------------------
ALTER TABLE "public"."duty_management_type" ADD CONSTRAINT "duty_management_type_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table duty_management
-- ----------------------------
ALTER TABLE "public"."duty_management" ADD CONSTRAINT "duty_management_copy1_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table dl_js_csdl
-- ----------------------------
ALTER TABLE "public"."dl_js_csdl" ADD CONSTRAINT "dl_js_csdl_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table dl_jc_dltxfx
-- ----------------------------
ALTER TABLE "public"."dl_jc_dltxfx" ADD CONSTRAINT "dl_jc_dltxfx_pkey" PRIMARY KEY ("bsm");

-- ----------------------------
-- Primary Key structure for table demo_class
-- ----------------------------
ALTER TABLE "public"."demo_class" ADD CONSTRAINT "demo_class_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table change_duty_management
-- ----------------------------
ALTER TABLE "public"."change_duty_management" ADD CONSTRAINT "change_duty_management_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Primary Key structure for table business_tag_info
-- ----------------------------
ALTER TABLE "public"."business_tag_info" ADD CONSTRAINT "business_tag_info_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table archives_risk
-- ----------------------------
CREATE UNIQUE INDEX "archives_risk_id_idx" ON "public"."archives_risk" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table archives_risk
-- ----------------------------
ALTER TABLE "public"."archives_risk" ADD CONSTRAINT "archives_risk_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table archives_pitfall
-- ----------------------------
CREATE UNIQUE INDEX "archives_pitfall_id_idx" ON "public"."archives_pitfall" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table archives_pitfall
-- ----------------------------
ALTER TABLE "public"."archives_pitfall" ADD CONSTRAINT "archives_pitfall_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table archives_personnel
-- ----------------------------
CREATE UNIQUE INDEX "archives_personnel_id_idx" ON "public"."archives_personnel" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table archives_personnel
-- ----------------------------
ALTER TABLE "public"."archives_personnel" ADD CONSTRAINT "archives_personnel_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table archives_organization
-- ----------------------------
CREATE UNIQUE INDEX "archives_organization_id_idx" ON "public"."archives_organization" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table archives_organization
-- ----------------------------
ALTER TABLE "public"."archives_organization" ADD CONSTRAINT "archives_organization_pk" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table archives_event
-- ----------------------------
CREATE UNIQUE INDEX "archives_event_id_idx" ON "public"."archives_event" USING btree (
  "id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table archives_event
-- ----------------------------
ALTER TABLE "public"."archives_event" ADD CONSTRAINT "archives_event_pk" PRIMARY KEY ("id");
