/*
PostgreSQL Backup
Database: idsse_rescue/public
Backup Time: 2025-10-31 16:28:00
*/

DROP SEQUENCE IF EXISTS "public"."hme_frame_dept_dept_id_seq";
DROP SEQUENCE IF EXISTS "public"."hme_frame_optr_optr_id_seq";
DROP SEQUENCE IF EXISTS "public"."hme_frame_role_role_id_seq";
DROP SEQUENCE IF EXISTS "public"."rescue_file_tsy_id_seq";
DROP SEQUENCE IF EXISTS "public"."rescue_reg_sample_tsy_id_seq";
DROP SEQUENCE IF EXISTS "public"."rescue_reg_tsy_id_seq";
DROP TABLE IF EXISTS "public"."hme_frame_dept";
DROP TABLE IF EXISTS "public"."hme_frame_dict";
DROP TABLE IF EXISTS "public"."hme_frame_dict_name";
DROP TABLE IF EXISTS "public"."hme_frame_language";
DROP TABLE IF EXISTS "public"."hme_frame_optr";
DROP TABLE IF EXISTS "public"."hme_frame_optr_log";
DROP TABLE IF EXISTS "public"."hme_frame_optr_login";
DROP TABLE IF EXISTS "public"."hme_frame_optr_role";
DROP TABLE IF EXISTS "public"."hme_frame_param";
DROP TABLE IF EXISTS "public"."hme_frame_res";
DROP TABLE IF EXISTS "public"."hme_frame_role";
DROP TABLE IF EXISTS "public"."hme_frame_role_res";
DROP TABLE IF EXISTS "public"."rescue_reg";
DROP TABLE IF EXISTS "public"."rescue_reg_file";
DROP TABLE IF EXISTS "public"."rescue_reg_sample";
CREATE SEQUENCE "hme_frame_dept_dept_id_seq" 
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
CACHE 1;
CREATE SEQUENCE "hme_frame_optr_optr_id_seq" 
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
CACHE 1;
CREATE SEQUENCE "hme_frame_role_role_id_seq" 
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
CACHE 1;
CREATE SEQUENCE "rescue_file_tsy_id_seq" 
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
CACHE 1;
CREATE SEQUENCE "rescue_reg_sample_tsy_id_seq" 
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
CACHE 1;
CREATE SEQUENCE "rescue_reg_tsy_id_seq" 
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
CACHE 1;
CREATE TABLE "hme_frame_dept" (
  "dept_id" int4 NOT NULL GENERATED BY DEFAULT AS IDENTITY (
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
),
  "dept_name" varchar(64) COLLATE "pg_catalog"."default",
  "dept_desc" varchar(254) COLLATE "pg_catalog"."default",
  "dept_pid" int4,
  "dept_manager" varchar(254) COLLATE "pg_catalog"."default",
  "dept_addr" varchar(255) COLLATE "pg_catalog"."default",
  "dept_tel" varchar(64) COLLATE "pg_catalog"."default",
  "dept_fax" varchar(64) COLLATE "pg_catalog"."default",
  "dept_code" varchar(64) COLLATE "pg_catalog"."default",
  "dept_level" int4,
  "dept_param" varchar(256) COLLATE "pg_catalog"."default"
)
;
ALTER TABLE "hme_frame_dept" OWNER TO "postgres";
COMMENT ON COLUMN "hme_frame_dept"."dept_id" IS '部门编号';
COMMENT ON COLUMN "hme_frame_dept"."dept_name" IS '部门名称';
COMMENT ON COLUMN "hme_frame_dept"."dept_desc" IS '备注信息';
COMMENT ON COLUMN "hme_frame_dept"."dept_pid" IS '部门上级部门';
COMMENT ON COLUMN "hme_frame_dept"."dept_manager" IS '部门经理';
COMMENT ON COLUMN "hme_frame_dept"."dept_addr" IS '部门地址';
COMMENT ON COLUMN "hme_frame_dept"."dept_tel" IS '部门联系电话';
COMMENT ON COLUMN "hme_frame_dept"."dept_fax" IS '部门传真';
COMMENT ON COLUMN "hme_frame_dept"."dept_code" IS '部门编号';
COMMENT ON COLUMN "hme_frame_dept"."dept_level" IS '部门级别';
COMMENT ON COLUMN "hme_frame_dept"."dept_param" IS '部门参数';
COMMENT ON TABLE "hme_frame_dept" IS '系统表-部门信息';
CREATE TABLE "hme_frame_dict" (
  "dict_name" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "dict_value" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
  "dict_text" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
  "dict_order" int4
)
;
ALTER TABLE "hme_frame_dict" OWNER TO "postgres";
COMMENT ON COLUMN "hme_frame_dict"."dict_name" IS '字典名称';
COMMENT ON COLUMN "hme_frame_dict"."dict_value" IS '字典值';
COMMENT ON COLUMN "hme_frame_dict"."dict_text" IS '字典中文名称';
COMMENT ON COLUMN "hme_frame_dict"."dict_order" IS '字典排序';
COMMENT ON TABLE "hme_frame_dict" IS '系统表-字典定义';
CREATE TABLE "hme_frame_dict_name" (
  "dict_name" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  "dict_group" varchar(32) COLLATE "pg_catalog"."default",
  "dict_note" varchar(128) COLLATE "pg_catalog"."default",
  "dict_modify" varchar(1) COLLATE "pg_catalog"."default"
)
;
ALTER TABLE "hme_frame_dict_name" OWNER TO "postgres";
COMMENT ON COLUMN "hme_frame_dict_name"."dict_name" IS '字典类型';
COMMENT ON COLUMN "hme_frame_dict_name"."dict_group" IS '字典分离';
COMMENT ON COLUMN "hme_frame_dict_name"."dict_note" IS '字典描述信息';
COMMENT ON COLUMN "hme_frame_dict_name"."dict_modify" IS '是否运行修改';
COMMENT ON TABLE "hme_frame_dict_name" IS '系统表-字典类型定义';
CREATE TABLE "hme_frame_language" (
  "lang_key" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
  "lang_client" varchar(1) COLLATE "pg_catalog"."default",
  "lang_name" varchar(32) COLLATE "pg_catalog"."default",
  "lang_ch" varchar(1024) COLLATE "pg_catalog"."default",
  "lang_en" varchar(1024) COLLATE "pg_catalog"."default"
)
;
ALTER TABLE "hme_frame_language" OWNER TO "postgres";
COMMENT ON COLUMN "hme_frame_language"."lang_key" IS '配置名称';
COMMENT ON COLUMN "hme_frame_language"."lang_client" IS '是否是前端，0不是，1，是';
COMMENT ON COLUMN "hme_frame_language"."lang_name" IS '配置说明';
COMMENT ON COLUMN "hme_frame_language"."lang_ch" IS '中文';
COMMENT ON COLUMN "hme_frame_language"."lang_en" IS '英文';
COMMENT ON TABLE "hme_frame_language" IS '系统表-语言定义';
CREATE TABLE "hme_frame_optr" (
  "optr_id" int4 NOT NULL GENERATED BY DEFAULT AS IDENTITY (
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
),
  "optr_name" varchar(64) COLLATE "pg_catalog"."default",
  "login_name" varchar(64) COLLATE "pg_catalog"."default",
  "login_pass" varchar(128) COLLATE "pg_catalog"."default",
  "optr_alias" varchar(32) COLLATE "pg_catalog"."default",
  "optr_sex" varchar(32) COLLATE "pg_catalog"."default",
  "optr_status" varchar(32) COLLATE "pg_catalog"."default",
  "optr_email" varchar(128) COLLATE "pg_catalog"."default",
  "optr_mobile" varchar(32) COLLATE "pg_catalog"."default",
  "optr_tel" varchar(32) COLLATE "pg_catalog"."default",
  "optr_addr" varchar(256) COLLATE "pg_catalog"."default",
  "optr_fax" varchar(32) COLLATE "pg_catalog"."default",
  "optr_dept" int4,
  "optr_post" varchar(16) COLLATE "pg_catalog"."default",
  "optr_level" int4,
  "optr_desc" varchar(256) COLLATE "pg_catalog"."default",
  "optr_image" varchar(256) COLLATE "pg_catalog"."default",
  "optr_param" varchar(256) COLLATE "pg_catalog"."default"
)
;
ALTER TABLE "hme_frame_optr" OWNER TO "postgres";
COMMENT ON COLUMN "hme_frame_optr"."optr_id" IS '内部编号';
COMMENT ON COLUMN "hme_frame_optr"."optr_name" IS '操作员名称';
COMMENT ON COLUMN "hme_frame_optr"."login_name" IS '登录名称，唯一';
COMMENT ON COLUMN "hme_frame_optr"."login_pass" IS '登录密码,MD5加密';
COMMENT ON COLUMN "hme_frame_optr"."optr_alias" IS '别名';
COMMENT ON COLUMN "hme_frame_optr"."optr_sex" IS '操作员性别，FrameSex';
COMMENT ON COLUMN "hme_frame_optr"."optr_status" IS '操作员状态，对应FrameStatus';
COMMENT ON COLUMN "hme_frame_optr"."optr_email" IS '电子邮件地址';
COMMENT ON COLUMN "hme_frame_optr"."optr_mobile" IS '联系电话';
COMMENT ON COLUMN "hme_frame_optr"."optr_tel" IS '办公电话';
COMMENT ON COLUMN "hme_frame_optr"."optr_addr" IS '联系地址';
COMMENT ON COLUMN "hme_frame_optr"."optr_fax" IS '传真号码';
COMMENT ON COLUMN "hme_frame_optr"."optr_dept" IS '部门编号';
COMMENT ON COLUMN "hme_frame_optr"."optr_post" IS '邮政编码';
COMMENT ON COLUMN "hme_frame_optr"."optr_level" IS '操作员级别';
COMMENT ON COLUMN "hme_frame_optr"."optr_desc" IS '操作员备注信息';
COMMENT ON COLUMN "hme_frame_optr"."optr_image" IS '操作员照片（存放路径）';
COMMENT ON COLUMN "hme_frame_optr"."optr_param" IS '参数信息';
COMMENT ON TABLE "hme_frame_optr" IS '系统表-操作员信息';
CREATE TABLE "hme_frame_optr_log" (
  "log_id" int4 NOT NULL,
  "optr_id" int4,
  "login_name" varchar(32) COLLATE "pg_catalog"."default",
  "log_type" varchar(32) COLLATE "pg_catalog"."default",
  "log_time" timestamp(6),
  "log_param" text COLLATE "pg_catalog"."default"
)
;
ALTER TABLE "hme_frame_optr_log" OWNER TO "postgres";
COMMENT ON COLUMN "hme_frame_optr_log"."log_id" IS '内部编号';
COMMENT ON COLUMN "hme_frame_optr_log"."optr_id" IS '操作员编号';
COMMENT ON COLUMN "hme_frame_optr_log"."login_name" IS '操作员名称';
COMMENT ON COLUMN "hme_frame_optr_log"."log_type" IS '日志类型';
COMMENT ON COLUMN "hme_frame_optr_log"."log_time" IS '记录日志时间';
COMMENT ON COLUMN "hme_frame_optr_log"."log_param" IS '日志参数';
COMMENT ON TABLE "hme_frame_optr_log" IS '系统表-操作员日志表';
CREATE TABLE "hme_frame_optr_login" (
  "log_id" int4 NOT NULL,
  "optr_id" int4,
  "login_name" varchar(64) COLLATE "pg_catalog"."default",
  "login_time" timestamp(6),
  "browser_type" varchar(128) COLLATE "pg_catalog"."default",
  "browser_version" varchar(256) COLLATE "pg_catalog"."default",
  "platform_type" varchar(256) COLLATE "pg_catalog"."default",
  "platform_series" varchar(256) COLLATE "pg_catalog"."default",
  "platform_version" varchar(256) COLLATE "pg_catalog"."default",
  "login_addr" varchar(256) COLLATE "pg_catalog"."default"
)
;
ALTER TABLE "hme_frame_optr_login" OWNER TO "postgres";
COMMENT ON COLUMN "hme_frame_optr_login"."log_id" IS '登录编号 ';
COMMENT ON COLUMN "hme_frame_optr_login"."optr_id" IS '操作员编号';
COMMENT ON COLUMN "hme_frame_optr_login"."login_name" IS '操作员名称';
COMMENT ON COLUMN "hme_frame_optr_login"."login_time" IS '登录时间';
COMMENT ON COLUMN "hme_frame_optr_login"."browser_type" IS '浏览器类型';
COMMENT ON COLUMN "hme_frame_optr_login"."browser_version" IS '浏览器版本';
COMMENT ON COLUMN "hme_frame_optr_login"."platform_type" IS '操作系统平台';
COMMENT ON COLUMN "hme_frame_optr_login"."platform_series" IS '操作系统类型';
COMMENT ON COLUMN "hme_frame_optr_login"."platform_version" IS '操作系统版本';
COMMENT ON COLUMN "hme_frame_optr_login"."login_addr" IS '登录地址';
COMMENT ON TABLE "hme_frame_optr_login" IS '系统表-操作员登录日志';
CREATE TABLE "hme_frame_optr_role" (
  "optr_id" int4 NOT NULL,
  "role_id" int4 NOT NULL
)
;
ALTER TABLE "hme_frame_optr_role" OWNER TO "postgres";
COMMENT ON COLUMN "hme_frame_optr_role"."optr_id" IS '操作员ID';
COMMENT ON COLUMN "hme_frame_optr_role"."role_id" IS '角色ID';
COMMENT ON TABLE "hme_frame_optr_role" IS '系统表-操作员所属角色表';
CREATE TABLE "hme_frame_param" (
  "param_name" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  "param_value" varchar(1024) COLLATE "pg_catalog"."default",
  "param_status" varchar(1) COLLATE "pg_catalog"."default",
  "param_appname" varchar(32) COLLATE "pg_catalog"."default",
  "param_note" varchar(1024) COLLATE "pg_catalog"."default"
)
;
ALTER TABLE "hme_frame_param" OWNER TO "postgres";
COMMENT ON COLUMN "hme_frame_param"."param_name" IS '参数名称';
COMMENT ON COLUMN "hme_frame_param"."param_value" IS '参数值';
COMMENT ON COLUMN "hme_frame_param"."param_status" IS '参数状态，是否启用，0禁用，1启用';
COMMENT ON COLUMN "hme_frame_param"."param_appname" IS '是否属于哪个软件专用，如果为空，所有软件专用';
COMMENT ON COLUMN "hme_frame_param"."param_note" IS '参数描述，尽可能描述清楚';
COMMENT ON TABLE "hme_frame_param" IS '系统表-系统参数定义';
CREATE TABLE "hme_frame_res" (
  "res_id" int4 NOT NULL,
  "res_name" varchar(64) COLLATE "pg_catalog"."default",
  "res_alias" varchar(64) COLLATE "pg_catalog"."default",
  "res_url" varchar(128) COLLATE "pg_catalog"."default",
  "res_pid" int4,
  "res_level" int4,
  "res_type" varchar(32) COLLATE "pg_catalog"."default",
  "res_css" varchar(128) COLLATE "pg_catalog"."default",
  "res_status" varchar(1) COLLATE "pg_catalog"."default",
  "res_order" int4,
  "res_note" varchar(512) COLLATE "pg_catalog"."default"
)
;
ALTER TABLE "hme_frame_res" OWNER TO "postgres";
COMMENT ON COLUMN "hme_frame_res"."res_id" IS '内部编号';
COMMENT ON COLUMN "hme_frame_res"."res_name" IS '资源名称';
COMMENT ON COLUMN "hme_frame_res"."res_alias" IS '别名，用于前端权限控制';
COMMENT ON COLUMN "hme_frame_res"."res_url" IS '资源的地址';
COMMENT ON COLUMN "hme_frame_res"."res_pid" IS '资源上级ID';
COMMENT ON COLUMN "hme_frame_res"."res_level" IS '资源级别';
COMMENT ON COLUMN "hme_frame_res"."res_type" IS '资源类型,Menu,Fun';
COMMENT ON COLUMN "hme_frame_res"."res_css" IS '资源的样式信息';
COMMENT ON COLUMN "hme_frame_res"."res_status" IS '资源状态';
COMMENT ON COLUMN "hme_frame_res"."res_order" IS '排序';
COMMENT ON COLUMN "hme_frame_res"."res_note" IS '备注信息';
COMMENT ON TABLE "hme_frame_res" IS '系统表-资源定义';
CREATE TABLE "hme_frame_role" (
  "role_id" int4 NOT NULL GENERATED BY DEFAULT AS IDENTITY (
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
),
  "role_name" varchar(64) COLLATE "pg_catalog"."default",
  "role_status" varchar(1) COLLATE "pg_catalog"."default",
  "role_group" varchar(32) COLLATE "pg_catalog"."default",
  "home_homepage" varchar(256) COLLATE "pg_catalog"."default",
  "role_note" varchar(512) COLLATE "pg_catalog"."default"
)
;
ALTER TABLE "hme_frame_role" OWNER TO "postgres";
COMMENT ON COLUMN "hme_frame_role"."role_id" IS '角色内部编号';
COMMENT ON COLUMN "hme_frame_role"."role_name" IS '角色名称';
COMMENT ON COLUMN "hme_frame_role"."role_status" IS '角色状态';
COMMENT ON COLUMN "hme_frame_role"."role_group" IS '角色类型：扩展用';
COMMENT ON COLUMN "hme_frame_role"."home_homepage" IS '角色主页';
COMMENT ON COLUMN "hme_frame_role"."role_note" IS '角色说明';
COMMENT ON TABLE "hme_frame_role" IS '系统表-角色定义';
CREATE TABLE "hme_frame_role_res" (
  "role_id" int4 NOT NULL,
  "res_id" int4 NOT NULL
)
;
ALTER TABLE "hme_frame_role_res" OWNER TO "postgres";
COMMENT ON COLUMN "hme_frame_role_res"."role_id" IS '角色内部编号';
COMMENT ON COLUMN "hme_frame_role_res"."res_id" IS '资源内部编号';
COMMENT ON TABLE "hme_frame_role_res" IS '系统表-角色拥有的资源定义';
CREATE TABLE "rescue_reg" (
  "tsy_id" int4 NOT NULL GENERATED BY DEFAULT AS IDENTITY (
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
),
  "rescue_status" varchar(32) COLLATE "pg_catalog"."default",
  "rescue_status_time" timestamp(6),
  "rescue_status_note" varchar(1024) COLLATE "pg_catalog"."default",
  "rescue_type" varchar(32) COLLATE "pg_catalog"."default",
  "rescue_code" varchar(64) COLLATE "pg_catalog"."default",
  "rescue_target_type" varchar(64) COLLATE "pg_catalog"."default",
  "rescue_target_name" varchar(128) COLLATE "pg_catalog"."default",
  "rescue_target_lon" varchar(32) COLLATE "pg_catalog"."default",
  "rescue_target_lat" varchar(32) COLLATE "pg_catalog"."default",
  "rescue_target_radius" varchar(32) COLLATE "pg_catalog"."default",
  "rescue_target_width" varchar(32) COLLATE "pg_catalog"."default",
  "rescue_target_length" varchar(32) COLLATE "pg_catalog"."default",
  "rescue_target_height" varchar(32) COLLATE "pg_catalog"."default",
  "rescue_air_weight" varchar(32) COLLATE "pg_catalog"."default",
  "rescue_water_weight" varchar(32) COLLATE "pg_catalog"."default",
  "rescue_water_depth" varchar(32) COLLATE "pg_catalog"."default",
  "rescue_target_price" varchar(32) COLLATE "pg_catalog"."default",
  "rescue_response_level" varchar(32) COLLATE "pg_catalog"."default",
  "rescue_secrecy" varchar(32) COLLATE "pg_catalog"."default",
  "rescue_unit" varchar(32) COLLATE "pg_catalog"."default",
  "rescue_response_day" varchar(32) COLLATE "pg_catalog"."default",
  "fill_time" timestamp(6),
  "fill_person" varchar(128) COLLATE "pg_catalog"."default",
  "fill_tel" varchar(128) COLLATE "pg_catalog"."default",
  "rescue_note" varchar(2000) COLLATE "pg_catalog"."default",
  "fill_note" varchar(2000) COLLATE "pg_catalog"."default"
)
;
ALTER TABLE "rescue_reg" OWNER TO "postgres";
COMMENT ON COLUMN "rescue_reg"."tsy_id" IS 'rescue';
COMMENT ON COLUMN "rescue_reg"."rescue_status" IS '状态信息';
COMMENT ON COLUMN "rescue_reg"."rescue_status_time" IS '状态变更时间';
COMMENT ON COLUMN "rescue_reg"."rescue_status_note" IS '状态变更说明';
COMMENT ON COLUMN "rescue_reg"."rescue_type" IS '应急搜捞：SAR  专项调查：SI';
COMMENT ON COLUMN "rescue_reg"."rescue_code" IS '任务类型_目标类别_总序列号:SAR_Wreck_075';
COMMENT ON COLUMN "rescue_reg"."rescue_target_type" IS '如果未知，可填写未知大型沉物：Wreck、锚系类目标Mooring、非合作方目标NCT、其他Other';
COMMENT ON COLUMN "rescue_reg"."rescue_target_name" IS '目标类别按字典管理，分成四大类：大型沉物、锚系类目标、非合作方目标、其他，具体目标名称手动录入
';
COMMENT ON COLUMN "rescue_reg"."rescue_target_lon" IS '给定点的经纬度位置，若给定的是搜寻区域，此处为中心点坐标（经度）';
COMMENT ON COLUMN "rescue_reg"."rescue_target_lat" IS '给定点的经纬度位置，若给定的是搜寻区域，此处为中心点坐标（纬度）';
COMMENT ON COLUMN "rescue_reg"."rescue_target_radius" IS '给定搜寻范围半径';
COMMENT ON COLUMN "rescue_reg"."rescue_target_width" IS '宽度（单位米）';
COMMENT ON COLUMN "rescue_reg"."rescue_target_length" IS '长度（单位米）';
COMMENT ON COLUMN "rescue_reg"."rescue_target_height" IS '高度（单位米）';
COMMENT ON COLUMN "rescue_reg"."rescue_air_weight" IS '搜寻处置目标重量（空气中）kg/吨';
COMMENT ON COLUMN "rescue_reg"."rescue_water_weight" IS '搜寻处置目标重量（水中）kg/吨';
COMMENT ON COLUMN "rescue_reg"."rescue_water_depth" IS '搜寻处置目标水深（米）';
COMMENT ON COLUMN "rescue_reg"."rescue_target_price" IS '搜寻处置目标预估价值
';
COMMENT ON COLUMN "rescue_reg"."rescue_response_level" IS '快速响应等级
';
COMMENT ON COLUMN "rescue_reg"."rescue_secrecy" IS '是否涉密
';
COMMENT ON COLUMN "rescue_reg"."rescue_unit" IS '搜捞目标的所属单位，手动录入
';
COMMENT ON COLUMN "rescue_reg"."rescue_response_day" IS '快速响应时间要求,比如说最晚10天就要捞上来，手动录入天数';
COMMENT ON COLUMN "rescue_reg"."fill_time" IS '填报时间
';
COMMENT ON COLUMN "rescue_reg"."fill_person" IS '联系人信息
';
COMMENT ON COLUMN "rescue_reg"."fill_tel" IS '填报电话';
COMMENT ON COLUMN "rescue_reg"."rescue_note" IS '备注';
COMMENT ON COLUMN "rescue_reg"."fill_note" IS '填报说明';
COMMENT ON TABLE "rescue_reg" IS '应急搜救任务';
CREATE TABLE "rescue_reg_file" (
  "tsy_id" int4 NOT NULL GENERATED BY DEFAULT AS IDENTITY (
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
),
  "rescue_id" int4,
  "file_org_name" varchar(256) COLLATE "pg_catalog"."default",
  "file_real_name" varchar(256) COLLATE "pg_catalog"."default",
  "file_path" varchar(256) COLLATE "pg_catalog"."default",
  "file_length" varchar(32) COLLATE "pg_catalog"."default",
  "file_note" varchar(512) COLLATE "pg_catalog"."default"
)
;
ALTER TABLE "rescue_reg_file" OWNER TO "postgres";
COMMENT ON COLUMN "rescue_reg_file"."rescue_id" IS '应急编号';
COMMENT ON COLUMN "rescue_reg_file"."file_org_name" IS '附件原始名称';
COMMENT ON COLUMN "rescue_reg_file"."file_real_name" IS '附件真实名称';
COMMENT ON COLUMN "rescue_reg_file"."file_path" IS '全路径';
COMMENT ON COLUMN "rescue_reg_file"."file_length" IS '文件大小';
COMMENT ON COLUMN "rescue_reg_file"."file_note" IS '备注信息';
COMMENT ON TABLE "rescue_reg_file" IS '应急救援：附件信息';
CREATE TABLE "rescue_reg_sample" (
  "tsy_id" int4 NOT NULL GENERATED BY DEFAULT AS IDENTITY (
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
),
  "rescue_id" int4,
  "voyage_id" int4,
  "voyage_name" varchar(255) COLLATE "pg_catalog"."default",
  "dataset_id" int4,
  "dataset_name" varchar(255) COLLATE "pg_catalog"."default",
  "sample_id" int4,
  "sample_name" varchar(128) COLLATE "pg_catalog"."default",
  "conver_area" int4,
  "create_time" timestamp(6),
  "voyage_mileage" int4,
  "diving_sn" varchar(256) COLLATE "pg_catalog"."default",
  "voyage_days" int4
)
;
ALTER TABLE "rescue_reg_sample" OWNER TO "postgres";
COMMENT ON COLUMN "rescue_reg_sample"."rescue_id" IS '应急救援编号';
COMMENT ON COLUMN "rescue_reg_sample"."voyage_id" IS '航次编号';
COMMENT ON COLUMN "rescue_reg_sample"."voyage_name" IS '航次名称';
COMMENT ON COLUMN "rescue_reg_sample"."dataset_id" IS '数据集id';
COMMENT ON COLUMN "rescue_reg_sample"."dataset_name" IS '样品集名称';
COMMENT ON COLUMN "rescue_reg_sample"."sample_id" IS '样品id';
COMMENT ON COLUMN "rescue_reg_sample"."sample_name" IS '样品名称';
COMMENT ON COLUMN "rescue_reg_sample"."conver_area" IS '覆盖面积';
COMMENT ON COLUMN "rescue_reg_sample"."create_time" IS '关联日期';
COMMENT ON COLUMN "rescue_reg_sample"."voyage_mileage" IS '航线里程';
COMMENT ON COLUMN "rescue_reg_sample"."diving_sn" IS '潜次号';
COMMENT ON COLUMN "rescue_reg_sample"."voyage_days" IS '航线天数';
BEGIN;
LOCK TABLE "public"."hme_frame_dept" IN SHARE MODE;
DELETE FROM "public"."hme_frame_dept";
COMMIT;
BEGIN;
LOCK TABLE "public"."hme_frame_dict" IN SHARE MODE;
DELETE FROM "public"."hme_frame_dict";
INSERT INTO "public"."hme_frame_dict" ("dict_name","dict_value","dict_text","dict_order") VALUES ('DictUnitType', 'A', '单位类型A', 1),('DictUnitType', 'B', '单位类型B', 2),('DictUnitType', 'C', '单位类型C', 3),('FrameReportSuffix', 'Year', '年分', 3),('FrameResType', 'Fun', '功能点', 3),('FrameResType', 'Menu', '大类', 1),('FrameResType', 'Page', '页面', 2),('FrameSex', '保密', '保密', 3),('FrameSex', '女', '女', 2),('FrameSex', '男', '男', 1),('FrameStatus', 'Active', '是', 1),('FrameStatus', 'InActive', '否', 2),('FrameValueType', 'Boolean', '布尔值', 7),('FrameValueType', 'Integer', '整数值', 6),('FrameValueType', 'LocalDate', '日期(年月日)', 3),('FrameValueType', 'LocalDateTime', '日期(长格式)', 2),('FrameValueType', 'LocalHour', '日期(时分)', 5),('FrameValueType', 'LocalTime', '日期(时分秒)', 4),('FrameValueType', 'String', '字符串', 1),('GobalBusinessType', 'None', '无业务', 1),('SamplePublishRule', '不公开', '不公开', 5),('SamplePublishRule', '公开获取', '公开获取', 1),('SamplePublishRule', '延期公开(12个月)', '延期公开(12个月)', 3),('SamplePublishRule', '延期公开(24个月)', '延期公开(24个月)', 4),('SamplePublishRule', '延期公开(6个月)', '延期公开(6个月)', 2),('SampleStatus', '原始数据', '原始数据', 1),('SampleStatus', '后处理数据', '后处理数据', 3),('SampleStatus', '成果数据', '成果数据', 4),('SampleStatus', '预处理数据', '预处理数据', 2),('SampleTag', '全球深渊深潜计划', '全球深渊深潜计划', 2),('SampleTag', '基金委共享航次', '基金委共享航次', 4),('SampleTag', '崖州湾共享航次', '崖州湾共享航次', 3),('SampleTag', '应急搜捞', '应急搜捞', 1),('SarResponseLevel', 'Ⅰ', 'Ⅰ', 1),('SarResponseLevel', 'Ⅱ', 'Ⅱ', 2),('SarResponseLevel', 'Ⅲ', 'Ⅲ', 3),('SarStatus', '已取消', '已取消', 4),('SarStatus', '已完成', '已完成', 3),('SarStatus', '执行中', '执行中', 2),('SarStatus', '未启动', '未启动', 1),('SarTargetType', 'Mooring', '锚系类目标', 0),('SarTargetType', 'NCT', '非合作方目标', 3),('SarTargetType', 'Other', '其他', 4),('SarTargetType', 'Wreck', '大型沉物', 1),('SarType', 'SAR', '应急搜捞', 1),('SarType', 'SI', '专项调查', 2),('VoyageJobType', '测线作业', '测线作业', 2),('VoyageJobType', '站位作业', '站位作业', 1),('VoyageShipName', '探索一号', '探索一号', 1),('VoyageShipName', '探索二号', '探索二号', 2);
COMMIT;
BEGIN;
LOCK TABLE "public"."hme_frame_dict_name" IN SHARE MODE;
DELETE FROM "public"."hme_frame_dict_name";
COMMIT;
BEGIN;
LOCK TABLE "public"."hme_frame_language" IN SHARE MODE;
DELETE FROM "public"."hme_frame_language";
INSERT INTO "public"."hme_frame_language" ("lang_key","lang_client","lang_name","lang_ch","lang_en") VALUES ('exception.auth.admin', '0', '需要管理员操作', '越权操作，请使用超级管理员账号使用该功能', 'Unauthorized operation, please use the super administrator account to use this function'),('exception.login.timeout', '0', '登录超时提示', '由于长时间未操作，请退出后重新登录', 'Due to prolonged inactivity, please log out and log in again'),('exception.mvc.param', '0', '参数错误', '提交参数格式错误，请联系系统管理员', 'Submission parameter format error, please contact the system administrator'),('ExceptionUnknow', '0', '未知错误', '系统出现未知错误，请联系系统管理员', 'The system encountered an unknown error, please contact the system administrator');
COMMIT;
BEGIN;
LOCK TABLE "public"."hme_frame_optr" IN SHARE MODE;
DELETE FROM "public"."hme_frame_optr";
INSERT INTO "public"."hme_frame_optr" ("optr_id","optr_name","login_name","login_pass","optr_alias","optr_sex","optr_status","optr_email","optr_mobile","optr_tel","optr_addr","optr_fax","optr_dept","optr_post","optr_level","optr_desc","optr_image","optr_param") VALUES (1, '管理员', 'admin', 'E10ADC3949BA59ABBE56E057F20F883E', '', '男', 'Active', 'revisit@126.com', '13588866675', '027-88899975', '湖北省武汉市武汉大学茶港', '027-888888785', 0, '超管', NULL, '测一下的数据', 'assets/img/user/01.jpg', NULL),(5, '操作员1', 'admin1', 'E10ADC3949BA59ABBE56E057F20F883E', '管理1', '保密', 'Active', 'admin@139.com', '18088888888', '0713-22222222', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL),(3, '操作员2', 'test1', 'E10ADC3949BA59ABBE56E057F20F883E', '测1', '男', 'Active', '727393967@qq.com', '18062412562', '0713-88888888', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL),(4, '操作员3', 'test2', 'E10ADC3949BA59ABBE56E057F20F883E', '测2', '女', 'Active', '12345678@qq.com', '18066666666', '0713-11111111', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL);
COMMIT;
BEGIN;
LOCK TABLE "public"."hme_frame_optr_log" IN SHARE MODE;
DELETE FROM "public"."hme_frame_optr_log";
COMMIT;
BEGIN;
LOCK TABLE "public"."hme_frame_optr_login" IN SHARE MODE;
DELETE FROM "public"."hme_frame_optr_login";
COMMIT;
BEGIN;
LOCK TABLE "public"."hme_frame_optr_role" IN SHARE MODE;
DELETE FROM "public"."hme_frame_optr_role";
INSERT INTO "public"."hme_frame_optr_role" ("optr_id","role_id") VALUES (5, 1),(3, 2),(4, 3);
COMMIT;
BEGIN;
LOCK TABLE "public"."hme_frame_param" IN SHARE MODE;
DELETE FROM "public"."hme_frame_param";
INSERT INTO "public"."hme_frame_param" ("param_name","param_value","param_status","param_appname","param_note") VALUES ('AutoLoginWithAdmin', 'true', '1', NULL, '是否以管理员身份自动登录');
COMMIT;
BEGIN;
LOCK TABLE "public"."hme_frame_res" IN SHARE MODE;
DELETE FROM "public"."hme_frame_res";
INSERT INTO "public"."hme_frame_res" ("res_id","res_name","res_alias","res_url","res_pid","res_level","res_type","res_css","res_status","res_order","res_note") VALUES (1000, '系统配置', NULL, '', 0, 1, 'Menu', '', '1', 1000, NULL),(1010, '资源管理', 'res_manage', '/frame/res/main', 1100, 3, 'Page', 'icon-docs text-info', '1', 1010, NULL),(1011, '资源列表', NULL, NULL, 1010, 4, 'Fun', NULL, '1', 1011, NULL),(1012, '资源权限', NULL, NULL, 1010, 4, 'Fun', '', '1', 1012, NULL),(1020, '系统参数', NULL, '/frame/param/main', 1100, 3, 'Page', 'icon-settings text-primary', '1', 1020, NULL),(1021, '参数列表', NULL, NULL, 1020, 4, 'Fun', NULL, '1', 1021, NULL),(1022, '参数维护', NULL, NULL, 1020, 4, 'Fun', NULL, '1', 1022, NULL),(1023, '重载参数', NULL, NULL, 1023, 4, 'Fun', '', '1', 1023, NULL),(1030, '系统字典', NULL, '/frame/dict/main', 1100, 3, 'Page', 'fas fa-book text-green', '1', 1030, NULL),(1031, '字典列表', NULL, '', 1030, 4, 'Fun', NULL, '1', 1031, NULL),(1032, '字典管理', NULL, '', 1030, 4, 'Fun', '', '1', 1032, NULL),(1033, '重载字典', NULL, '', 1030, 4, 'Fun', '', '1', 1033, NULL),(1040, '部门管理', NULL, '/frame/dept/main', 1100, 3, 'Page', 'icon-directions text-gray-darker', '1', 1040, NULL),(1041, '部门列表', NULL, '', 1040, 4, 'Fun', '', '1', 1041, NULL),(1042, '部门管理', NULL, '', 1040, 4, 'Fun', '', '1', 1042, NULL),(1080, '角色管理', NULL, '/frame/role/main', 1100, 3, 'Page', 'icon-people text-warning', '1', 1080, NULL),(1081, '角色列表', NULL, '', 1080, 4, 'Fun', NULL, '1', 1081, NULL),(1082, '角色管理', NULL, '', 1080, 4, 'Fun', '', '1', 1082, NULL),(1083, '角色管理', NULL, '', 1080, 4, 'Fun', '', '1', 1082, NULL),(1090, '操作员管理', NULL, '/frame/optr/main', 1100, 3, 'Page', 'icon-user text-green', '1', 1090, NULL),(1091, '操作员列表', NULL, '', 1090, 4, 'Fun', NULL, '1', 1091, NULL),(1092, '操作员管理', NULL, '', 1090, 4, 'Fun', '', '1', 1092, NULL),(1100, '运行配置', NULL, '', 1000, 2, 'Menu', 'icon-settings', '1', 1100, NULL),(10000, '框架模块', NULL, NULL, 0, 1, 'Menu', NULL, '1', 10000, NULL),(11000, '微信模块', NULL, NULL, 10000, 2, 'Menu', 'fab fa-weixin text-success', '1', 11000, NULL),(11100, '公众号列表', NULL, '/mod/weixin/define/main', 11000, 3, 'Page', 'fab fa-weixin text-primary', '1', 11100, NULL),(11200, '参数配置', NULL, '/mod/weixin/param/main', 11000, 3, 'Page', 'icon-settings text-purple', '1', 11100, NULL),(11300, '菜单管理', NULL, '/mod/weixin/menu/main', 11000, 3, 'Page', 'icon-menu text-gray-darker', '1', 11100, NULL),(11400, '模版消息', NULL, '/mod/weixin/template/main', 11000, 3, 'Page', 'icon-bubbles text-primary', '1', 11100, NULL),(11500, '消息处理器', NULL, '/mod/weixin/msg/main', 11000, 3, 'Page', 'icon-bubbles text-success', '1', 11100, NULL),(11600, '用户标签', NULL, '/mod/weixin/tag/main', 11000, 3, 'Page', 'icon-tag text-gray-darker', '1', 11100, NULL),(11700, '微信用户', NULL, '/mod/weixin/user/main', 11000, 3, 'Page', 'icon-people text-success', '1', 11100, NULL),(110000, '基础配置', NULL, NULL, 0, 1, 'Menu', NULL, '1', 110000, NULL),(110100, '专业配置', NULL, '/art/sx/cf/main', 110000, 2, 'Menu', 'icon-settings text-success', '1', 110100, NULL),(110200, '考生管理', NULL, '/art/sx/std/main', 110000, 2, 'Menu', 'fas fa-users text-primary', '1', 110200, NULL);
COMMIT;
BEGIN;
LOCK TABLE "public"."hme_frame_role" IN SHARE MODE;
DELETE FROM "public"."hme_frame_role";
INSERT INTO "public"."hme_frame_role" ("role_id","role_name","role_status","role_group","home_homepage","role_note") VALUES (3, '航次管理员', '1', NULL, NULL, '仅可管理分配给的航次及关联的样品集'),(2, '职能部门', '1', NULL, NULL, '可管理和维护所有航次和数据样品集'),(1, '系统管理员', '1', NULL, NULL, '系统管用户维护');
COMMIT;
BEGIN;
LOCK TABLE "public"."hme_frame_role_res" IN SHARE MODE;
DELETE FROM "public"."hme_frame_role_res";
COMMIT;
BEGIN;
LOCK TABLE "public"."rescue_reg" IN SHARE MODE;
DELETE FROM "public"."rescue_reg";
INSERT INTO "public"."rescue_reg" ("tsy_id","rescue_status","rescue_status_time","rescue_status_note","rescue_type","rescue_code","rescue_target_type","rescue_target_name","rescue_target_lon","rescue_target_lat","rescue_target_radius","rescue_target_width","rescue_target_length","rescue_target_height","rescue_air_weight","rescue_water_weight","rescue_water_depth","rescue_target_price","rescue_response_level","rescue_secrecy","rescue_unit","rescue_response_day","fill_time","fill_person","fill_tel","rescue_note","fill_note") VALUES (1, '任务开始', '2025-08-18 22:42:46', '1', 'SI', 'SAR_Wreck_001', '锚系类目标', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '是', '1', '1', '2025-08-18 22:42:46', '测试人员', '18088888888', '1', '1'),(2, '任务开始', '2025-08-18 22:52:33', '1', 'SAR', '专项调查_大型沉物_002', '大型沉物', '1', '1', '1', '111', '1', '1', '1', '1', '1', '1', '1', '二级', '否', '测试企业', '1', '2025-08-18 22:52:33', '张琪', '18062412562', 'TS-48-2', '1'),(3, '任务开始', '2025-08-22 10:39:44', '1', 'SAR', 'SAR_Mooring_003', 'Mooring', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '一级', '是', '1', '1', '2025-08-22 10:39:44', '测试人员', '18088888888', '1', '1'),(4, '任务开始', '2025-08-22 10:41:29', '1', 'SAR', 'SAR_NCT_004', 'NCT', '1', '1', '2', '1', '1', '2', '1', '1', '2', '1', '1', '二级', '是', '1', '2', '2025-08-22 10:41:29', '测试人员', '18088888888', '', ''),(5, '任务开始', '2025-08-22 10:42:01', '1', 'SI', 'SI_Other_005', 'Other', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '三级', '否', '1', '1', '2025-08-22 10:42:01', '测试人员', '18088888888', '', ''),(6, '任务处理中', '2025-08-22 10:42:55', '2', 'SI', 'SI_NCT_006', 'NCT', '2', '2', '1', '2', '2', '4', '2', '2', '5', '2', '2', '二级', '是', '测试企业', '6', '2025-08-22 10:42:55', '张', '18062412562', '', ''),(7, '任务已完成', '2025-08-22 15:11:04', '1', 'SAR', 'SAR_NCT_007', 'NCT', '1', '115.433', '19.422', '1', '1', '1', '1', '1', '1', '1', '1', '一级', '是', '1', '1', '2025-08-22 15:11:04', '测试人员', '18088888888', NULL, NULL),(8, '任务处理中', '2025-08-22 15:11:46', '1', 'SAR', 'SAR_Wreck_008', 'Wreck', '1', '116.933', '20.922', '1', '1', '1', '1', '1', '1', '1', '1', '二级', '是', '1', '1', '2025-08-22 15:11:46', '测试人员', '18088888888', NULL, NULL),(9, '任务已完成', '2025-10-31 11:10:09', '1', 'SAR', 'SAR_Mooring_009', 'Mooring', '1', '116.433', '20.422', '1', '10', '1', '1', '1', '1', '1', '1', '三级', '是', '1', '1', '2025-08-22 15:12:24', '测试人员', '18088888888', NULL, NULL),(10, '任务已创建', '2025-10-31 15:09:27', NULL, 'SAR', 'SAR_Wreck_0010', 'Wreck', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '一级', '是', '1', '1', '2025-10-31 15:09:27', '张', '18088888888', NULL, NULL);
COMMIT;
BEGIN;
LOCK TABLE "public"."rescue_reg_file" IN SHARE MODE;
DELETE FROM "public"."rescue_reg_file";
INSERT INTO "public"."rescue_reg_file" ("tsy_id","rescue_id","file_org_name","file_real_name","file_path","file_length","file_note") VALUES (2, 9, '生成农产品图片_compressed.png', 'SAR_Mooring_00920251030.png', '/opt/rescue/SAR_Mooring_00920251030.png', '27875', NULL),(3, 9, '新对话_compressed.png', 'SAR_Mooring_00920251030.png', '/opt/rescue/SAR_Mooring_00920251030.png', '47065', NULL);
COMMIT;
BEGIN;
LOCK TABLE "public"."rescue_reg_sample" IN SHARE MODE;
DELETE FROM "public"."rescue_reg_sample";
INSERT INTO "public"."rescue_reg_sample" ("tsy_id","rescue_id","voyage_id","voyage_name","dataset_id","dataset_name","sample_id","sample_name","conver_area","create_time","voyage_mileage","diving_sn","voyage_days") VALUES (8, 9, 14, 'TS2-29-1', 49, 'TS2-29-1_SY602_GQXJ_PJZP', 381, 'TS2-29-1_SY602_GQXJ_PJZP_13', 2466, '2025-10-31 10:42:58.209488', 500, 'SY602', NULL);
COMMIT;
ALTER TABLE "hme_frame_dept" ADD CONSTRAINT "hme_frame_dept_pkey" PRIMARY KEY ("dept_id");
ALTER TABLE "hme_frame_dict" ADD CONSTRAINT "hme_frame_dict_pkey" PRIMARY KEY ("dict_name", "dict_value");
ALTER TABLE "hme_frame_dict_name" ADD CONSTRAINT "hme_frame_dict_name_pkey" PRIMARY KEY ("dict_name");
ALTER TABLE "hme_frame_language" ADD CONSTRAINT "hme_frame_language_pkey" PRIMARY KEY ("lang_key");
ALTER TABLE "hme_frame_optr" ADD CONSTRAINT "hme_frame_optr_pkey" PRIMARY KEY ("optr_id");
CREATE UNIQUE INDEX "inx_frame_optr_login_name" ON "hme_frame_optr" USING btree (
  "login_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
ALTER TABLE "hme_frame_optr_log" ADD CONSTRAINT "hme_frame_optr_log_pkey" PRIMARY KEY ("log_id");
ALTER TABLE "hme_frame_optr_login" ADD CONSTRAINT "hme_frame_optr_login_pkey" PRIMARY KEY ("log_id");
ALTER TABLE "hme_frame_optr_role" ADD CONSTRAINT "hme_frame_optr_role_pkey" PRIMARY KEY ("role_id", "optr_id");
ALTER TABLE "hme_frame_param" ADD CONSTRAINT "hme_frame_param_pkey" PRIMARY KEY ("param_name");
ALTER TABLE "hme_frame_res" ADD CONSTRAINT "hme_frame_res_pkey" PRIMARY KEY ("res_id");
ALTER TABLE "hme_frame_role" ADD CONSTRAINT "hme_frame_role_pkey" PRIMARY KEY ("role_id");
ALTER TABLE "hme_frame_role_res" ADD CONSTRAINT "hme_frame_role_res_pkey" PRIMARY KEY ("role_id", "res_id");
ALTER TABLE "rescue_reg" ADD CONSTRAINT "rescue_reg_pkey" PRIMARY KEY ("tsy_id");
ALTER TABLE "rescue_reg_file" ADD CONSTRAINT "rescue_file_pkey" PRIMARY KEY ("tsy_id");
ALTER TABLE "rescue_reg_sample" ADD CONSTRAINT "rescue_reg_sample_pkey" PRIMARY KEY ("tsy_id");
ALTER SEQUENCE "hme_frame_dept_dept_id_seq"
OWNED BY "hme_frame_dept"."dept_id";
SELECT setval('"hme_frame_dept_dept_id_seq"', 2, false);
ALTER SEQUENCE "hme_frame_dept_dept_id_seq" OWNER TO "postgres";
ALTER SEQUENCE "hme_frame_optr_optr_id_seq"
OWNED BY "hme_frame_optr"."optr_id";
SELECT setval('"hme_frame_optr_optr_id_seq"', 6, true);
ALTER SEQUENCE "hme_frame_optr_optr_id_seq" OWNER TO "postgres";
ALTER SEQUENCE "hme_frame_role_role_id_seq"
OWNED BY "hme_frame_role"."role_id";
SELECT setval('"hme_frame_role_role_id_seq"', 4, true);
ALTER SEQUENCE "hme_frame_role_role_id_seq" OWNER TO "postgres";
ALTER SEQUENCE "rescue_file_tsy_id_seq"
OWNED BY "rescue_reg_file"."tsy_id";
SELECT setval('"rescue_file_tsy_id_seq"', 4, true);
ALTER SEQUENCE "rescue_file_tsy_id_seq" OWNER TO "postgres";
ALTER SEQUENCE "rescue_reg_sample_tsy_id_seq"
OWNED BY "rescue_reg_sample"."tsy_id";
SELECT setval('"rescue_reg_sample_tsy_id_seq"', 9, true);
ALTER SEQUENCE "rescue_reg_sample_tsy_id_seq" OWNER TO "postgres";
ALTER SEQUENCE "rescue_reg_tsy_id_seq"
OWNED BY "rescue_reg"."tsy_id";
SELECT setval('"rescue_reg_tsy_id_seq"', 11, true);
ALTER SEQUENCE "rescue_reg_tsy_id_seq" OWNER TO "postgres";
