/*
 Navicat Premium Data Transfer

 Source Server         : 10.0.6.107
 Source Server Type    : PostgreSQL
 Source Server Version : 110007 (110007)
 Source Host           : 10.0.6.107:5432
 Source Catalog        : boot_micro
 Source Schema         : public

 Target Server Type    : PostgreSQL
 Target Server Version : 110007 (110007)
 File Encoding         : 65001

 Date: 06/12/2023 15:11:14
*/


-- ----------------------------
-- Sequence structure for tbl_backend_user_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."tbl_backend_user_id_seq";
CREATE SEQUENCE "public"."tbl_backend_user_id_seq"
INCREMENT 1
MINVALUE  1
MAXVALUE 9999999999999
START 1
CACHE 1;
ALTER SEQUENCE "public"."tbl_backend_user_id_seq" OWNER TO "postgres";

-- ----------------------------
-- Sequence structure for tbl_config_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."tbl_config_id_seq";
CREATE SEQUENCE "public"."tbl_config_id_seq"
INCREMENT 1
MINVALUE  1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
ALTER SEQUENCE "public"."tbl_config_id_seq" OWNER TO "postgres";

-- ----------------------------
-- Sequence structure for tbl_excel_error_record_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."tbl_excel_error_record_id_seq";
CREATE SEQUENCE "public"."tbl_excel_error_record_id_seq"
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
CACHE 1;
ALTER SEQUENCE "public"."tbl_excel_error_record_id_seq" OWNER TO "postgres";

-- ----------------------------
-- Sequence structure for tbl_generator_config_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."tbl_generator_config_id_seq";
CREATE SEQUENCE "public"."tbl_generator_config_id_seq"
INCREMENT 1
MINVALUE  1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
ALTER SEQUENCE "public"."tbl_generator_config_id_seq" OWNER TO "postgres";

-- ----------------------------
-- Sequence structure for tbl_local_icon_library_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."tbl_local_icon_library_id_seq";
CREATE SEQUENCE "public"."tbl_local_icon_library_id_seq"
INCREMENT 1
MINVALUE  1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
ALTER SEQUENCE "public"."tbl_local_icon_library_id_seq" OWNER TO "postgres";

-- ----------------------------
-- Sequence structure for tbl_sys_dict_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."tbl_sys_dict_id_seq";
CREATE SEQUENCE "public"."tbl_sys_dict_id_seq"
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
CACHE 1;
ALTER SEQUENCE "public"."tbl_sys_dict_id_seq" OWNER TO "postgres";

-- ----------------------------
-- Sequence structure for tbl_sys_dict_item_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."tbl_sys_dict_item_id_seq";
CREATE SEQUENCE "public"."tbl_sys_dict_item_id_seq"
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
CACHE 1;
ALTER SEQUENCE "public"."tbl_sys_dict_item_id_seq" OWNER TO "postgres";

-- ----------------------------
-- Sequence structure for tbl_sys_file_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."tbl_sys_file_id_seq";
CREATE SEQUENCE "public"."tbl_sys_file_id_seq"
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
CACHE 1;
ALTER SEQUENCE "public"."tbl_sys_file_id_seq" OWNER TO "postgres";

-- ----------------------------
-- Sequence structure for tbl_sys_notice_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."tbl_sys_notice_id_seq";
CREATE SEQUENCE "public"."tbl_sys_notice_id_seq"
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
CACHE 1;
ALTER SEQUENCE "public"."tbl_sys_notice_id_seq" OWNER TO "postgres";

-- ----------------------------
-- Sequence structure for tbl_sys_tag_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."tbl_sys_tag_id_seq";
CREATE SEQUENCE "public"."tbl_sys_tag_id_seq"
INCREMENT 1
MINVALUE  1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
ALTER SEQUENCE "public"."tbl_sys_tag_id_seq" OWNER TO "postgres";

-- ----------------------------
-- Table structure for qrtz_blob_triggers
-- ----------------------------
DROP TABLE IF EXISTS "public"."qrtz_blob_triggers";
CREATE TABLE "public"."qrtz_blob_triggers" (
  "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  "trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "blob_data" bytea
)
;
ALTER TABLE "public"."qrtz_blob_triggers" OWNER TO "postgres";

-- ----------------------------
-- Table structure for qrtz_calendars
-- ----------------------------
DROP TABLE IF EXISTS "public"."qrtz_calendars";
CREATE TABLE "public"."qrtz_calendars" (
  "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  "calendar_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "calendar" bytea NOT NULL
)
;
ALTER TABLE "public"."qrtz_calendars" OWNER TO "postgres";

