You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1049 lines
51 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*
Navicat Premium Data Transfer
Source Server : 172.16.12.105
Source Server Type : PostgreSQL
Source Server Version : 140007 (140007)
Source Host : 172.16.12.105:5432
Source Catalog : data_asset
Source Schema : public
Target Server Type : PostgreSQL
Target Server Version : 140007 (140007)
File Encoding : 65001
Date: 28/06/2023 15:19:16
*/
-- ----------------------------
-- Sequence structure for seq_sys_config
-- ----------------------------
-- DROP SEQUENCE IF EXISTS "public"."seq_sys_config";
CREATE SEQUENCE "public"."seq_sys_config"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 4
CACHE 1;
-- ----------------------------
-- Sequence structure for seq_sys_dept
-- ----------------------------
-- DROP SEQUENCE IF EXISTS "public"."seq_sys_dept";
CREATE SEQUENCE "public"."seq_sys_dept"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 3
CACHE 1;
-- ----------------------------
-- Sequence structure for seq_sys_dict_data
-- ----------------------------
-- DROP SEQUENCE IF EXISTS "public"."seq_sys_dict_data";
CREATE SEQUENCE "public"."seq_sys_dict_data"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for seq_sys_dict_type
-- ----------------------------
-- DROP SEQUENCE IF EXISTS "public"."seq_sys_dict_type";
CREATE SEQUENCE "public"."seq_sys_dict_type"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for seq_sys_job
-- ----------------------------
-- DROP SEQUENCE IF EXISTS "public"."seq_sys_job";
CREATE SEQUENCE "public"."seq_sys_job"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for seq_sys_job_log
-- ----------------------------
-- DROP SEQUENCE IF EXISTS "public"."seq_sys_job_log";
CREATE SEQUENCE "public"."seq_sys_job_log"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for seq_sys_logininfor
-- ----------------------------
-- DROP SEQUENCE IF EXISTS "public"."seq_sys_logininfor";
CREATE SEQUENCE "public"."seq_sys_logininfor"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for seq_sys_menu
-- ----------------------------
-- DROP SEQUENCE IF EXISTS "public"."seq_sys_menu";
CREATE SEQUENCE "public"."seq_sys_menu"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 3000
CACHE 1;
-- ----------------------------
-- Sequence structure for seq_sys_notice
-- ----------------------------
-- DROP SEQUENCE IF EXISTS "public"."seq_sys_notice";
CREATE SEQUENCE "public"."seq_sys_notice"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for seq_sys_oper_log
-- ----------------------------
-- DROP SEQUENCE IF EXISTS "public"."seq_sys_oper_log";
CREATE SEQUENCE "public"."seq_sys_oper_log"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for seq_sys_post
-- ----------------------------
-- DROP SEQUENCE IF EXISTS "public"."seq_sys_post";
CREATE SEQUENCE "public"."seq_sys_post"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for seq_sys_role
-- ----------------------------
-- DROP SEQUENCE IF EXISTS "public"."seq_sys_role";
CREATE SEQUENCE "public"."seq_sys_role"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 3
CACHE 1;
-- ----------------------------
-- Sequence structure for seq_sys_user
-- ----------------------------
-- DROP SEQUENCE IF EXISTS "public"."seq_sys_user";
CREATE SEQUENCE "public"."seq_sys_user"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 2
CACHE 1;
-- ----------------------------
-- Sequence structure for seq_sys_warning_contact
-- ----------------------------
-- DROP SEQUENCE IF EXISTS "public"."seq_sys_warning_contact";
CREATE SEQUENCE "public"."seq_sys_warning_contact"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for seq_sys_warning_log
-- ----------------------------
-- DROP SEQUENCE IF EXISTS "public"."seq_sys_warning_log";
CREATE SEQUENCE "public"."seq_sys_warning_log"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for tbl_data_table_index_id_seq
-- ----------------------------
-- DROP SEQUENCE IF EXISTS "public"."tbl_data_table_index_id_seq";
CREATE SEQUENCE "public"."tbl_data_table_index_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Table structure for tbl_data_table
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_data_table";
CREATE TABLE "public"."tbl_data_table" (
"table_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"table_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"chinese_name" varchar(200) COLLATE "pg_catalog"."default",
"business_type" varchar(2) COLLATE "pg_catalog"."default" NOT NULL,
"businne_scenario
" varchar(2) COLLATE "pg_catalog"."default" NOT NULL,
"from" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"table_type" varchar(2) COLLATE "pg_catalog"."default" NOT NULL,
"store_model" varchar(20) COLLATE "pg_catalog"."default" NOT NULL,
"system_name " varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"store_space" numeric(12,4),
"update_frequency" varchar(2) COLLATE "pg_catalog"."default",
"add_num" numeric(16,0),
"data_type" varchar(2) COLLATE "pg_catalog"."default",
"supply_way" varchar(10) COLLATE "pg_catalog"."default",
"if_sensitivity" char(1) COLLATE "pg_catalog"."default",
"if_have_personal_info" char(1) COLLATE "pg_catalog"."default",
"if_backup" char(1) COLLATE "pg_catalog"."default",
"create_table_time" time(6),
"terminal_time" timestamp(6),
"open_type" varchar(2) COLLATE "pg_catalog"."default",
"desc" varchar(1024) COLLATE "pg_catalog"."default",
"remark" varchar(300) COLLATE "pg_catalog"."default",
"status" varchar(2) COLLATE "pg_catalog"."default",
"create_by" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"create_time" timestamp(6),
"update_by" varchar(100) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) DEFAULT CURRENT_TIMESTAMP,
"version_num" int8 DEFAULT 0,
"del_flag" char(1) COLLATE "pg_catalog"."default",
"rec_token" varchar(64) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."tbl_data_table"."table_id" IS '数据编号';
COMMENT ON COLUMN "public"."tbl_data_table"."table_name" IS '表名';
COMMENT ON COLUMN "public"."tbl_data_table"."chinese_name" IS '中文名称';
COMMENT ON COLUMN "public"."tbl_data_table"."business_type" IS '业务类型01-主数据0-2交易类数据03-指标类数据';
COMMENT ON COLUMN "public"."tbl_data_table"."businne_scenario
" IS '业务场景01-交通02-体育03-投资04-置业05-文化06-旅游99-其他';
COMMENT ON COLUMN "public"."tbl_data_table"."from" IS '来源企业';
COMMENT ON COLUMN "public"."tbl_data_table"."table_type" IS '表类型: 01-单表02-集合表';
COMMENT ON COLUMN "public"."tbl_data_table"."store_model" IS '本地储存方式:oracle-orcle、mysql-mysql、sqlserver-sqlserver、hive-hive、hbase-hbase、other-其他';
COMMENT ON COLUMN "public"."tbl_data_table"."system_name " IS '此表所在系统名称';
COMMENT ON COLUMN "public"."tbl_data_table"."store_space" IS '此数据资源目前存储总量';
COMMENT ON COLUMN "public"."tbl_data_table"."update_frequency" IS '更新频率: 01-实时02-每日03-每周04-每月05-每年06-不定期';
COMMENT ON COLUMN "public"."tbl_data_table"."add_num" IS '新增数据条数,时间单位与更新频率一致,如1200万条/天';
COMMENT ON COLUMN "public"."tbl_data_table"."data_type" IS '数据资源类型: 01-结构化数据02-非结构化数据';
COMMENT ON COLUMN "public"."tbl_data_table"."supply_way" IS '数据提供方式: csv-CSV;xls-XLS; json-JSON; xml-XML;rdf-RDFapi-接口;other-其他';
COMMENT ON COLUMN "public"."tbl_data_table"."if_sensitivity" IS '是否敏感: 0-否1-是';
COMMENT ON COLUMN "public"."tbl_data_table"."if_have_personal_info" IS '是否含有个人敏感信息: 0-否1-是';
COMMENT ON COLUMN "public"."tbl_data_table"."if_backup" IS '是否备份: 0-否1-是';
COMMENT ON COLUMN "public"."tbl_data_table"."create_table_time" IS '建表时间';
COMMENT ON COLUMN "public"."tbl_data_table"."terminal_time" IS '终止时间';
COMMENT ON COLUMN "public"."tbl_data_table"."open_type" IS '开放方式: 01-无条件开发02-条件开发0-3不予开放';
COMMENT ON COLUMN "public"."tbl_data_table"."desc" IS '描述';
COMMENT ON COLUMN "public"."tbl_data_table"."remark" IS '备注';
COMMENT ON COLUMN "public"."tbl_data_table"."status" IS '数据状态: 01-草稿02-上架03-下架';
COMMENT ON COLUMN "public"."tbl_data_table"."create_by" IS '创建人';
COMMENT ON COLUMN "public"."tbl_data_table"."create_time" IS '创建时间';
COMMENT ON COLUMN "public"."tbl_data_table"."update_by" IS '更新人';
COMMENT ON COLUMN "public"."tbl_data_table"."update_time" IS '更新时间';
COMMENT ON COLUMN "public"."tbl_data_table"."version_num" IS '版本号';
COMMENT ON COLUMN "public"."tbl_data_table"."del_flag" IS '是否删除: 0-否1-是';
COMMENT ON COLUMN "public"."tbl_data_table"."rec_token" IS '随机码,用来防止并发更新';
-- ----------------------------
-- Table structure for tbl_data_table_index
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_data_table_index";
CREATE TABLE "public"."tbl_data_table_index" (
"id" int8 NOT NULL DEFAULT nextval('tbl_data_table_index_id_seq'::regclass),
"table_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"index_code" varchar(30) COLLATE "pg_catalog"."default" NOT NULL
)
;
COMMENT ON COLUMN "public"."tbl_data_table_index"."id" IS '主键';
COMMENT ON COLUMN "public"."tbl_data_table_index"."table_id" IS '表编码';
COMMENT ON COLUMN "public"."tbl_data_table_index"."index_code" IS '指标编码';
COMMENT ON TABLE "public"."tbl_data_table_index" IS '表所属指标';
-- ----------------------------
-- Table structure for tbl_sys_config
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_sys_config";
CREATE TABLE "public"."tbl_sys_config" (
"config_id" int8 NOT NULL DEFAULT nextval('seq_sys_config'::regclass),
"version_num" int4 NOT NULL DEFAULT 0,
"rec_token" varchar(10) COLLATE "pg_catalog"."default" NOT NULL DEFAULT '1'::character varying,
"config_name" varchar(100) COLLATE "pg_catalog"."default",
"config_key" varchar(100) COLLATE "pg_catalog"."default",
"config_value" varchar(500) COLLATE "pg_catalog"."default",
"config_type" char(1) COLLATE "pg_catalog"."default",
"create_by" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6),
"update_by" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6),
"remark" varchar(500) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."tbl_sys_config"."config_id" IS '【参数主键】';
COMMENT ON COLUMN "public"."tbl_sys_config"."version_num" IS '【版本号】';
COMMENT ON COLUMN "public"."tbl_sys_config"."rec_token" IS '【随机码】';
COMMENT ON COLUMN "public"."tbl_sys_config"."config_name" IS '【参数名称】';
COMMENT ON COLUMN "public"."tbl_sys_config"."config_key" IS '【参数键名】';
COMMENT ON COLUMN "public"."tbl_sys_config"."config_value" IS '【参数键值】';
COMMENT ON COLUMN "public"."tbl_sys_config"."config_type" IS '【系统内置】Y是 N否';
COMMENT ON COLUMN "public"."tbl_sys_config"."create_by" IS '【创建者】';
COMMENT ON COLUMN "public"."tbl_sys_config"."create_time" IS '【创建时间】';
COMMENT ON COLUMN "public"."tbl_sys_config"."update_by" IS '【更新者】';
COMMENT ON COLUMN "public"."tbl_sys_config"."update_time" IS '【更新时间】';
COMMENT ON COLUMN "public"."tbl_sys_config"."remark" IS '【备注】';
COMMENT ON TABLE "public"."tbl_sys_config" IS '【参数配置表】';
-- ----------------------------
-- Table structure for tbl_sys_dept
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_sys_dept";
CREATE TABLE "public"."tbl_sys_dept" (
"dept_id" int8 NOT NULL DEFAULT nextval('seq_sys_dept'::regclass),
"version_num" int4 NOT NULL DEFAULT 0,
"rec_token" varchar(10) COLLATE "pg_catalog"."default" NOT NULL DEFAULT '1'::character varying,
"parent_id" int8,
"ancestors" varchar(50) COLLATE "pg_catalog"."default",
"dept_name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
"order_num" int4,
"leader" varchar(20) COLLATE "pg_catalog"."default",
"phone" varchar(11) COLLATE "pg_catalog"."default",
"email" varchar(50) COLLATE "pg_catalog"."default",
"status" char(1) COLLATE "pg_catalog"."default",
"del_flag" char(1) COLLATE "pg_catalog"."default" DEFAULT '0'::bpchar,
"create_by" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6),
"update_by" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6)
)
;
COMMENT ON COLUMN "public"."tbl_sys_dept"."dept_id" IS '【部门id】';
COMMENT ON COLUMN "public"."tbl_sys_dept"."version_num" IS '【版本号】';
COMMENT ON COLUMN "public"."tbl_sys_dept"."rec_token" IS '【随机码】';
COMMENT ON COLUMN "public"."tbl_sys_dept"."parent_id" IS '【父部门id】';
COMMENT ON COLUMN "public"."tbl_sys_dept"."ancestors" IS '【祖级列表】';
COMMENT ON COLUMN "public"."tbl_sys_dept"."dept_name" IS '【部门名称】';
COMMENT ON COLUMN "public"."tbl_sys_dept"."order_num" IS '【显示顺序】';
COMMENT ON COLUMN "public"."tbl_sys_dept"."leader" IS '【负责人】';
COMMENT ON COLUMN "public"."tbl_sys_dept"."phone" IS '【联系电话】';
COMMENT ON COLUMN "public"."tbl_sys_dept"."email" IS '【邮箱】';
COMMENT ON COLUMN "public"."tbl_sys_dept"."status" IS '【部门状态】0正常 1停用';
COMMENT ON COLUMN "public"."tbl_sys_dept"."del_flag" IS '【删除标志】0代表存在 2代表删除';
COMMENT ON COLUMN "public"."tbl_sys_dept"."create_by" IS '【创建者】';
COMMENT ON COLUMN "public"."tbl_sys_dept"."create_time" IS '【创建时间】';
COMMENT ON COLUMN "public"."tbl_sys_dept"."update_by" IS '【更新者】';
COMMENT ON COLUMN "public"."tbl_sys_dept"."update_time" IS '【更新时间】';
COMMENT ON TABLE "public"."tbl_sys_dept" IS '【部门表】';
-- ----------------------------
-- Table structure for tbl_sys_dict_data
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_sys_dict_data";
CREATE TABLE "public"."tbl_sys_dict_data" (
"dict_code" int8 NOT NULL DEFAULT nextval('seq_sys_dict_data'::regclass),
"version_num" int4 NOT NULL DEFAULT 0,
"rec_token" varchar(10) COLLATE "pg_catalog"."default" NOT NULL DEFAULT '1'::character varying,
"dict_sort" int4,
"dict_label" varchar(100) COLLATE "pg_catalog"."default",
"dict_value" varchar(100) COLLATE "pg_catalog"."default",
"dict_type" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"css_class" varchar(100) COLLATE "pg_catalog"."default",
"list_class" varchar(100) COLLATE "pg_catalog"."default",
"is_default" char(1) COLLATE "pg_catalog"."default",
"status" char(1) COLLATE "pg_catalog"."default",
"create_by" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6),
"update_by" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6),
"remark" varchar(500) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."tbl_sys_dict_data"."dict_code" IS '【字典编码】';
COMMENT ON COLUMN "public"."tbl_sys_dict_data"."version_num" IS '【版本号】';
COMMENT ON COLUMN "public"."tbl_sys_dict_data"."rec_token" IS '【随机码】';
COMMENT ON COLUMN "public"."tbl_sys_dict_data"."dict_sort" IS '【字典排序】';
COMMENT ON COLUMN "public"."tbl_sys_dict_data"."dict_label" IS '【字典标签】';
COMMENT ON COLUMN "public"."tbl_sys_dict_data"."dict_value" IS '【字典键值】';
COMMENT ON COLUMN "public"."tbl_sys_dict_data"."dict_type" IS '【字典类型】';
COMMENT ON COLUMN "public"."tbl_sys_dict_data"."css_class" IS '【样式属性】其他样式扩展';
COMMENT ON COLUMN "public"."tbl_sys_dict_data"."list_class" IS '【表格回显样式】';
COMMENT ON COLUMN "public"."tbl_sys_dict_data"."is_default" IS '【是否默认】Y是 N否';
COMMENT ON COLUMN "public"."tbl_sys_dict_data"."status" IS '【状态】0正常 1停用';
COMMENT ON COLUMN "public"."tbl_sys_dict_data"."create_by" IS '【创建者】';
COMMENT ON COLUMN "public"."tbl_sys_dict_data"."create_time" IS '【创建时间】';
COMMENT ON COLUMN "public"."tbl_sys_dict_data"."update_by" IS '【更新者】';
COMMENT ON COLUMN "public"."tbl_sys_dict_data"."update_time" IS '【更新时间】';
COMMENT ON COLUMN "public"."tbl_sys_dict_data"."remark" IS '【备注】';
COMMENT ON TABLE "public"."tbl_sys_dict_data" IS '【字典数据表】';
-- ----------------------------
-- Table structure for tbl_sys_dict_type
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_sys_dict_type";
CREATE TABLE "public"."tbl_sys_dict_type" (
"dict_id" int8 NOT NULL DEFAULT nextval('seq_sys_dict_type'::regclass),
"version_num" int4 NOT NULL DEFAULT 0,
"rec_token" varchar(10) COLLATE "pg_catalog"."default" NOT NULL DEFAULT '1'::character varying,
"dict_name" varchar(100) COLLATE "pg_catalog"."default",
"dict_type" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"status" char(1) COLLATE "pg_catalog"."default",
"create_by" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6),
"update_by" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6),
"remark" varchar(500) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."tbl_sys_dict_type"."dict_id" IS '【字典主键】';
COMMENT ON COLUMN "public"."tbl_sys_dict_type"."version_num" IS '【版本号】';
COMMENT ON COLUMN "public"."tbl_sys_dict_type"."rec_token" IS '【随机码】';
COMMENT ON COLUMN "public"."tbl_sys_dict_type"."dict_name" IS '【字典名称】';
COMMENT ON COLUMN "public"."tbl_sys_dict_type"."dict_type" IS '【字典类型】';
COMMENT ON COLUMN "public"."tbl_sys_dict_type"."status" IS '【状态】0正常 1停用';
COMMENT ON COLUMN "public"."tbl_sys_dict_type"."create_by" IS '【创建者】';
COMMENT ON COLUMN "public"."tbl_sys_dict_type"."create_time" IS '【创建时间】';
COMMENT ON COLUMN "public"."tbl_sys_dict_type"."update_by" IS '【更新者】';
COMMENT ON COLUMN "public"."tbl_sys_dict_type"."update_time" IS '【更新时间】';
COMMENT ON COLUMN "public"."tbl_sys_dict_type"."remark" IS '【备注】';
COMMENT ON TABLE "public"."tbl_sys_dict_type" IS '【字典类型表】';
-- ----------------------------
-- Table structure for tbl_sys_job
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_sys_job";
CREATE TABLE "public"."tbl_sys_job" (
"job_id" int8 NOT NULL DEFAULT nextval('seq_sys_job'::regclass),
"job_name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"job_group" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"version_num" int4 NOT NULL DEFAULT 0,
"rec_token" varchar(10) COLLATE "pg_catalog"."default" NOT NULL,
"invoke_target" varchar(500) COLLATE "pg_catalog"."default" NOT NULL,
"cron_expression" varchar(255) COLLATE "pg_catalog"."default",
"misfire_policy" varchar(20) COLLATE "pg_catalog"."default",
"concurrent" char(1) COLLATE "pg_catalog"."default",
"status" char(1) COLLATE "pg_catalog"."default",
"create_by" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6),
"update_by" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6),
"remark" varchar(500) COLLATE "pg_catalog"."default",
"parent_id" int8,
"level" varchar(200) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."tbl_sys_job"."job_id" IS '【任务ID】';
COMMENT ON COLUMN "public"."tbl_sys_job"."job_name" IS '【任务名称】';
COMMENT ON COLUMN "public"."tbl_sys_job"."job_group" IS '【任务组名】';
COMMENT ON COLUMN "public"."tbl_sys_job"."version_num" IS '【版本号】';
COMMENT ON COLUMN "public"."tbl_sys_job"."rec_token" IS '【随机码】';
COMMENT ON COLUMN "public"."tbl_sys_job"."invoke_target" IS '【调用目标字符串】';
COMMENT ON COLUMN "public"."tbl_sys_job"."cron_expression" IS '【cron执行表达式】';
COMMENT ON COLUMN "public"."tbl_sys_job"."misfire_policy" IS '【计划执行错误策略】1立即执行 2执行一次 3放弃执行';
COMMENT ON COLUMN "public"."tbl_sys_job"."concurrent" IS '【是否并发执行】0允许 1禁止';
COMMENT ON COLUMN "public"."tbl_sys_job"."status" IS '【状态】0正常 1暂停';
COMMENT ON COLUMN "public"."tbl_sys_job"."create_by" IS '【创建者】';
COMMENT ON COLUMN "public"."tbl_sys_job"."create_time" IS '【创建时间】';
COMMENT ON COLUMN "public"."tbl_sys_job"."update_by" IS '【更新者】';
COMMENT ON COLUMN "public"."tbl_sys_job"."update_time" IS '【更新时间】';
COMMENT ON COLUMN "public"."tbl_sys_job"."remark" IS '【备注信息】';
COMMENT ON COLUMN "public"."tbl_sys_job"."parent_id" IS '【父ID】';
COMMENT ON COLUMN "public"."tbl_sys_job"."level" IS '【层级】';
COMMENT ON TABLE "public"."tbl_sys_job" IS '【定时任务调度表】';
-- ----------------------------
-- Table structure for tbl_sys_job_log
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_sys_job_log";
CREATE TABLE "public"."tbl_sys_job_log" (
"job_log_id" int8 NOT NULL DEFAULT nextval('seq_sys_job_log'::regclass),
"job_name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"job_group" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"invoke_target" varchar(500) COLLATE "pg_catalog"."default" NOT NULL,
"job_message" varchar(500) COLLATE "pg_catalog"."default",
"status" char(1) COLLATE "pg_catalog"."default",
"exception_info" varchar(2000) COLLATE "pg_catalog"."default",
"create_time" timestamp(6)
)
;
COMMENT ON COLUMN "public"."tbl_sys_job_log"."job_log_id" IS '【任务日志ID】';
COMMENT ON COLUMN "public"."tbl_sys_job_log"."job_name" IS '【任务名称】';
COMMENT ON COLUMN "public"."tbl_sys_job_log"."job_group" IS '【任务组名】';
COMMENT ON COLUMN "public"."tbl_sys_job_log"."invoke_target" IS '【调用目标字符串】';
COMMENT ON COLUMN "public"."tbl_sys_job_log"."job_message" IS '【日志信息】';
COMMENT ON COLUMN "public"."tbl_sys_job_log"."status" IS '【执行状态】0正常 1失败';
COMMENT ON COLUMN "public"."tbl_sys_job_log"."exception_info" IS '【异常信息】';
COMMENT ON COLUMN "public"."tbl_sys_job_log"."create_time" IS '【创建时间】';
COMMENT ON TABLE "public"."tbl_sys_job_log" IS '【定时任务调度日志表】';
-- ----------------------------
-- Table structure for tbl_sys_logininfor
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_sys_logininfor";
CREATE TABLE "public"."tbl_sys_logininfor" (
"info_id" int8 NOT NULL DEFAULT nextval('seq_sys_logininfor'::regclass),
"user_name" varchar(50) COLLATE "pg_catalog"."default",
"ipaddr" varchar(128) COLLATE "pg_catalog"."default",
"login_location" varchar(255) COLLATE "pg_catalog"."default",
"browser" varchar(50) COLLATE "pg_catalog"."default",
"os" varchar(50) COLLATE "pg_catalog"."default",
"status" char(1) COLLATE "pg_catalog"."default",
"msg" varchar(2000) COLLATE "pg_catalog"."default",
"login_time" timestamp(6)
)
;
COMMENT ON COLUMN "public"."tbl_sys_logininfor"."info_id" IS '【访问ID】';
COMMENT ON COLUMN "public"."tbl_sys_logininfor"."user_name" IS '【用户账号】';
COMMENT ON COLUMN "public"."tbl_sys_logininfor"."ipaddr" IS '【登录IP地址】';
COMMENT ON COLUMN "public"."tbl_sys_logininfor"."login_location" IS '【登录地点】';
COMMENT ON COLUMN "public"."tbl_sys_logininfor"."browser" IS '【浏览器类型】';
COMMENT ON COLUMN "public"."tbl_sys_logininfor"."os" IS '【操作系统】';
COMMENT ON COLUMN "public"."tbl_sys_logininfor"."status" IS '【登录状态】0成功 1失败';
COMMENT ON COLUMN "public"."tbl_sys_logininfor"."msg" IS '【提示消息】';
COMMENT ON COLUMN "public"."tbl_sys_logininfor"."login_time" IS '【访问时间】';
COMMENT ON TABLE "public"."tbl_sys_logininfor" IS '【系统访问记录】';
-- ----------------------------
-- Table structure for tbl_sys_menu
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_sys_menu";
CREATE TABLE "public"."tbl_sys_menu" (
"menu_id" int8 NOT NULL DEFAULT nextval('seq_sys_menu'::regclass),
"version_num" int4 NOT NULL DEFAULT 0,
"rec_token" varchar(10) COLLATE "pg_catalog"."default" NOT NULL DEFAULT '1'::character varying,
"menu_name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"parent_id" int8 DEFAULT 0,
"order_num" int4,
"path" varchar(200) COLLATE "pg_catalog"."default",
"component" varchar(255) COLLATE "pg_catalog"."default",
"query_params" varchar(255) COLLATE "pg_catalog"."default",
"is_frame" char(1) COLLATE "pg_catalog"."default",
"is_cache" char(1) COLLATE "pg_catalog"."default",
"url_path" varchar(255) COLLATE "pg_catalog"."default",
"url_method" varchar(20) COLLATE "pg_catalog"."default",
"url_opr_type" varchar(20) COLLATE "pg_catalog"."default",
"url_check_flag" char(1) COLLATE "pg_catalog"."default",
"menu_type" char(1) COLLATE "pg_catalog"."default",
"visible" char(1) COLLATE "pg_catalog"."default",
"status" char(1) COLLATE "pg_catalog"."default",
"perms" varchar(100) COLLATE "pg_catalog"."default",
"icon" varchar(100) COLLATE "pg_catalog"."default",
"create_by" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6),
"update_by" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6),
"remark" varchar(500) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."tbl_sys_menu"."menu_id" IS '【菜单ID】';
COMMENT ON COLUMN "public"."tbl_sys_menu"."version_num" IS '【版本号】';
COMMENT ON COLUMN "public"."tbl_sys_menu"."rec_token" IS '【随机码】';
COMMENT ON COLUMN "public"."tbl_sys_menu"."menu_name" IS '【菜单名称】';
COMMENT ON COLUMN "public"."tbl_sys_menu"."parent_id" IS '【父菜单ID】';
COMMENT ON COLUMN "public"."tbl_sys_menu"."order_num" IS '【显示顺序】';
COMMENT ON COLUMN "public"."tbl_sys_menu"."path" IS '【路由地址】';
COMMENT ON COLUMN "public"."tbl_sys_menu"."component" IS '【组件路径】';
COMMENT ON COLUMN "public"."tbl_sys_menu"."query_params" IS '【路由参数】';
COMMENT ON COLUMN "public"."tbl_sys_menu"."is_frame" IS '【是否为外链】0是 1否';
COMMENT ON COLUMN "public"."tbl_sys_menu"."is_cache" IS '【是否缓存】0缓存 1不缓存';
COMMENT ON COLUMN "public"."tbl_sys_menu"."url_path" IS '【url路径】';
COMMENT ON COLUMN "public"."tbl_sys_menu"."url_method" IS '【URL请求方式】由于restful风格同名因此需要GET,POST等';
COMMENT ON COLUMN "public"."tbl_sys_menu"."url_opr_type" IS '【url操作类型】为了更便捷分配同类型资源query查询 add新增edit编辑。。。';
COMMENT ON COLUMN "public"."tbl_sys_menu"."url_check_flag" IS '【url网关校验标志】为空或0则不校验1校验';
COMMENT ON COLUMN "public"."tbl_sys_menu"."menu_type" IS '【菜单类型】M目录 C菜单 F按钮';
COMMENT ON COLUMN "public"."tbl_sys_menu"."visible" IS '【菜单显示状态】0显示 1隐藏';
COMMENT ON COLUMN "public"."tbl_sys_menu"."status" IS '【菜单状态】0正常 1停用';
COMMENT ON COLUMN "public"."tbl_sys_menu"."perms" IS '【权限标识】';
COMMENT ON COLUMN "public"."tbl_sys_menu"."icon" IS '【菜单图标】';
COMMENT ON COLUMN "public"."tbl_sys_menu"."create_by" IS '【创建者】';
COMMENT ON COLUMN "public"."tbl_sys_menu"."create_time" IS '【创建时间】';
COMMENT ON COLUMN "public"."tbl_sys_menu"."update_by" IS '【更新者】';
COMMENT ON COLUMN "public"."tbl_sys_menu"."update_time" IS '【更新时间】';
COMMENT ON COLUMN "public"."tbl_sys_menu"."remark" IS '【备注】';
COMMENT ON TABLE "public"."tbl_sys_menu" IS '【菜单权限表】';
-- ----------------------------
-- Table structure for tbl_sys_notice
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_sys_notice";
CREATE TABLE "public"."tbl_sys_notice" (
"notice_id" int4 NOT NULL DEFAULT nextval('seq_sys_notice'::regclass),
"version_num" int4 NOT NULL DEFAULT 0,
"rec_token" varchar(10) COLLATE "pg_catalog"."default" NOT NULL DEFAULT '1'::character varying,
"notice_title" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"notice_type" char(1) COLLATE "pg_catalog"."default" NOT NULL,
"notice_content" text COLLATE "pg_catalog"."default",
"status" char(1) COLLATE "pg_catalog"."default",
"create_by" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6),
"update_by" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6),
"remark" varchar(255) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."tbl_sys_notice"."notice_id" IS '【公告ID】';
COMMENT ON COLUMN "public"."tbl_sys_notice"."version_num" IS '【版本号】';
COMMENT ON COLUMN "public"."tbl_sys_notice"."rec_token" IS '【随机码】';
COMMENT ON COLUMN "public"."tbl_sys_notice"."notice_title" IS '【公告标题】';
COMMENT ON COLUMN "public"."tbl_sys_notice"."notice_type" IS '【公告类型】1通知 2公告';
COMMENT ON COLUMN "public"."tbl_sys_notice"."notice_content" IS '【公告内容】';
COMMENT ON COLUMN "public"."tbl_sys_notice"."status" IS '【公告状态】0正常 1关闭';
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"."update_by" IS '【更新者】';
COMMENT ON COLUMN "public"."tbl_sys_notice"."update_time" IS '【更新时间】';
COMMENT ON COLUMN "public"."tbl_sys_notice"."remark" IS '【备注】';
COMMENT ON TABLE "public"."tbl_sys_notice" IS '【通知公告表】';
-- ----------------------------
-- Table structure for tbl_sys_oper_log
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_sys_oper_log";
CREATE TABLE "public"."tbl_sys_oper_log" (
"oper_id" int8 NOT NULL DEFAULT nextval('seq_sys_oper_log'::regclass),
"title" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"business_type" int4,
"method" varchar(100) COLLATE "pg_catalog"."default",
"request_method" varchar(10) COLLATE "pg_catalog"."default",
"operator_type" int4,
"oper_name" varchar(50) COLLATE "pg_catalog"."default",
"dept_name" varchar(50) COLLATE "pg_catalog"."default",
"oper_url" varchar(255) COLLATE "pg_catalog"."default",
"oper_ip" varchar(128) COLLATE "pg_catalog"."default",
"oper_location" varchar(255) COLLATE "pg_catalog"."default",
"oper_param" varchar(2000) COLLATE "pg_catalog"."default",
"json_result" varchar(2000) COLLATE "pg_catalog"."default",
"status" int4,
"error_msg" varchar(2000) COLLATE "pg_catalog"."default",
"oper_time" timestamp(6)
)
;
COMMENT ON COLUMN "public"."tbl_sys_oper_log"."oper_id" IS '【日志主键】';
COMMENT ON COLUMN "public"."tbl_sys_oper_log"."title" IS '【模块标题】';
COMMENT ON COLUMN "public"."tbl_sys_oper_log"."business_type" IS '【业务类型】0其它 1新增 2修改 3删除';
COMMENT ON COLUMN "public"."tbl_sys_oper_log"."method" IS '【方法名称】';
COMMENT ON COLUMN "public"."tbl_sys_oper_log"."request_method" IS '【请求方式】';
COMMENT ON COLUMN "public"."tbl_sys_oper_log"."operator_type" IS '【操作类别】0其它 1后台用户 2手机端用户';
COMMENT ON COLUMN "public"."tbl_sys_oper_log"."oper_name" IS '【操作人员】';
COMMENT ON COLUMN "public"."tbl_sys_oper_log"."dept_name" IS '【部门名称】';
COMMENT ON COLUMN "public"."tbl_sys_oper_log"."oper_url" IS '【请求URL】';
COMMENT ON COLUMN "public"."tbl_sys_oper_log"."oper_ip" IS '【主机地址】';
COMMENT ON COLUMN "public"."tbl_sys_oper_log"."oper_location" IS '【操作地点】';
COMMENT ON COLUMN "public"."tbl_sys_oper_log"."oper_param" IS '【请求参数】';
COMMENT ON COLUMN "public"."tbl_sys_oper_log"."json_result" IS '【返回参数】';
COMMENT ON COLUMN "public"."tbl_sys_oper_log"."status" IS '【操作状态】0正常 1异常';
COMMENT ON COLUMN "public"."tbl_sys_oper_log"."error_msg" IS '【错误消息】';
COMMENT ON COLUMN "public"."tbl_sys_oper_log"."oper_time" IS '【操作时间】';
COMMENT ON TABLE "public"."tbl_sys_oper_log" IS '【操作日志记录】';
-- ----------------------------
-- Table structure for tbl_sys_post
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_sys_post";
CREATE TABLE "public"."tbl_sys_post" (
"post_id" int8 NOT NULL DEFAULT nextval('seq_sys_post'::regclass),
"version_num" int4 NOT NULL DEFAULT 0,
"rec_token" varchar(10) COLLATE "pg_catalog"."default" NOT NULL DEFAULT '1'::character varying,
"post_code" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"post_name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"post_sort" int4 NOT NULL,
"status" char(1) COLLATE "pg_catalog"."default" NOT NULL,
"create_by" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6),
"update_by" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6),
"remark" varchar(500) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."tbl_sys_post"."post_id" IS '【岗位ID】';
COMMENT ON COLUMN "public"."tbl_sys_post"."version_num" IS '【版本号】';
COMMENT ON COLUMN "public"."tbl_sys_post"."rec_token" IS '【随机码】';
COMMENT ON COLUMN "public"."tbl_sys_post"."post_code" IS '【岗位编码】';
COMMENT ON COLUMN "public"."tbl_sys_post"."post_name" IS '【岗位名称】';
COMMENT ON COLUMN "public"."tbl_sys_post"."post_sort" IS '【显示顺序】';
COMMENT ON COLUMN "public"."tbl_sys_post"."status" IS '【状态】0正常 1停用';
COMMENT ON COLUMN "public"."tbl_sys_post"."create_by" IS '【创建者】';
COMMENT ON COLUMN "public"."tbl_sys_post"."create_time" IS '【创建时间】';
COMMENT ON COLUMN "public"."tbl_sys_post"."update_by" IS '【更新者】';
COMMENT ON COLUMN "public"."tbl_sys_post"."update_time" IS '【更新时间】';
COMMENT ON COLUMN "public"."tbl_sys_post"."remark" IS '【备注】';
COMMENT ON TABLE "public"."tbl_sys_post" IS '【岗位信息表】';
-- ----------------------------
-- Table structure for tbl_sys_role
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_sys_role";
CREATE TABLE "public"."tbl_sys_role" (
"role_id" int8 NOT NULL DEFAULT nextval('seq_sys_role'::regclass),
"version_num" int4 NOT NULL DEFAULT 0,
"rec_token" varchar(10) COLLATE "pg_catalog"."default" NOT NULL DEFAULT '1'::character varying,
"role_name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
"role_key" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"role_sort" int4 NOT NULL,
"data_scope" varchar(1) COLLATE "pg_catalog"."default",
"menu_check_strictly" varchar(1) COLLATE "pg_catalog"."default",
"dept_check_strictly" varchar(1) COLLATE "pg_catalog"."default",
"status" varchar(1) COLLATE "pg_catalog"."default" NOT NULL,
"del_flag" varchar(1) COLLATE "pg_catalog"."default",
"create_by" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6),
"update_by" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6),
"remark" varchar(500) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."tbl_sys_role"."role_id" IS '【角色ID】';
COMMENT ON COLUMN "public"."tbl_sys_role"."version_num" IS '【版本号】';
COMMENT ON COLUMN "public"."tbl_sys_role"."rec_token" IS '【随机码】';
COMMENT ON COLUMN "public"."tbl_sys_role"."role_name" IS '【角色名称】';
COMMENT ON COLUMN "public"."tbl_sys_role"."role_key" IS '【角色权限字符串】';
COMMENT ON COLUMN "public"."tbl_sys_role"."role_sort" IS '【显示顺序】';
COMMENT ON COLUMN "public"."tbl_sys_role"."data_scope" IS '【数据范围】1全部数据权限 2自定数据权限 3本部门数据权限 4本部门及以下数据权限';
COMMENT ON COLUMN "public"."tbl_sys_role"."menu_check_strictly" IS '【菜单树选择项是否关联显示】';
COMMENT ON COLUMN "public"."tbl_sys_role"."dept_check_strictly" IS '【部门树选择项是否关联显示】';
COMMENT ON COLUMN "public"."tbl_sys_role"."status" IS '【角色状态】0正常 1停用';
COMMENT ON COLUMN "public"."tbl_sys_role"."del_flag" IS '【删除标志】0代表存在 2代表删除';
COMMENT ON COLUMN "public"."tbl_sys_role"."create_by" IS '【创建者】';
COMMENT ON COLUMN "public"."tbl_sys_role"."create_time" IS '【创建时间】';
COMMENT ON COLUMN "public"."tbl_sys_role"."update_by" IS '【更新者】';
COMMENT ON COLUMN "public"."tbl_sys_role"."update_time" IS '【更新时间】';
COMMENT ON COLUMN "public"."tbl_sys_role"."remark" IS '【备注】';
COMMENT ON TABLE "public"."tbl_sys_role" IS '【角色信息表】';
-- ----------------------------
-- Table structure for tbl_sys_role_dept
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_sys_role_dept";
CREATE TABLE "public"."tbl_sys_role_dept" (
"role_id" int8 NOT NULL,
"dept_id" int8 NOT NULL
)
;
COMMENT ON COLUMN "public"."tbl_sys_role_dept"."role_id" IS '【角色ID】';
COMMENT ON COLUMN "public"."tbl_sys_role_dept"."dept_id" IS '【部门ID】';
COMMENT ON TABLE "public"."tbl_sys_role_dept" IS '【角色和部门关联表】';
-- ----------------------------
-- Table structure for tbl_sys_role_menu
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_sys_role_menu";
CREATE TABLE "public"."tbl_sys_role_menu" (
"role_id" int8 NOT NULL,
"menu_id" int8 NOT NULL
)
;
COMMENT ON COLUMN "public"."tbl_sys_role_menu"."role_id" IS '【角色ID】';
COMMENT ON COLUMN "public"."tbl_sys_role_menu"."menu_id" IS '【菜单ID】';
COMMENT ON TABLE "public"."tbl_sys_role_menu" IS '【角色和菜单关联表】';
-- ----------------------------
-- Table structure for tbl_sys_user
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_sys_user";
CREATE TABLE "public"."tbl_sys_user" (
"user_id" int8 NOT NULL DEFAULT nextval('seq_sys_user'::regclass),
"version_num" int4 NOT NULL DEFAULT 0,
"rec_token" varchar(10) COLLATE "pg_catalog"."default" NOT NULL DEFAULT '1'::character varying,
"dept_id" int8,
"user_name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
"nick_name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
"user_type" varchar(2) COLLATE "pg_catalog"."default",
"email" varchar(50) COLLATE "pg_catalog"."default",
"phonenumber" varchar(11) COLLATE "pg_catalog"."default",
"sex" char(1) COLLATE "pg_catalog"."default",
"avatar" varchar(100) COLLATE "pg_catalog"."default",
"password" varchar(100) COLLATE "pg_catalog"."default",
"status" char(1) COLLATE "pg_catalog"."default",
"del_flag" char(1) COLLATE "pg_catalog"."default" DEFAULT '0'::bpchar,
"login_ip" varchar(128) COLLATE "pg_catalog"."default",
"login_date" timestamp(6),
"is_locked" char(1) COLLATE "pg_catalog"."default",
"login_error_count" int4,
"last_login_error_time" timestamp(6),
"create_by" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6),
"update_by" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6),
"remark" varchar(500) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."tbl_sys_user"."user_id" IS '【用户ID】';
COMMENT ON COLUMN "public"."tbl_sys_user"."version_num" IS '【版本号】';
COMMENT ON COLUMN "public"."tbl_sys_user"."rec_token" IS '【随机码】';
COMMENT ON COLUMN "public"."tbl_sys_user"."dept_id" IS '【部门ID】';
COMMENT ON COLUMN "public"."tbl_sys_user"."user_name" IS '【用户账号】';
COMMENT ON COLUMN "public"."tbl_sys_user"."nick_name" IS '【用户昵称】';
COMMENT ON COLUMN "public"."tbl_sys_user"."user_type" IS '【用户类型】00系统用户';
COMMENT ON COLUMN "public"."tbl_sys_user"."email" IS '【用户邮箱】';
COMMENT ON COLUMN "public"."tbl_sys_user"."phonenumber" IS '【手机号码】';
COMMENT ON COLUMN "public"."tbl_sys_user"."sex" IS '【用户性别】0男 1女 2未知';
COMMENT ON COLUMN "public"."tbl_sys_user"."avatar" IS '【头像地址】';
COMMENT ON COLUMN "public"."tbl_sys_user"."password" IS '【密码】';
COMMENT ON COLUMN "public"."tbl_sys_user"."status" IS '【帐号状态】0正常 1停用';
COMMENT ON COLUMN "public"."tbl_sys_user"."del_flag" IS '【删除标志】0代表存在 2代表删除';
COMMENT ON COLUMN "public"."tbl_sys_user"."login_ip" IS '【最后登录IP】';
COMMENT ON COLUMN "public"."tbl_sys_user"."login_date" IS '【最后登录时间】';
COMMENT ON COLUMN "public"."tbl_sys_user"."is_locked" IS '【锁定状态】';
COMMENT ON COLUMN "public"."tbl_sys_user"."login_error_count" IS '【登陆错误次数】';
COMMENT ON COLUMN "public"."tbl_sys_user"."last_login_error_time" IS '【登陆错误时间】';
COMMENT ON COLUMN "public"."tbl_sys_user"."create_by" IS '【创建者】';
COMMENT ON COLUMN "public"."tbl_sys_user"."create_time" IS '【创建时间】';
COMMENT ON COLUMN "public"."tbl_sys_user"."update_by" IS '【更新者】';
COMMENT ON COLUMN "public"."tbl_sys_user"."update_time" IS '【更新时间】';
COMMENT ON COLUMN "public"."tbl_sys_user"."remark" IS '【备注】';
COMMENT ON TABLE "public"."tbl_sys_user" IS '【用户信息表】';
-- ----------------------------
-- Table structure for tbl_sys_user_post
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_sys_user_post";
CREATE TABLE "public"."tbl_sys_user_post" (
"user_id" int8 NOT NULL,
"post_id" int8 NOT NULL
)
;
COMMENT ON COLUMN "public"."tbl_sys_user_post"."user_id" IS '【用户ID】';
COMMENT ON COLUMN "public"."tbl_sys_user_post"."post_id" IS '【岗位ID】';
COMMENT ON TABLE "public"."tbl_sys_user_post" IS '【用户与岗位关联表】';
-- ----------------------------
-- Table structure for tbl_sys_user_role
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_sys_user_role";
CREATE TABLE "public"."tbl_sys_user_role" (
"user_id" int8 NOT NULL,
"role_id" int8 NOT NULL
)
;
COMMENT ON COLUMN "public"."tbl_sys_user_role"."user_id" IS '【用户ID】';
COMMENT ON COLUMN "public"."tbl_sys_user_role"."role_id" IS '【角色ID】';
COMMENT ON TABLE "public"."tbl_sys_user_role" IS '【用户和角色关联表】';
-- ----------------------------
-- Table structure for tbl_sys_warning_contact
-- ----------------------------
-- DROP TABLE IF EXISTS "public"."tbl_sys_warning_contact";
CREATE TABLE "public"."tbl_sys_warning_contact" (
"id" int8 NOT NULL DEFAULT nextval('seq_sys_warning_contact'::regclass),
"version_num" int4 NOT NULL DEFAULT 0,
"rec_token" varchar(10) COLLATE "pg_catalog"."default" NOT NULL DEFAULT '1'::character varying,
"warning_type" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
"contact_type" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
"contact" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
"status" varchar(32) COLLATE "pg_catalog"."default" NOT NULL DEFAULT '00'::character varying,
"create_by" varchar(32) COLLATE "pg_catalog"."default",
"create_time" timestamp(6),
"update_by" varchar(32) COLLATE "pg_catalog"."default",
"update_time" timestamp(6)
)
;
COMMENT ON COLUMN "public"."tbl_sys_warning_contact"."id" IS '【主键id】';
COMMENT ON COLUMN "public"."tbl_sys_warning_contact"."version_num" IS '【版本号】';
COMMENT ON COLUMN "public"."tbl_sys_warning_contact"."rec_token" IS '【随机码】';
COMMENT ON COLUMN "public"."tbl_sys_warning_contact"."warning_type" IS '【告警场景】';
COMMENT ON COLUMN "public"."tbl_sys_warning_contact"."contact_type" IS '【类型】手机号:01 邮箱:02';
COMMENT ON COLUMN "public"."tbl_sys_warning_contact"."contact" IS '【联系方式】';
COMMENT ON COLUMN "public"."tbl_sys_warning_contact"."status" IS '【状态】正常:00 停用:01 删除:03';
COMMENT ON COLUMN "public"."tbl_sys_warning_contact"."create_by" IS '【创建人】';
COMMENT ON COLUMN "public"."tbl_sys_warning_contact"."create_time" IS '【创建时间】';
COMMENT ON COLUMN "public"."tbl_sys_warning_contact"."update_by" IS '【更新人】';
COMMENT ON COLUMN "public"."tbl_sys_warning_contact"."update_time" IS '【更新时间】';
COMMENT ON TABLE "public"."tbl_sys_warning_contact" IS '【告警联系方式表】';
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."seq_sys_config"', 4, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."seq_sys_dept"', 8, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."seq_sys_dict_data"', 54, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."seq_sys_dict_type"', 28, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."seq_sys_job"', 1, false);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."seq_sys_job_log"', 1, false);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."seq_sys_logininfor"', 976, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."seq_sys_menu"', 3125, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."seq_sys_notice"', 7, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."seq_sys_oper_log"', 560, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."seq_sys_post"', 1, false);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."seq_sys_role"', 3, false);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."seq_sys_user"', 100004, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."seq_sys_warning_contact"', 9, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."seq_sys_warning_log"', 1, false);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."tbl_data_table_index_id_seq"
OWNED BY "public"."tbl_data_table_index"."id";
SELECT setval('"public"."tbl_data_table_index_id_seq"', 1, false);
-- ----------------------------
-- Primary Key structure for table tbl_data_table
-- ----------------------------
ALTER TABLE "public"."tbl_data_table" ADD CONSTRAINT "tbl_data_table_pkey" PRIMARY KEY ("table_id");
-- ----------------------------
-- Primary Key structure for table tbl_data_table_index
-- ----------------------------
ALTER TABLE "public"."tbl_data_table_index" ADD CONSTRAINT "tbl_data_table_index_pkey" PRIMARY KEY ("id");
-- ----------------------------
-- Primary Key structure for table tbl_sys_config
-- ----------------------------
ALTER TABLE "public"."tbl_sys_config" ADD CONSTRAINT "pk_tbl_sys_config" PRIMARY KEY ("config_id");
-- ----------------------------
-- Primary Key structure for table tbl_sys_dept
-- ----------------------------
ALTER TABLE "public"."tbl_sys_dept" ADD CONSTRAINT "pk_tbl_sys_dept" PRIMARY KEY ("dept_id");
-- ----------------------------
-- Primary Key structure for table tbl_sys_dict_data
-- ----------------------------
ALTER TABLE "public"."tbl_sys_dict_data" ADD CONSTRAINT "pk_tbl_sys_dict_data" PRIMARY KEY ("dict_code");
-- ----------------------------
-- Primary Key structure for table tbl_sys_dict_type
-- ----------------------------
ALTER TABLE "public"."tbl_sys_dict_type" ADD CONSTRAINT "pk_tbl_sys_dict_type" PRIMARY KEY ("dict_id");
-- ----------------------------
-- Primary Key structure for table tbl_sys_job
-- ----------------------------
ALTER TABLE "public"."tbl_sys_job" ADD CONSTRAINT "pk_tbl_sys_job" PRIMARY KEY ("job_id", "job_name", "job_group");
-- ----------------------------
-- Primary Key structure for table tbl_sys_job_log
-- ----------------------------
ALTER TABLE "public"."tbl_sys_job_log" ADD CONSTRAINT "pk_tbl_sys_job_log" PRIMARY KEY ("job_log_id");
-- ----------------------------
-- Primary Key structure for table tbl_sys_logininfor
-- ----------------------------
ALTER TABLE "public"."tbl_sys_logininfor" ADD CONSTRAINT "pk_tbl_sys_logininfor" PRIMARY KEY ("info_id");
-- ----------------------------
-- Primary Key structure for table tbl_sys_menu
-- ----------------------------
ALTER TABLE "public"."tbl_sys_menu" ADD CONSTRAINT "pk_tbl_sys_menu" PRIMARY KEY ("menu_id");
-- ----------------------------
-- Primary Key structure for table tbl_sys_notice
-- ----------------------------
ALTER TABLE "public"."tbl_sys_notice" ADD CONSTRAINT "pk_tbl_sys_notice" PRIMARY KEY ("notice_id");
-- ----------------------------
-- Primary Key structure for table tbl_sys_oper_log
-- ----------------------------
ALTER TABLE "public"."tbl_sys_oper_log" ADD CONSTRAINT "pk_tbl_sys_oper_log" PRIMARY KEY ("oper_id");
-- ----------------------------
-- Primary Key structure for table tbl_sys_post
-- ----------------------------
ALTER TABLE "public"."tbl_sys_post" ADD CONSTRAINT "pk_tbl_sys_post" PRIMARY KEY ("post_id");
-- ----------------------------
-- Primary Key structure for table tbl_sys_role
-- ----------------------------
ALTER TABLE "public"."tbl_sys_role" ADD CONSTRAINT "pk_tbl_sys_role" PRIMARY KEY ("role_id");
-- ----------------------------
-- Primary Key structure for table tbl_sys_role_dept
-- ----------------------------
ALTER TABLE "public"."tbl_sys_role_dept" ADD CONSTRAINT "pk_tbl_sys_role_dept" PRIMARY KEY ("role_id", "dept_id");
-- ----------------------------
-- Primary Key structure for table tbl_sys_role_menu
-- ----------------------------
ALTER TABLE "public"."tbl_sys_role_menu" ADD CONSTRAINT "pk_tbl_sys_role_menu" PRIMARY KEY ("role_id", "menu_id");
-- ----------------------------
-- Primary Key structure for table tbl_sys_user
-- ----------------------------
ALTER TABLE "public"."tbl_sys_user" ADD CONSTRAINT "pk_tbl_sys_user" PRIMARY KEY ("user_id");
-- ----------------------------
-- Primary Key structure for table tbl_sys_user_post
-- ----------------------------
ALTER TABLE "public"."tbl_sys_user_post" ADD CONSTRAINT "pk_tbl_sys_user_post" PRIMARY KEY ("user_id", "post_id");
-- ----------------------------
-- Primary Key structure for table tbl_sys_user_role
-- ----------------------------
ALTER TABLE "public"."tbl_sys_user_role" ADD CONSTRAINT "pk_tbl_sys_user_role" PRIMARY KEY ("user_id", "role_id");
-- ----------------------------
-- Primary Key structure for table tbl_sys_warning_contact
-- ----------------------------
ALTER TABLE "public"."tbl_sys_warning_contact" ADD CONSTRAINT "pk_tbl_sys_warning_contact" PRIMARY KEY ("id");