@ -12,7 +12,7 @@
Target Server Version : 140002
File Encoding : 65001
Date : 0 1/ 05 / 2022 23 : 17 : 07
Date : 0 2/ 05 / 2022 16 : 42 : 43
* /
@ -470,6 +470,15 @@ INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1 ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Sequence structure for system_user_post_seq
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
DROP SEQUENCE IF EXISTS "system_user_post_seq" ;
CREATE SEQUENCE "system_user_post_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1 ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Sequence structure for system_user_role_seq
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -3455,6 +3464,7 @@ INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "cont
INSERT INTO "system_sms_template" ( "id" , "type" , "status" , "code" , "name" , "content" , "params" , "remark" , "api_template_id" , "channel_id" , "channel_code" , "creator" , "create_time" , "updater" , "update_time" , "deleted" ) VALUES ( 11 , 2 , 0 , ' bpm_process_instance_approve ' , ' 【 工 作 流 】 流 程 被 通 过 ' , ' 您 的 流 程 被 审 批 通 过 : { processInstanceName } , 查 看 链 接 : { detailUrl } ' , ' [ "processInstanceName" , "detailUrl" ] ' , NULL , ' suibian ' , 4 , ' DEBUG_DING_TALK ' , '1' , ' 2022 - 01 - 22 00 : 04 : 31 ' , '1' , ' 2022 - 03 - 27 20 : 32 : 21 ' , 0 ) ;
INSERT INTO "system_sms_template" ( "id" , "type" , "status" , "code" , "name" , "content" , "params" , "remark" , "api_template_id" , "channel_id" , "channel_code" , "creator" , "create_time" , "updater" , "update_time" , "deleted" ) VALUES ( 12 , 2 , 0 , ' demo ' , ' 演 示 模 板 ' , ' 我 就 是 测 试 一 下 下 ' , ' [ ] ' , NULL , ' biubiubiu ' , 6 , ' DEBUG_DING_TALK ' , '1' , ' 2022 - 04 - 10 23 : 22 : 49 ' , '1' , ' 2022 - 04 - 10 23 : 22 : 49 ' , 0 ) ;
INSERT INTO "system_sms_template" ( "id" , "type" , "status" , "code" , "name" , "content" , "params" , "remark" , "api_template_id" , "channel_id" , "channel_code" , "creator" , "create_time" , "updater" , "update_time" , "deleted" ) VALUES ( 10 , 2 , 0 , ' bpm_process_instance_reject ' , ' 【 工 作 流 】 流 程 被 不 通 过 ' , ' 您 的 流 程 被 审 批 不 通 过 : { processInstanceName } , 原 因 : { reason } , 查 看 链 接 : { detailUrl } ' , ' [ "processInstanceName" , "reason" , "detailUrl" ] ' , NULL , ' suibian ' , 4 , ' DEBUG_DING_TALK ' , '1' , ' 2022 - 01 - 22 00 : 03 : 31 ' , '1' , ' 2022 - 01 - 22 00 : 24 : 31 ' , 0 ) ;
INSERT INTO "system_sms_template" ( "id" , "type" , "status" , "code" , "name" , "content" , "params" , "remark" , "api_template_id" , "channel_id" , "channel_code" , "creator" , "create_time" , "updater" , "update_time" , "deleted" ) VALUES ( 13 , 1 , 0 , ' admin - sms - login ' , ' 后 台 用 户 短 信 登 录 ' , ' 您 的 验 证 码 是 { code } ' , ' [ "code" ] ' , ' ' , ' 4372216 ' , 1 , ' YUN_PIAN ' , '1' , ' 2021 - 10 - 11 0 8 : 10 : 00 ' , '1' , ' 2021 - 10 - 11 0 8 : 10 : 00 ' , 0 ) ;
COMMIT ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -3626,72 +3636,39 @@ INSERT INTO "system_tenant_package" ("id", "name", "status", "remark", "menu_ids
COMMIT ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Table structure for system_user
- - Table structure for system_user _post
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
DROP TABLE IF EXISTS "system_user ";
CREATE TABLE "system_user " (
DROP TABLE IF EXISTS "system_user _post ";
CREATE TABLE "system_user _post " (
"id" int8 NOT NULL ,
"username" varchar ( 30 ) COLLATE "pg_catalog" . "default" NOT NULL ,
"password" varchar ( 100 ) COLLATE "pg_catalog" . "default" NOT NULL ,
"nickname" varchar ( 30 ) COLLATE "pg_catalog" . "default" NOT NULL ,
"remark" varchar ( 500 ) COLLATE "pg_catalog" . "default" ,
"dept_id" int8 ,
"post_ids" varchar ( 255 ) COLLATE "pg_catalog" . "default" ,
"email" varchar ( 50 ) COLLATE "pg_catalog" . "default" ,
"mobile" varchar ( 11 ) COLLATE "pg_catalog" . "default" ,
"sex" int2 ,
"avatar" varchar ( 100 ) COLLATE "pg_catalog" . "default" ,
"status" int2 NOT NULL ,
"login_ip" varchar ( 50 ) COLLATE "pg_catalog" . "default" ,
"login_date" timestamp ( 6 ) ,
"user_id" int8 NOT NULL ,
"post_id" int8 NOT NULL ,
"creator" varchar ( 64 ) COLLATE "pg_catalog" . "default" ,
"create_time" timestamp ( 6 ) NOT NULL ,
"updater" varchar ( 64 ) COLLATE "pg_catalog" . "default" ,
"update_time" timestamp ( 6 ) NOT NULL ,
" deleted" int2 NOT NULL DEFAULT 0 ,
" tenant_id" int8 NOT NULL DEFAULT 0
"tenant_id" int8 NOT NULL ,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_user" . "id" IS ' 用 户 ID ' ;
COMMENT ON COLUMN "system_user" . "username" IS ' 用 户 账 号 ' ;
COMMENT ON COLUMN "system_user" . "password" IS ' 密 码 ' ;
COMMENT ON COLUMN "system_user" . "nickname" IS ' 用 户 昵 称 ' ;
COMMENT ON COLUMN "system_user" . "remark" IS ' 备 注 ' ;
COMMENT ON COLUMN "system_user" . "dept_id" IS ' 部 门 ID ' ;
COMMENT ON COLUMN "system_user" . "post_ids" IS ' 岗 位 编 号 数 组 ' ;
COMMENT ON COLUMN "system_user" . "email" IS ' 用 户 邮 箱 ' ;
COMMENT ON COLUMN "system_user" . "mobile" IS ' 手 机 号 码 ' ;
COMMENT ON COLUMN "system_user" . "sex" IS ' 用 户 性 别 ' ;
COMMENT ON COLUMN "system_user" . "avatar" IS ' 头 像 地 址 ' ;
COMMENT ON COLUMN "system_user" . "status" IS ' 帐 号 状 态 ( 0 正 常 1 停 用 ) ' ;
COMMENT ON COLUMN "system_user" . "login_ip" IS ' 最 后 登 录 IP ' ;
COMMENT ON COLUMN "system_user" . "login_date" IS ' 最 后 登 录 时 间 ' ;
COMMENT ON COLUMN "system_user" . "creator" IS ' 创 建 者 ' ;
COMMENT ON COLUMN "system_user" . "create_time" IS ' 创 建 时 间 ' ;
COMMENT ON COLUMN "system_user" . "updater" IS ' 更 新 者 ' ;
COMMENT ON COLUMN "system_user" . "update_time" IS ' 更 新 时 间 ' ;
COMMENT ON COLUMN "system_user" . "deleted" IS ' 是 否 删 除 ' ;
COMMENT ON COLUMN "system_user" . "tenant_id" IS ' 租 户 编 号 ' ;
COMMENT ON TABLE "system_user" IS ' 用 户 信 息 表 ' ;
COMMENT ON COLUMN "system_user_post" . "id" IS ' id ' ;
COMMENT ON COLUMN "system_user_post" . "user_id" IS ' 用 户 ID ' ;
COMMENT ON COLUMN "system_user_post" . "post_id" IS ' 岗 位 ID ' ;
COMMENT ON COLUMN "system_user_post" . "creator" IS ' 创 建 者 ' ;
COMMENT ON COLUMN "system_user_post" . "create_time" IS ' 创 建 时 间 ' ;
COMMENT ON COLUMN "system_user_post" . "updater" IS ' 更 新 者 ' ;
COMMENT ON COLUMN "system_user_post" . "update_time" IS ' 更 新 时 间 ' ;
COMMENT ON COLUMN "system_user_post" . "tenant_id" IS ' 租 户 编 号 ' ;
COMMENT ON COLUMN "system_user_post" . "deleted" IS ' 是 否 删 除 ' ;
COMMENT ON TABLE "system_user_post" IS ' 用 户 岗 位 表 ' ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Records of system_user
- - Records of system_user_post
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
BEGIN ;
INSERT INTO "system_user" ( "id" , "username" , "password" , "nickname" , "remark" , "dept_id" , "post_ids" , "email" , "mobile" , "sex" , "avatar" , "status" , "login_ip" , "login_date" , "creator" , "create_time" , "updater" , "update_time" , "deleted" , "tenant_id" ) VALUES ( 1 , ' admin ' , ' $2a$10$0acJOIk2D25 / oC87nyclE . .0 lzeu9DtQ / n3geP4fkun / zIVRhHJIO ' , ' 芋 道 源 码 ' , ' 管 理 员 ' , 103 , ' [ 1 ] ' , ' aoteman @ 126. com ' , ' 15612345678 ' , 1 , ' http : //test.yudao.iocoder.cn/48934f2f-92d4-4250-b917-d10d2b262c6a', 0, '127.0.0.1', '2022-04-30 00:06:21', 'admin', '2021-01-05 17:03:47', NULL, '2022-04-30 00:06:21', 0, 1);
INSERT INTO "system_user" ( "id" , "username" , "password" , "nickname" , "remark" , "dept_id" , "post_ids" , "email" , "mobile" , "sex" , "avatar" , "status" , "login_ip" , "login_date" , "creator" , "create_time" , "updater" , "update_time" , "deleted" , "tenant_id" ) VALUES ( 100 , ' yudao ' , ' $2a$10$11U48RhyJ5pSBYWSn12AD . / ld671 . ycSzJHbyrtpeoMeYiw31eo8a ' , ' 芋 道 ' , ' 不 要 吓 我 ' , 104 , ' [ 1 ] ' , ' yudao @iocoder.cn ' , ' 15601691300 ' , 1 , ' ' , 1 , ' ' , NULL , ' ' , ' 2021 - 01 - 07 0 9 : 07 : 17 ' , ' 104 ' , ' 2021 - 12 - 16 0 9 : 26 : 10 ' , 0 , 1 ) ;
INSERT INTO "system_user" ( "id" , "username" , "password" , "nickname" , "remark" , "dept_id" , "post_ids" , "email" , "mobile" , "sex" , "avatar" , "status" , "login_ip" , "login_date" , "creator" , "create_time" , "updater" , "update_time" , "deleted" , "tenant_id" ) VALUES ( 103 , ' yuanma ' , ' $2a$10$wWoPT7sqriM2O1YXRL . je . GiL538OR6ZTN8aQZr9JAGdnpCH2tpYe ' , ' 源 码 ' , NULL , 106 , NULL , ' yuanma @iocoder.cn ' , ' 15601701300 ' , 0 , ' ' , 0 , ' 127.0 .0 .1 ' , ' 2022 - 01 - 18 00 : 33 : 40 ' , ' ' , ' 2021 - 01 - 13 23 : 50 : 35 ' , NULL , ' 2022 - 01 - 18 00 : 33 : 40 ' , 0 , 1 ) ;
INSERT INTO "system_user" ( "id" , "username" , "password" , "nickname" , "remark" , "dept_id" , "post_ids" , "email" , "mobile" , "sex" , "avatar" , "status" , "login_ip" , "login_date" , "creator" , "create_time" , "updater" , "update_time" , "deleted" , "tenant_id" ) VALUES ( 104 , ' test ' , ' $2a$10$e5RpuDCC0GYSt0Hvd2 . CjujIXwgGct4SnXi6dVGxdgFsnqgEryk5a ' , ' 测 试 号 ' , NULL , 107 , ' [ ] ' , ' 111 @qq.com ' , ' 15601691200 ' , 1 , ' ' , 0 , ' 127.0 .0 .1 ' , ' 2022 - 03 - 19 21 : 46 : 19 ' , ' ' , ' 2021 - 01 - 21 02 : 13 : 53 ' , NULL , ' 2022 - 03 - 19 21 : 46 : 19 ' , 0 , 1 ) ;
INSERT INTO "system_user" ( "id" , "username" , "password" , "nickname" , "remark" , "dept_id" , "post_ids" , "email" , "mobile" , "sex" , "avatar" , "status" , "login_ip" , "login_date" , "creator" , "create_time" , "updater" , "update_time" , "deleted" , "tenant_id" ) VALUES ( 107 , ' admin107 ' , ' $2a$10$dYOOBKMO93v / . ReCqzyFg . o67Tqk . bbc2bhrpyBGkIw9aypCtr2pm ' , ' 芋 艿 ' , NULL , NULL , NULL , ' ' , ' 15601691300 ' , 0 , ' ' , 0 , ' ' , NULL , '1' , ' 2022 - 02 - 20 22 : 59 : 33 ' , '1' , ' 2022 - 02 - 27 0 8 : 26 : 51 ' , 0 , 118 ) ;
INSERT INTO "system_user" ( "id" , "username" , "password" , "nickname" , "remark" , "dept_id" , "post_ids" , "email" , "mobile" , "sex" , "avatar" , "status" , "login_ip" , "login_date" , "creator" , "create_time" , "updater" , "update_time" , "deleted" , "tenant_id" ) VALUES ( 108 , ' admin108 ' , ' $2a$10$y6mfvKoNYL1GXWak8nYwVOH . kCWqjactkzdoIDgiKl93WN3Ejg . Lu ' , ' 芋 艿 ' , NULL , NULL , NULL , ' ' , ' 15601691300 ' , 0 , ' ' , 0 , ' ' , NULL , '1' , ' 2022 - 02 - 20 23 : 00 : 50 ' , '1' , ' 2022 - 02 - 27 0 8 : 26 : 53 ' , 0 , 119 ) ;
INSERT INTO "system_user" ( "id" , "username" , "password" , "nickname" , "remark" , "dept_id" , "post_ids" , "email" , "mobile" , "sex" , "avatar" , "status" , "login_ip" , "login_date" , "creator" , "create_time" , "updater" , "update_time" , "deleted" , "tenant_id" ) VALUES ( 109 , ' admin109 ' , ' $2a$10$JAqvH0tEc0I7dfDVBI7zyuB4E3j . uH6daIjV53 . vUS6PknFkDJkuK ' , ' 芋 艿 ' , NULL , NULL , NULL , ' ' , ' 15601691300 ' , 0 , ' ' , 0 , ' ' , NULL , '1' , ' 2022 - 02 - 20 23 : 11 : 50 ' , '1' , ' 2022 - 02 - 27 0 8 : 26 : 56 ' , 0 , 120 ) ;
INSERT INTO "system_user" ( "id" , "username" , "password" , "nickname" , "remark" , "dept_id" , "post_ids" , "email" , "mobile" , "sex" , "avatar" , "status" , "login_ip" , "login_date" , "creator" , "create_time" , "updater" , "update_time" , "deleted" , "tenant_id" ) VALUES ( 110 , ' admin110 ' , ' $2a$10$qYxoXs0ogPHgYllyEneYde9xcCW5hZgukrxeXZ9lmLhKse8TK6IwW ' , ' 小 王 ' , NULL , NULL , NULL , ' ' , ' 15601691300 ' , 0 , ' ' , 0 , ' 127.0 .0 .1 ' , ' 2022 - 02 - 23 19 : 36 : 28 ' , '1' , ' 2022 - 02 - 22 00 : 56 : 14 ' , NULL , ' 2022 - 02 - 27 0 8 : 26 : 59 ' , 0 , 121 ) ;
INSERT INTO "system_user" ( "id" , "username" , "password" , "nickname" , "remark" , "dept_id" , "post_ids" , "email" , "mobile" , "sex" , "avatar" , "status" , "login_ip" , "login_date" , "creator" , "create_time" , "updater" , "update_time" , "deleted" , "tenant_id" ) VALUES ( 111 , ' test ' , ' $2a$10$mExveopHUx9Q4QiLtAzhDeH3n4 / QlNLzEsM4AqgxKrU . ciUZDXZCy ' , ' 测 试 用 户 ' , NULL , NULL , ' [ ] ' , ' ' , ' ' , 0 , ' ' , 0 , ' ' , NULL , ' 110 ' , ' 2022 - 02 - 23 13 : 14 : 33 ' , ' 110 ' , ' 2022 - 02 - 23 13 : 14 : 33 ' , 0 , 121 ) ;
INSERT INTO "system_user" ( "id" , "username" , "password" , "nickname" , "remark" , "dept_id" , "post_ids" , "email" , "mobile" , "sex" , "avatar" , "status" , "login_ip" , "login_date" , "creator" , "create_time" , "updater" , "update_time" , "deleted" , "tenant_id" ) VALUES ( 112 , ' newobject ' , ' $2a$10$jh5MsR . ud / gKe3mVeUp5t . nEXGDSmHyv5OYjWQwHO8wlGmMSI9Twy ' , ' 新 对 象 ' , NULL , NULL , ' [ ] ' , ' ' , ' ' , 0 , ' ' , 0 , ' ' , NULL , '1' , ' 2022 - 02 - 23 19 : 0 8 : 03 ' , '1' , ' 2022 - 02 - 23 19 : 0 8 : 03 ' , 0 , 1 ) ;
INSERT INTO "system_user" ( "id" , "username" , "password" , "nickname" , "remark" , "dept_id" , "post_ids" , "email" , "mobile" , "sex" , "avatar" , "status" , "login_ip" , "login_date" , "creator" , "create_time" , "updater" , "update_time" , "deleted" , "tenant_id" ) VALUES ( 113 , ' aoteman ' , ' $2a$10$0acJOIk2D25 / oC87nyclE . .0 lzeu9DtQ / n3geP4fkun / zIVRhHJIO ' , ' 芋 道 ' , NULL , NULL , NULL , ' ' , ' 15601691300 ' , 0 , ' ' , 0 , ' 127.0 .0 .1 ' , ' 2022 - 03 - 19 18 : 38 : 51 ' , '1' , ' 2022 - 03 - 07 21 : 37 : 58 ' , NULL , ' 2022 - 03 - 19 18 : 38 : 51 ' , 0 , 122 ) ;
INSERT INTO "system_user" ( "id" , "username" , "password" , "nickname" , "remark" , "dept_id" , "post_ids" , "email" , "mobile" , "sex" , "avatar" , "status" , "login_ip" , "login_date" , "creator" , "create_time" , "updater" , "update_time" , "deleted" , "tenant_id" ) VALUES ( 114 , ' hrmgr ' , ' $2a$10$TR4eybBioGRhBmDBWkqWLO6NIh3mzYa8KBKDDB5woiGYFVlRAi . fu ' , ' hr 小 姐 姐 ' , NULL , NULL , ' [ 3 ] ' , ' ' , ' ' , 0 , ' ' , 0 , ' 127.0 .0 .1 ' , ' 2022 - 03 - 19 22 : 15 : 43 ' , '1' , ' 2022 - 03 - 19 21 : 50 : 58 ' , NULL , ' 2022 - 03 - 19 22 : 15 : 43 ' , 0 , 1 ) ;
INSERT INTO "system_user" ( "id" , "username" , "password" , "nickname" , "remark" , "dept_id" , "post_ids" , "email" , "mobile" , "sex" , "avatar" , "status" , "login_ip" , "login_date" , "creator" , "create_time" , "updater" , "update_time" , "deleted" , "tenant_id" ) VALUES ( 115 , ' aotemane ' , ' $2a$10$ / WCwGHu1eq0wOVDd / u8HweJ0gJCHyLS6T7ndCqI8UXZAQom1etk2e ' , '1' , ' 11 ' , 100 , ' [ ] ' , ' ' , ' ' , 0 , ' ' , 0 , ' ' , NULL , '1' , ' 2022 - 04 - 30 02 : 55 : 43 ' , '1' , ' 2022 - 04 - 30 02 : 55 : 43 ' , 0 , 1 ) ;
INSERT INTO "system_user" ( "id" , "username" , "password" , "nickname" , "remark" , "dept_id" , "post_ids" , "email" , "mobile" , "sex" , "avatar" , "status" , "login_ip" , "login_date" , "creator" , "create_time" , "updater" , "update_time" , "deleted" , "tenant_id" ) VALUES ( 0 , ' admin1 ' , ' $2a$10$HXL5ExIqOYKJQiKp5uWqKOMOFdbRskMaF8ZEeaGF0PSs0GQFNyNgO ' , ' biu ' , NULL , NULL , ' [ ] ' , NULL , NULL , NULL , NULL , 0 , NULL , NULL , '1' , ' 2022 - 04 - 30 20 : 06 : 11.114 ' , '1' , ' 2022 - 04 - 30 20 : 06 : 11.114 ' , 0 , 1 ) ;
INSERT INTO "system_user_post" ( "id" , "user_id" , "post_id" , "creator" , "create_time" , "updater" , "update_time" , "tenant_id" , "deleted" ) VALUES ( 112 , 1 , 1 , ' admin ' , ' 2022 - 05 - 02 07 : 25 : 24 ' , ' admin ' , ' 2022 - 05 - 02 07 : 25 : 24 ' , 1 , 0 ) ;
INSERT INTO "system_user_post" ( "id" , "user_id" , "post_id" , "creator" , "create_time" , "updater" , "update_time" , "tenant_id" , "deleted" ) VALUES ( 113 , 100 , 1 , ' admin ' , ' 2022 - 05 - 02 07 : 25 : 24 ' , ' admin ' , ' 2022 - 05 - 02 07 : 25 : 24 ' , 1 , 0 ) ;
INSERT INTO "system_user_post" ( "id" , "user_id" , "post_id" , "creator" , "create_time" , "updater" , "update_time" , "tenant_id" , "deleted" ) VALUES ( 114 , 114 , 3 , ' admin ' , ' 2022 - 05 - 02 07 : 25 : 24 ' , ' admin ' , ' 2022 - 05 - 02 07 : 25 : 24 ' , 1 , 0 ) ;
COMMIT ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -3746,7 +3723,8 @@ COMMIT;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
DROP TABLE IF EXISTS "system_user_session" ;
CREATE TABLE "system_user_session" (
"id" varchar ( 32 ) COLLATE "pg_catalog" . "default" NOT NULL ,
"id" int8 NOT NULL ,
"token" varchar ( 32 ) COLLATE "pg_catalog" . "default" NOT NULL ,
"user_id" int8 NOT NULL ,
"user_type" int2 NOT NULL ,
"session_timeout" timestamp ( 6 ) NOT NULL ,
@ -3762,6 +3740,7 @@ CREATE TABLE "system_user_session" (
)
;
COMMENT ON COLUMN "system_user_session" . "id" IS ' 会 话 编 号 ' ;
COMMENT ON COLUMN "system_user_session" . "token" IS ' Token 令 牌 ' ;
COMMENT ON COLUMN "system_user_session" . "user_id" IS ' 用 户 编 号 ' ;
COMMENT ON COLUMN "system_user_session" . "user_type" IS ' 用 户 类 型 ' ;
COMMENT ON COLUMN "system_user_session" . "session_timeout" IS ' 会 话 超 时 时 间 ' ;
@ -3775,714 +3754,3 @@ COMMENT ON COLUMN "system_user_session"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_user_session" . "deleted" IS ' 是 否 删 除 ' ;
COMMENT ON COLUMN "system_user_session" . "tenant_id" IS ' 租 户 编 号 ' ;
COMMENT ON TABLE "system_user_session" IS ' 用 户 在 线 Session ' ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Records of system_user_session
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
BEGIN ;
COMMIT ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER SEQUENCE "act_evt_log_log_nr__seq"
OWNED BY "act_evt_log" . "log_nr_" ;
SELECT setval ( ' "act_evt_log_log_nr__seq" ' , 1 , false ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER SEQUENCE "act_hi_tsk_log_id__seq"
OWNED BY "act_hi_tsk_log" . "id_" ;
SELECT setval ( ' "act_hi_tsk_log_id__seq" ' , 1 , false ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SELECT setval ( ' "bpm_oa_leave_seq" ' , 1 , true ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SELECT setval ( ' "bpm_task_assign_rule_seq" ' , 1 , true ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SELECT setval ( ' "infra_api_access_log_seq" ' , 286 , true ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SELECT setval ( ' "infra_api_error_log_seq" ' , 40 , true ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SELECT setval ( ' "infra_job_log_seq" ' , 1 , true ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SELECT setval ( ' "infra_job_seq" ' , 2 , true ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SELECT setval ( ' "system_login_log_seq" ' , 12 , true ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SELECT setval ( ' "system_operate_log_seq" ' , 22 , true ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SELECT setval ( ' "system_sms_log_seq" ' , 1 , true ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Alter sequences owned by
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table act_evt_log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "act_evt_log" ADD CONSTRAINT "act_evt_log_pkey" PRIMARY KEY ( "log_nr_" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table bpm_form
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "bpm_form" ADD CONSTRAINT "bpm_form_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table bpm_oa_leave
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "bpm_oa_leave" ADD CONSTRAINT "bpm_oa_leave_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table bpm_process_definition_ext
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "bpm_process_definition_ext" ADD CONSTRAINT "bpm_process_definition_ext_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table bpm_process_instance_ext
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "bpm_process_instance_ext" ADD CONSTRAINT "bpm_process_instance_ext_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table bpm_task_assign_rule
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "bpm_task_assign_rule" ADD CONSTRAINT "bpm_task_assign_rule_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table bpm_task_ext
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "bpm_task_ext" ADD CONSTRAINT "bpm_task_ext_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table bpm_user_group
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "bpm_user_group" ADD CONSTRAINT "bpm_user_group_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table infra_api_access_log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "infra_api_access_log" ADD CONSTRAINT "infra_api_access_log_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table infra_api_error_log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "infra_api_error_log" ADD CONSTRAINT "infra_api_error_log_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table infra_codegen_column
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "infra_codegen_column" ADD CONSTRAINT "infra_codegen_column_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table infra_codegen_table
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "infra_codegen_table" ADD CONSTRAINT "infra_codegen_table_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table infra_config
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "infra_config" ADD CONSTRAINT "infra_config_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table infra_data_source_config
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "infra_data_source_config" ADD CONSTRAINT "infra_data_source_config_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table infra_file
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "infra_file" ADD CONSTRAINT "infra_file_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table infra_file_config
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "infra_file_config" ADD CONSTRAINT "infra_file_config_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table infra_file_content
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "infra_file_content" ADD CONSTRAINT "infra_file_content_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table infra_job
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "infra_job" ADD CONSTRAINT "infra_job_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table infra_job_log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "infra_job_log" ADD CONSTRAINT "infra_job_log_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table infra_test_demo
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "infra_test_demo" ADD CONSTRAINT "infra_test_demo_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Indexes structure for table member_user
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CREATE UNIQUE INDEX "uk_mobile" ON "member_user" USING btree (
"mobile" COLLATE "pg_catalog" . "default" "pg_catalog" . "text_ops" ASC NULLS LAST
) ;
COMMENT ON INDEX "uk_mobile" IS ' 手 机 号 ' ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table member_user
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "member_user" ADD CONSTRAINT "member_user_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table pay_app
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "pay_app" ADD CONSTRAINT "pay_app_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table pay_channel
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "pay_channel" ADD CONSTRAINT "pay_channel_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table pay_merchant
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "pay_merchant" ADD CONSTRAINT "pay_merchant_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table pay_notify_log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "pay_notify_log" ADD CONSTRAINT "pay_notify_log_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table pay_notify_task
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "pay_notify_task" ADD CONSTRAINT "pay_notify_task_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table pay_order
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "pay_order" ADD CONSTRAINT "pay_order_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table pay_order_extension
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "pay_order_extension" ADD CONSTRAINT "pay_order_extension_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table pay_refund
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "pay_refund" ADD CONSTRAINT "pay_refund_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table qrtz_blob_triggers
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "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 "qrtz_calendars" ADD CONSTRAINT "qrtz_calendars_pkey" PRIMARY KEY ( "sched_name" , "calendar_name" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table qrtz_cron_triggers
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "qrtz_locks" ADD CONSTRAINT "qrtz_locks_pkey" PRIMARY KEY ( "sched_name" , "lock_name" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table qrtz_paused_trigger_grps
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "qrtz_triggers" ADD CONSTRAINT "qrtz_triggers_pkey" PRIMARY KEY ( "sched_name" , "trigger_name" , "trigger_group" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_dept
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_dept" ADD CONSTRAINT "system_dept_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_dict_data
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_dict_data" ADD CONSTRAINT "system_dict_data_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Indexes structure for table system_dict_type
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CREATE UNIQUE INDEX "dict_type" ON "system_dict_type" USING btree (
"type" COLLATE "pg_catalog" . "default" "pg_catalog" . "text_ops" ASC NULLS LAST
) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_dict_type
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_dict_type" ADD CONSTRAINT "system_dict_type_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_error_code
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_error_code" ADD CONSTRAINT "system_error_code_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_login_log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_login_log" ADD CONSTRAINT "system_login_log_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_menu
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_menu" ADD CONSTRAINT "system_menu_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_notice
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_notice" ADD CONSTRAINT "system_notice_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_operate_log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_operate_log" ADD CONSTRAINT "system_operate_log_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_post
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_post" ADD CONSTRAINT "system_post_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_role
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_role" ADD CONSTRAINT "system_role_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_role_menu
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_role_menu" ADD CONSTRAINT "system_role_menu_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_sensitive_word
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_sensitive_word" ADD CONSTRAINT "system_sensitive_word_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_sms_channel
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_sms_channel" ADD CONSTRAINT "system_sms_channel_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Indexes structure for table system_sms_code
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CREATE INDEX "idx_mobile" ON "system_sms_code" USING btree (
"mobile" COLLATE "pg_catalog" . "default" "pg_catalog" . "text_ops" ASC NULLS LAST
) ;
COMMENT ON INDEX "idx_mobile" IS ' 手 机 号 ' ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_sms_code
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_sms_code" ADD CONSTRAINT "system_sms_code_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_sms_log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_sms_log" ADD CONSTRAINT "system_sms_log_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_sms_template
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_sms_template" ADD CONSTRAINT "system_sms_template_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_social_user
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_social_user" ADD CONSTRAINT "system_social_user_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_social_user_bind
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_social_user_bind" ADD CONSTRAINT "system_social_user_bind_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_tenant
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_tenant" ADD CONSTRAINT "system_tenant_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_tenant_package
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_tenant_package" ADD CONSTRAINT "system_tenant_package_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Indexes structure for table system_user
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CREATE UNIQUE INDEX "idx_username" ON "system_user" USING btree (
"username" COLLATE "pg_catalog" . "default" "pg_catalog" . "text_ops" ASC NULLS LAST ,
"update_time" "pg_catalog" . "timestamp_ops" ASC NULLS LAST ,
"tenant_id" "pg_catalog" . "int8_ops" ASC NULLS LAST
) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_user
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_user" ADD CONSTRAINT "system_user_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_user_role
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_user_role" ADD CONSTRAINT "system_user_role_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Primary Key structure for table system_user_session
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "system_user_session" ADD CONSTRAINT "system_user_session_pkey" PRIMARY KEY ( "id" ) ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Foreign Keys structure for table qrtz_blob_triggers
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "qrtz_blob_triggers" ADD CONSTRAINT "qrtz_blob_triggers_sched_name_trigger_name_trigger_group_fkey" FOREIGN KEY ( "sched_name" , "trigger_name" , "trigger_group" ) REFERENCES "qrtz_triggers" ( "sched_name" , "trigger_name" , "trigger_group" ) ON DELETE NO ACTION ON UPDATE NO ACTION ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Foreign Keys structure for table qrtz_cron_triggers
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "qrtz_cron_triggers" ADD CONSTRAINT "qrtz_cron_triggers_sched_name_trigger_name_trigger_group_fkey" FOREIGN KEY ( "sched_name" , "trigger_name" , "trigger_group" ) REFERENCES "qrtz_triggers" ( "sched_name" , "trigger_name" , "trigger_group" ) ON DELETE NO ACTION ON UPDATE NO ACTION ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Foreign Keys structure for table qrtz_simple_triggers
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "qrtz_simple_triggers" ADD CONSTRAINT "qrtz_simple_triggers_sched_name_trigger_name_trigger_group_fkey" FOREIGN KEY ( "sched_name" , "trigger_name" , "trigger_group" ) REFERENCES "qrtz_triggers" ( "sched_name" , "trigger_name" , "trigger_group" ) ON DELETE NO ACTION ON UPDATE NO ACTION ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Foreign Keys structure for table qrtz_simprop_triggers
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "qrtz_simprop_triggers" ADD CONSTRAINT "qrtz_simprop_triggers_sched_name_trigger_name_trigger_grou_fkey" FOREIGN KEY ( "sched_name" , "trigger_name" , "trigger_group" ) REFERENCES "qrtz_triggers" ( "sched_name" , "trigger_name" , "trigger_group" ) ON DELETE NO ACTION ON UPDATE NO ACTION ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Foreign Keys structure for table qrtz_triggers
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ALTER TABLE "qrtz_triggers" ADD CONSTRAINT "qrtz_triggers_sched_name_job_name_job_group_fkey" FOREIGN KEY ( "sched_name" , "job_name" , "job_group" ) REFERENCES "qrtz_job_details" ( "sched_name" , "job_name" , "job_group" ) ON DELETE NO ACTION ON UPDATE NO ACTION ;