-- ----------------------------
-- Table structure for qrtz_cron_triggers
-- ----------------------------
DROP TABLE IF EXISTS "public"."qrtz_cron_triggers";
CREATE TABLE "public"."qrtz_cron_triggers" (
  "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  "trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "cron_expression" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  "time_zone_id" varchar(80) COLLATE "pg_catalog"."default"
)
;
ALTER TABLE "public"."qrtz_cron_triggers" OWNER TO "postgres";

-- ----------------------------
-- Table structure for qrtz_fired_triggers
-- ----------------------------
DROP TABLE IF EXISTS "public"."qrtz_fired_triggers";
CREATE TABLE "public"."qrtz_fired_triggers" (
  "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  "entry_id" varchar(95) COLLATE "pg_catalog"."default" NOT NULL,
  "trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "instance_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "fired_time" int8 NOT NULL,
  "sched_time" int8 NOT NULL,
  "priority" int4 NOT NULL,
  "state" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  "job_name" varchar(200) COLLATE "pg_catalog"."default",
  "job_group" varchar(200) COLLATE "pg_catalog"."default",
  "is_nonconcurrent" bool,
  "requests_recovery" bool
)
;
ALTER TABLE "public"."qrtz_fired_triggers" OWNER TO "postgres";

-- ----------------------------
-- Table structure for qrtz_job_details
-- ----------------------------
DROP TABLE IF EXISTS "public"."qrtz_job_details";
CREATE TABLE "public"."qrtz_job_details" (
  "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  "job_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "job_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "description" varchar(250) COLLATE "pg_catalog"."default",
  "job_class_name" varchar(250) COLLATE "pg_catalog"."default" NOT NULL,
  "is_durable" bool NOT NULL,
  "is_nonconcurrent" bool NOT NULL,
  "is_update_data" bool NOT NULL,
  "requests_recovery" bool NOT NULL,
  "job_data" bytea
)
;
ALTER TABLE "public"."qrtz_job_details" OWNER TO "postgres";

-- ----------------------------
-- Table structure for qrtz_locks
-- ----------------------------
DROP TABLE IF EXISTS "public"."qrtz_locks";
CREATE TABLE "public"."qrtz_locks" (
  "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  "lock_name" varchar(40) COLLATE "pg_catalog"."default" NOT NULL
)
;
ALTER TABLE "public"."qrtz_locks" OWNER TO "postgres";

-- ----------------------------
-- Table structure for qrtz_paused_trigger_grps
-- ----------------------------
DROP TABLE IF EXISTS "public"."qrtz_paused_trigger_grps";
CREATE TABLE "public"."qrtz_paused_trigger_grps" (
  "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL
)
;
ALTER TABLE "public"."qrtz_paused_trigger_grps" OWNER TO "postgres";

-- ----------------------------
-- Table structure for qrtz_scheduler_state
-- ----------------------------
DROP TABLE IF EXISTS "public"."qrtz_scheduler_state";
CREATE TABLE "public"."qrtz_scheduler_state" (
  "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  "instance_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "last_checkin_time" int8 NOT NULL,
  "checkin_interval" int8 NOT NULL
)
;
ALTER TABLE "public"."qrtz_scheduler_state" OWNER TO "postgres";

-- ----------------------------
-- Table structure for qrtz_simple_triggers
-- ----------------------------
DROP TABLE IF EXISTS "public"."qrtz_simple_triggers";
CREATE TABLE "public"."qrtz_simple_triggers" (
  "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  "trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "repeat_count" int8 NOT NULL,
  "repeat_interval" int8 NOT NULL,
  "times_triggered" int8 NOT NULL
)
;
ALTER TABLE "public"."qrtz_simple_triggers" OWNER TO "postgres";

-- ----------------------------
-- Table structure for qrtz_simprop_triggers
-- ----------------------------
DROP TABLE IF EXISTS "public"."qrtz_simprop_triggers";
CREATE TABLE "public"."qrtz_simprop_triggers" (
  "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  "trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "str_prop_1" varchar(512) COLLATE "pg_catalog"."default",
  "str_prop_2" varchar(512) COLLATE "pg_catalog"."default",
  "str_prop_3" varchar(512) COLLATE "pg_catalog"."default",
  "int_prop_1" int4,
  "int_prop_2" int4,
  "long_prop_1" int8,
  "long_prop_2" int8,
  "dec_prop_1" numeric(13,4),
  "dec_prop_2" numeric(13,4),
  "bool_prop_1" bool,
  "bool_prop_2" bool
)
;
ALTER TABLE "public"."qrtz_simprop_triggers" OWNER TO "postgres";

-- ----------------------------
-- Table structure for qrtz_triggers
-- ----------------------------
DROP TABLE IF EXISTS "public"."qrtz_triggers";
CREATE TABLE "public"."qrtz_triggers" (
  "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  "trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "job_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "job_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  "description" varchar(250) COLLATE "pg_catalog"."default",
  "next_fire_time" int8,
  "prev_fire_time" int8,
  "priority" int4,
  "trigger_state" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  "trigger_type" varchar(8) COLLATE "pg_catalog"."default" NOT NULL,
  "start_time" int8 NOT NULL,
  "end_time" int8,
  "calendar_name" varchar(200) COLLATE "pg_catalog"."default",
  "misfire_instr" int2,
  "job_data" bytea
)
;
ALTER TABLE "public"."qrtz_triggers" OWNER TO "postgres";

-- ----------------------------
-- Table structure for tbl_backend_user
-- ----------------------------
DROP TABLE IF EXISTS "public"."tbl_backend_user";
CREATE TABLE "public"."tbl_backend_user" (
  "id" int4 NOT NULL DEFAULT nextval('tbl_backend_user_id_seq'::regclass),
  "username" varchar(200) COLLATE "pg_catalog"."default",
  "password" varchar(200) COLLATE "pg_catalog"."default",
  "nickname" varchar(255) COLLATE "pg_catalog"."default"
)
;
ALTER TABLE "public"."tbl_backend_user" OWNER TO "postgres";
COMMENT ON COLUMN "public"."tbl_backend_user"."id" IS 'ID';
COMMENT ON COLUMN "public"."tbl_backend_user"."username" IS '用户名';
COMMENT ON COLUMN "public"."tbl_backend_user"."password" IS '密码';
COMMENT ON COLUMN "public"."tbl_backend_user"."nickname" IS '昵称';
COMMENT ON TABLE "public"."tbl_backend_user" IS '框架后台管理用户';

-- ----------------------------
-- Table structure for tbl_config
-- ----------------------------
DROP TABLE IF EXISTS "public"."tbl_config";
CREATE TABLE "public"."tbl_config" (
  "id" int4 NOT NULL DEFAULT nextval('tbl_config_id_seq'::regclass),
  "k" varchar(255) COLLATE "pg_catalog"."default",
  "v" text COLLATE "pg_catalog"."default",
  "create_time" timestamp(6) DEFAULT now(),
  "update_time" timestamp(6) DEFAULT now(),
  "name" varchar(255) COLLATE "pg_catalog"."default",
  "large_category" varchar(255) COLLATE "pg_catalog"."default",
  "subclass" varchar(255) COLLATE "pg_catalog"."default",
  "orderby" int2
)
;
ALTER TABLE "public"."tbl_config" OWNER TO "postgres";
COMMENT ON COLUMN "public"."tbl_config"."id" IS '系统配置ID';
COMMENT ON COLUMN "public"."tbl_config"."k" IS '参数键';
COMMENT ON COLUMN "public"."tbl_config"."v" IS '参数值';
COMMENT ON COLUMN "public"."tbl_config"."create_time" IS '创建时间';
COMMENT ON COLUMN "public"."tbl_config"."update_time" IS '更新时间';
COMMENT ON COLUMN "public"."tbl_config"."name" IS '参数名称';
COMMENT ON COLUMN "public"."tbl_config"."large_category" IS '大类';
COMMENT ON COLUMN "public"."tbl_config"."subclass" IS '小类';
COMMENT ON COLUMN "public"."tbl_config"."orderby" IS '排序';
COMMENT ON TABLE "public"."tbl_config" IS '系统配置';

-- ----------------------------
-- Table structure for tbl_excel_error_record
-- ----------------------------
DROP TABLE IF EXISTS "public"."tbl_excel_error_record";
CREATE TABLE "public"."tbl_excel_error_record" (
  "id" int8 NOT NULL DEFAULT nextval('tbl_excel_error_record_id_seq'::regclass),
  "req_no" varchar COLLATE "pg_catalog"."default" NOT NULL,
  "row_index" int4 NOT NULL,
  "original_json_value" text COLLATE "pg_catalog"."default" NOT NULL,
  "error_msg_json" text COLLATE "pg_catalog"."default" NOT NULL,
  "target_object" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "create_time" timestamp(6) DEFAULT now(),
  "update_time" timestamp(6) DEFAULT now()
)
;
ALTER TABLE "public"."tbl_excel_error_record" OWNER TO "postgres";
COMMENT ON COLUMN "public"."tbl_excel_error_record"."req_no" IS '请求序列号';
COMMENT ON COLUMN "public"."tbl_excel_error_record"."row_index" IS '行号';
COMMENT ON COLUMN "public"."tbl_excel_error_record"."original_json_value" IS '原始数据信息';
COMMENT ON COLUMN "public"."tbl_excel_error_record"."error_msg_json" IS '错误数据信息';
COMMENT ON COLUMN "public"."tbl_excel_error_record"."target_object" IS '目标对象';

-- ----------------------------
-- Table structure for tbl_generator_config
-- ----------------------------
DROP TABLE IF EXISTS "public"."tbl_generator_config";
CREATE TABLE "public"."tbl_generator_config" (
  "id" int4 NOT NULL DEFAULT nextval('tbl_generator_config_id_seq'::regclass),
  "config_name" varchar(200) COLLATE "pg_catalog"."default",
  "author" varchar(100) COLLATE "pg_catalog"."default",
  "export_path" varchar(255) COLLATE "pg_catalog"."default",
  "package_name" varchar(100) COLLATE "pg_catalog"."default",
  "table_prefix_name" varchar(100) COLLATE "pg_catalog"."default",
  "tables" varchar(255) COLLATE "pg_catalog"."default",
  "super_entity" bool,
  "file_override" bool
)
;
ALTER TABLE "public"."tbl_generator_config" OWNER TO "postgres";
COMMENT ON COLUMN "public"."tbl_generator_config"."id" IS '主键';
COMMENT ON COLUMN "public"."tbl_generator_config"."config_name" IS '配置名称';
COMMENT ON COLUMN "public"."tbl_generator_config"."author" IS '作者名';
COMMENT ON COLUMN "public"."tbl_generator_config"."export_path" IS '生成目录';
COMMENT ON COLUMN "public"."tbl_generator_config"."package_name" IS '包名';
COMMENT ON COLUMN "public"."tbl_generator_config"."table_prefix_name" IS '表前缀名';
COMMENT ON COLUMN "public"."tbl_generator_config"."tables" IS '表名列表';
COMMENT ON COLUMN "public"."tbl_generator_config"."super_entity" IS '是否继承实体';
COMMENT ON COLUMN "public"."tbl_generator_config"."file_override" IS '是否覆盖原文件';
COMMENT ON TABLE "public"."tbl_generator_config" IS '生成代码配置';

-- ----------------------------
-- Table structure for tbl_local_icon_library
-- ----------------------------
DROP TABLE IF EXISTS "public"."tbl_local_icon_library";
CREATE TABLE "public"."tbl_local_icon_library" (
  "id" int8 NOT NULL DEFAULT nextval('tbl_local_icon_library_id_seq'::regclass),
  "type" int2,
  "icon_name" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "icon_url" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "remark" varchar(255) COLLATE "pg_catalog"."default",
  "create_time" timestamp(6) DEFAULT now(),
  "update_time" timestamp(6) DEFAULT now()
)
;
ALTER TABLE "public"."tbl_local_icon_library" OWNER TO "postgres";
COMMENT ON COLUMN "public"."tbl_local_icon_library"."id" IS '主键id';
COMMENT ON COLUMN "public"."tbl_local_icon_library"."type" IS '图标类型';
COMMENT ON COLUMN "public"."tbl_local_icon_library"."icon_name" IS '图标名称';
COMMENT ON COLUMN "public"."tbl_local_icon_library"."icon_url" IS '图标链接';
COMMENT ON COLUMN "public"."tbl_local_icon_library"."remark" IS '图标备注';
COMMENT ON COLUMN "public"."tbl_local_icon_library"."create_time" IS '创建时间';
COMMENT ON COLUMN "public"."tbl_local_icon_library"."update_time" IS '更新时间';
COMMENT ON TABLE "public"."tbl_local_icon_library" IS '本地图标';

-- ----------------------------
-- Table structure for tbl_sys_dict
-- ----------------------------
DROP TABLE IF EXISTS "public"."tbl_sys_dict";
CREATE TABLE "public"."tbl_sys_dict" (
  "id" int4 NOT NULL DEFAULT nextval('tbl_sys_dict_id_seq'::regclass),
  "dict_type" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "description" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "system_flag" int2 NOT NULL DEFAULT 0,
  "create_time" timestamp(6) NOT NULL DEFAULT now(),
  "update_time" timestamp(6) NOT NULL DEFAULT now(),
  "del_flag" int2 DEFAULT 0,
  "del_key" int4 DEFAULT 0
)
;
ALTER TABLE "public"."tbl_sys_dict" OWNER TO "postgres";
COMMENT ON COLUMN "public"."tbl_sys_dict"."dict_type" IS '类型';
COMMENT ON COLUMN "public"."tbl_sys_dict"."description" IS '字典描述';
COMMENT ON COLUMN "public"."tbl_sys_dict"."system_flag" IS '是否系统内置（0:否, 1:是）';
COMMENT ON COLUMN "public"."tbl_sys_dict"."create_time" IS '创建时间';
COMMENT ON COLUMN "public"."tbl_sys_dict"."update_time" IS '更新时间';

-- ----------------------------
-- Table structure for tbl_sys_dict_item
-- ----------------------------
DROP TABLE IF EXISTS "public"."tbl_sys_dict_item";
CREATE TABLE "public"."tbl_sys_dict_item" (
  "id" int4 NOT NULL DEFAULT nextval('tbl_sys_dict_item_id_seq'::regclass),
  "dict_id" int4 NOT NULL,
  "item_value" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "label" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "dict_type" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "sort_order" int2,
  "remark" varchar(255) COLLATE "pg_catalog"."default",
  "create_time" timestamp(6) NOT NULL DEFAULT now(),
  "update_time" timestamp(6) NOT NULL DEFAULT now(),
  "del_flag" int2 DEFAULT 0,
  "del_key" int4 DEFAULT 0
)
;
ALTER TABLE "public"."tbl_sys_dict_item" OWNER TO "postgres";
COMMENT ON COLUMN "public"."tbl_sys_dict_item"."dict_id" IS '所属字典类id';
COMMENT ON COLUMN "public"."tbl_sys_dict_item"."item_value" IS '数据值';
COMMENT ON COLUMN "public"."tbl_sys_dict_item"."label" IS '标签名';
COMMENT ON COLUMN "public"."tbl_sys_dict_item"."dict_type" IS '字典类型';
COMMENT ON COLUMN "public"."tbl_sys_dict_item"."sort_order" IS '排序值，默认升序';
COMMENT ON COLUMN "public"."tbl_sys_dict_item"."remark" IS '备注';
COMMENT ON COLUMN "public"."tbl_sys_dict_item"."create_time" IS '创建时间';
COMMENT ON COLUMN "public"."tbl_sys_dict_item"."update_time" IS '更新时间';

-- ----------------------------
-- Table structure for tbl_sys_file
-- ----------------------------
DROP TABLE IF EXISTS "public"."tbl_sys_file";
CREATE TABLE "public"."tbl_sys_file" (
  "id" int4 NOT NULL DEFAULT nextval('tbl_sys_file_id_seq'::regclass),
  "file_name" varchar(255) COLLATE "pg_catalog"."default",
  "bucket_name" varchar(200) COLLATE "pg_catalog"."default",
  "original" varchar(100) COLLATE "pg_catalog"."default",
  "type" varchar(50) COLLATE "pg_catalog"."default",
  "file_size" int8,
  "create_user" varchar(64) COLLATE "pg_catalog"."default",
  "update_user" varchar(64) COLLATE "pg_catalog"."default",
  "create_time" timestamp(6) DEFAULT now(),
  "update_time" timestamp(6),
  "position" char(1) COLLATE "pg_catalog"."default",
  "del_flag" int2 DEFAULT 0,
  "source" int2 DEFAULT 0,
  "is_valid" int2 DEFAULT 1
)
;
ALTER TABLE "public"."tbl_sys_file" OWNER TO "postgres";
COMMENT ON COLUMN "public"."tbl_sys_file"."id" IS '编号';
COMMENT ON COLUMN "public"."tbl_sys_file"."file_size" IS '文件大小';
COMMENT ON COLUMN "public"."tbl_sys_file"."create_user" IS '创建人';
COMMENT ON COLUMN "public"."tbl_sys_file"."update_user" IS '修改人';
COMMENT ON COLUMN "public"."tbl_sys_file"."create_time" IS '上传时间';
COMMENT ON COLUMN "public"."tbl_sys_file"."update_time" IS '更新时间';
COMMENT ON COLUMN "public"."tbl_sys_file"."position" IS '文件存储位置：1.文件服务器，2.ECS服务器';
COMMENT ON COLUMN "public"."tbl_sys_file"."source" IS '来源：0文件上传模块，1其他模块';

-- ----------------------------
-- Table structure for tbl_sys_notice
-- ----------------------------
DROP TABLE IF EXISTS "public"."tbl_sys_notice";
CREATE TABLE "public"."tbl_sys_notice" (
  "id" int4 NOT NULL DEFAULT nextval('tbl_sys_notice_id_seq'::regclass),
  "title" varchar(255) COLLATE "pg_catalog"."default",
  "content" text COLLATE "pg_catalog"."default",
  "tag_id" int2,
  "remark" varchar(255) COLLATE "pg_catalog"."default",
  "create_by" varchar(50) COLLATE "pg_catalog"."default",
  "create_time" timestamp(6) DEFAULT now(),
  "status" int2 DEFAULT 0,
  "scope" int2,
  "type" int2,
  "pic" varchar(255) COLLATE "pg_catalog"."default",
  "create_uid" int4
)
;
ALTER TABLE "public"."tbl_sys_notice" OWNER TO "postgres";
COMMENT ON COLUMN "public"."tbl_sys_notice"."id" IS 'ID';
COMMENT ON COLUMN "public"."tbl_sys_notice"."title" IS '通知标题';
COMMENT ON COLUMN "public"."tbl_sys_notice"."content" IS '通知内容';
COMMENT ON COLUMN "public"."tbl_sys_notice"."tag_id" IS '标签id';
COMMENT ON COLUMN "public"."tbl_sys_notice"."remark" IS '备注';
COMMENT ON COLUMN "public"."tbl_sys_notice"."create_by" IS '创建人';
COMMENT ON COLUMN "public"."tbl_sys_notice"."create_time" IS '创建时间';
COMMENT ON COLUMN "public"."tbl_sys_notice"."status" IS '状态：0待发送，1已发送';
COMMENT ON COLUMN "public"."tbl_sys_notice"."scope" IS '可见范围：0部分公开，1全部可见';
COMMENT ON COLUMN "public"."tbl_sys_notice"."type" IS '类型：0通知，1公告';
COMMENT ON COLUMN "public"."tbl_sys_notice"."pic" IS '封面照片';
COMMENT ON COLUMN "public"."tbl_sys_notice"."create_uid" IS '创建人用户id';
COMMENT ON TABLE "public"."tbl_sys_notice" IS '系统通知';

-- ----------------------------
-- Table structure for tbl_sys_notice_user_mapper
-- ----------------------------
DROP TABLE IF EXISTS "public"."tbl_sys_notice_user_mapper";
CREATE TABLE "public"."tbl_sys_notice_user_mapper" (
  "notice_id" int4 NOT NULL,
  "user_id" int4 NOT NULL,
  "create_time" timestamp(6) DEFAULT now(),
  "status" int2 DEFAULT 0,
  "flag_del" int2 DEFAULT 0
)
;
ALTER TABLE "public"."tbl_sys_notice_user_mapper" OWNER TO "postgres";
COMMENT ON COLUMN "public"."tbl_sys_notice_user_mapper"."notice_id" IS '通知ID';
COMMENT ON COLUMN "public"."tbl_sys_notice_user_mapper"."user_id" IS '用户ID';
COMMENT ON COLUMN "public"."tbl_sys_notice_user_mapper"."create_time" IS '创建时间';
COMMENT ON COLUMN "public"."tbl_sys_notice_user_mapper"."status" IS '0未读，1已读';
COMMENT ON COLUMN "public"."tbl_sys_notice_user_mapper"."flag_del" IS '是否撤回，0否，1是';

-- ----------------------------
-- Table structure for tbl_sys_tag
-- ----------------------------
DROP TABLE IF EXISTS "public"."tbl_sys_tag";
CREATE TABLE "public"."tbl_sys_tag" (
  "id" int4 NOT NULL DEFAULT nextval('tbl_sys_tag_id_seq'::regclass),
  "tag_name" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "dict_item_value" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "sort" int4,
  "del_flag" int2 DEFAULT 0,
  "create_time" timestamp(6) NOT NULL DEFAULT now(),
  "update_time" timestamp(6) NOT NULL DEFAULT now(),
  "del_key" int4 DEFAULT 0,
  "tag_description" varchar(255) COLLATE "pg_catalog"."default",
  "parent_id" int4 NOT NULL DEFAULT 0,
  "level" int2 NOT NULL DEFAULT 1,
  "path" varchar(255) COLLATE "pg_catalog"."default",
  "id_path" varchar(255) COLLATE "pg_catalog"."default",
  "color" varchar(255) COLLATE "pg_catalog"."default"
)
;
ALTER TABLE "public"."tbl_sys_tag" OWNER TO "postgres";
COMMENT ON COLUMN "public"."tbl_sys_tag"."tag_name" IS '标签名称';
COMMENT ON COLUMN "public"."tbl_sys_tag"."dict_item_value" IS '标签所属模块（存字典项表中的item_value）';
COMMENT ON COLUMN "public"."tbl_sys_tag"."sort" IS '排序字段';
COMMENT ON COLUMN "public"."tbl_sys_tag"."del_flag" IS '删除标记,1:已删除,0:正常';
COMMENT ON COLUMN "public"."tbl_sys_tag"."create_time" IS '创建时间';
COMMENT ON COLUMN "public"."tbl_sys_tag"."update_time" IS '更新时间';
COMMENT ON COLUMN "public"."tbl_sys_tag"."tag_description" IS '标签描述';
COMMENT ON COLUMN "public"."tbl_sys_tag"."parent_id" IS '父id';
COMMENT ON COLUMN "public"."tbl_sys_tag"."level" IS '级别';
COMMENT ON COLUMN "public"."tbl_sys_tag"."path" IS '标签名称路径';
COMMENT ON COLUMN "public"."tbl_sys_tag"."id_path" IS '标签id路径';
COMMENT ON COLUMN "public"."tbl_sys_tag"."color" IS '标签颜色';
COMMENT ON TABLE "public"."tbl_sys_tag" IS '系统标签';

-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."tbl_backend_user_id_seq"
OWNED BY "public"."tbl_backend_user"."id";
SELECT setval('"public"."tbl_backend_user_id_seq"', 1, true);

-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."tbl_config_id_seq"
OWNED BY "public"."tbl_config"."id";
SELECT setval('"public"."tbl_config_id_seq"', 77, true);

-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."tbl_excel_error_record_id_seq"
OWNED BY "public"."tbl_excel_error_record"."id";
SELECT setval('"public"."tbl_excel_error_record_id_seq"', 1, true);

-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."tbl_generator_config_id_seq"
OWNED BY "public"."tbl_generator_config"."id";
SELECT setval('"public"."tbl_generator_config_id_seq"', 1, false);

-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."tbl_local_icon_library_id_seq"
OWNED BY "public"."tbl_local_icon_library"."id";
SELECT setval('"public"."tbl_local_icon_library_id_seq"', 9, true);

-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."tbl_sys_dict_id_seq"
OWNED BY "public"."tbl_sys_dict"."id";
SELECT setval('"public"."tbl_sys_dict_id_seq"', 200, true);

-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."tbl_sys_dict_item_id_seq"
OWNED BY "public"."tbl_sys_dict_item"."id";
SELECT setval('"public"."tbl_sys_dict_item_id_seq"', 1021, true);

-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."tbl_sys_file_id_seq"
OWNED BY "public"."tbl_sys_file"."id";
SELECT setval('"public"."tbl_sys_file_id_seq"', 942, true);

-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."tbl_sys_notice_id_seq"
OWNED BY "public"."tbl_sys_notice"."id";
SELECT setval('"public"."tbl_sys_notice_id_seq"', 171, true);

-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."tbl_sys_tag_id_seq"
OWNED BY "public"."tbl_sys_tag"."id";
SELECT setval('"public"."tbl_sys_tag_id_seq"', 1, true);

-- ----------------------------
-- Primary Key structure for table qrtz_blob_triggers
-- ----------------------------
ALTER TABLE "public"."qrtz_blob_triggers" ADD CONSTRAINT "qrtz_blob_triggers_pkey" PRIMARY KEY ("sched_name", "trigger_name", "trigger_group");

-- ----------------------------
-- Primary Key structure for table qrtz_calendars
-- ----------------------------
ALTER TABLE "public"."qrtz_calendars" ADD CONSTRAINT "qrtz_calendars_pkey" PRIMARY KEY ("sched_name", "calendar_name");

-- ----------------------------
-- Primary Key structure for table qrtz_cron_triggers
-- ----------------------------
ALTER TABLE "public"."qrtz_cron_triggers" ADD CONSTRAINT "qrtz_cron_triggers_pkey" PRIMARY KEY ("sched_name", "trigger_name", "trigger_group");

-- ----------------------------
-- Indexes structure for table qrtz_fired_triggers
-- ----------------------------
CREATE INDEX "idx_qrtz_ft_inst_job_req_rcvry" ON "public"."qrtz_fired_triggers" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "instance_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "requests_recovery" "pg_catalog"."bool_ops" ASC NULLS LAST
);
CREATE INDEX "idx_qrtz_ft_j_g" ON "public"."qrtz_fired_triggers" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "job_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "job_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "idx_qrtz_ft_jg" ON "public"."qrtz_fired_triggers" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "job_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "idx_qrtz_ft_t_g" ON "public"."qrtz_fired_triggers" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "trigger_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "trigger_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "idx_qrtz_ft_tg" ON "public"."qrtz_fired_triggers" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "trigger_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "idx_qrtz_ft_trig_inst_name" ON "public"."qrtz_fired_triggers" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "instance_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table qrtz_fired_triggers
-- ----------------------------
ALTER TABLE "public"."qrtz_fired_triggers" ADD CONSTRAINT "qrtz_fired_triggers_pkey" PRIMARY KEY ("sched_name", "entry_id");

-- ----------------------------
-- Indexes structure for table qrtz_job_details
-- ----------------------------
CREATE INDEX "idx_qrtz_j_grp" ON "public"."qrtz_job_details" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "job_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "idx_qrtz_j_req_recovery" ON "public"."qrtz_job_details" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "requests_recovery" "pg_catalog"."bool_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table qrtz_job_details
-- ----------------------------
ALTER TABLE "public"."qrtz_job_details" ADD CONSTRAINT "qrtz_job_details_pkey" PRIMARY KEY ("sched_name", "job_name", "job_group");

-- ----------------------------
-- Primary Key structure for table qrtz_locks
-- ----------------------------
ALTER TABLE "public"."qrtz_locks" ADD CONSTRAINT "qrtz_locks_pkey" PRIMARY KEY ("sched_name", "lock_name");

-- ----------------------------
-- Primary Key structure for table qrtz_paused_trigger_grps
-- ----------------------------
ALTER TABLE "public"."qrtz_paused_trigger_grps" ADD CONSTRAINT "qrtz_paused_trigger_grps_pkey" PRIMARY KEY ("sched_name", "trigger_group");

-- ----------------------------
-- Primary Key structure for table qrtz_scheduler_state
-- ----------------------------
ALTER TABLE "public"."qrtz_scheduler_state" ADD CONSTRAINT "qrtz_scheduler_state_pkey" PRIMARY KEY ("sched_name", "instance_name");

-- ----------------------------
-- Primary Key structure for table qrtz_simple_triggers
-- ----------------------------
ALTER TABLE "public"."qrtz_simple_triggers" ADD CONSTRAINT "qrtz_simple_triggers_pkey" PRIMARY KEY ("sched_name", "trigger_name", "trigger_group");

-- ----------------------------
-- Primary Key structure for table qrtz_simprop_triggers
-- ----------------------------
ALTER TABLE "public"."qrtz_simprop_triggers" ADD CONSTRAINT "qrtz_simprop_triggers_pkey" PRIMARY KEY ("sched_name", "trigger_name", "trigger_group");

-- ----------------------------
-- Indexes structure for table qrtz_triggers
-- ----------------------------
CREATE INDEX "idx_qrtz_t_c" ON "public"."qrtz_triggers" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "calendar_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "idx_qrtz_t_g" ON "public"."qrtz_triggers" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "trigger_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "idx_qrtz_t_j" ON "public"."qrtz_triggers" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "job_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "job_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "idx_qrtz_t_jg" ON "public"."qrtz_triggers" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "job_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "idx_qrtz_t_n_g_state" ON "public"."qrtz_triggers" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "trigger_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "trigger_state" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "idx_qrtz_t_n_state" ON "public"."qrtz_triggers" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "trigger_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "trigger_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "trigger_state" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "idx_qrtz_t_next_fire_time" ON "public"."qrtz_triggers" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "next_fire_time" "pg_catalog"."int8_ops" ASC NULLS LAST
);
CREATE INDEX "idx_qrtz_t_nft_misfire" ON "public"."qrtz_triggers" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "misfire_instr" "pg_catalog"."int2_ops" ASC NULLS LAST,
  "next_fire_time" "pg_catalog"."int8_ops" ASC NULLS LAST
);
CREATE INDEX "idx_qrtz_t_nft_st" ON "public"."qrtz_triggers" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "trigger_state" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "next_fire_time" "pg_catalog"."int8_ops" ASC NULLS LAST
);
CREATE INDEX "idx_qrtz_t_nft_st_misfire" ON "public"."qrtz_triggers" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "misfire_instr" "pg_catalog"."int2_ops" ASC NULLS LAST,
  "next_fire_time" "pg_catalog"."int8_ops" ASC NULLS LAST,
  "trigger_state" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "idx_qrtz_t_nft_st_misfire_grp" ON "public"."qrtz_triggers" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "misfire_instr" "pg_catalog"."int2_ops" ASC NULLS LAST,
  "next_fire_time" "pg_catalog"."int8_ops" ASC NULLS LAST,
  "trigger_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "trigger_state" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "idx_qrtz_t_state" ON "public"."qrtz_triggers" USING btree (
  "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  "trigger_state" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table qrtz_triggers
-- ----------------------------
ALTER TABLE "public"."qrtz_triggers" ADD CONSTRAINT "qrtz_triggers_pkey" PRIMARY KEY ("sched_name", "trigger_name", "trigger_group");

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

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

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

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

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

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

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

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

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

-- ----------------------------
-- Primary Key structure for table tbl_sys_notice_user_mapper
-- ----------------------------
ALTER TABLE "public"."tbl_sys_notice_user_mapper" ADD CONSTRAINT "tbl_sys_notice_user_mapper_pkey" PRIMARY KEY ("notice_id", "user_id");

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

-- 新增uk_dict_id_item_value_del_key唯一约束
ALTER TABLE "public"."tbl_sys_dict_item"
    ADD CONSTRAINT "uk_dict_id_item_value_del_key" UNIQUE ("dict_id", "item_value", "del_key");
