update sql/postgresql/ruoyi-vue-pro.sql.

补充上缺失的6张表:
system_mail_account
system_mail_log
system_mail_template
system_notify_message
system_notify_template
system_user_session

Signed-off-by: libran <fang.jian@126.com>
pull/2/head
libran 2023-03-16 07:42:30 +00:00 committed by Gitee
parent 9c4e54a5ce
commit 83b0546b7e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 254 additions and 0 deletions

View File

@ -4038,6 +4038,260 @@ INSERT INTO "system_users" ("id", "username", "password", "nickname", "remark",
INSERT INTO "system_users" ("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..0lzeu9DtQ/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-05-25 23:44:33.003', 'admin', '2021-01-05 17:03:47', NULL, '2022-05-25 23:44:33.003', 0, 1); INSERT INTO "system_users" ("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..0lzeu9DtQ/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-05-25 23:44:33.003', 'admin', '2021-01-05 17:03:47', NULL, '2022-05-25 23:44:33.003', 0, 1);
COMMIT; COMMIT;
-- ----------------------------
-- Table structure for system_mail_account
-- ----------------------------
DROP TABLE IF EXISTS "system_mail_account";
CREATE TABLE "system_mail_account" (
"id" int8 NOT NULL,
"mail" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"username" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"password" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"host" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"port" int4 NOT NULL,
"ssl_enable" varchar(1) COLLATE "pg_catalog"."default" 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
)
;
COMMENT ON COLUMN "system_mail_account"."id" IS '';
COMMENT ON COLUMN "system_mail_account"."mail" IS '';
COMMENT ON COLUMN "system_mail_account"."username" IS '';
COMMENT ON COLUMN "system_mail_account"."password" IS '';
COMMENT ON COLUMN "system_mail_account"."host" IS 'SMTP ';
COMMENT ON COLUMN "system_mail_account"."port" IS 'SMTP ';
COMMENT ON COLUMN "system_mail_account"."ssl_enable" IS ' SSL';
COMMENT ON COLUMN "system_mail_account"."creator" IS '';
COMMENT ON COLUMN "system_mail_account"."create_time" IS '';
COMMENT ON COLUMN "system_mail_account"."updater" IS '';
COMMENT ON COLUMN "system_mail_account"."update_time" IS '';
COMMENT ON COLUMN "system_mail_account"."deleted" IS '';
COMMENT ON TABLE "system_mail_account" IS '';
-- ----------------------------
-- Table structure for system_mail_log
-- ----------------------------
DROP TABLE IF EXISTS "system_mail_log";
CREATE TABLE "system_mail_log" (
"id" int8 NOT NULL,
"user_id" int8,
"user_type" int2,
"to_mail" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"account_id" int8 NOT NULL,
"from_mail" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"template_id" int8 NOT NULL,
"template_code" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
"template_nickname" varchar(255) COLLATE "pg_catalog"."default",
"template_title" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"template_content" varchar(10240) COLLATE "pg_catalog"."default" NOT NULL,
"template_params" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"send_status" int2 NOT NULL,
"send_time" timestamp(6),
"send_message_id" varchar(255) COLLATE "pg_catalog"."default",
"send_exception" varchar(4096) COLLATE "pg_catalog"."default",
"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
)
;
COMMENT ON COLUMN "system_mail_log"."id" IS '';
COMMENT ON COLUMN "system_mail_log"."user_id" IS '';
COMMENT ON COLUMN "system_mail_log"."user_type" IS '';
COMMENT ON COLUMN "system_mail_log"."to_mail" IS '';
COMMENT ON COLUMN "system_mail_log"."account_id" IS '';
COMMENT ON COLUMN "system_mail_log"."from_mail" IS '';
COMMENT ON COLUMN "system_mail_log"."template_id" IS '';
COMMENT ON COLUMN "system_mail_log"."template_code" IS '';
COMMENT ON COLUMN "system_mail_log"."template_nickname" IS '';
COMMENT ON COLUMN "system_mail_log"."template_title" IS '';
COMMENT ON COLUMN "system_mail_log"."template_content" IS '';
COMMENT ON COLUMN "system_mail_log"."template_params" IS '';
COMMENT ON COLUMN "system_mail_log"."send_status" IS '';
COMMENT ON COLUMN "system_mail_log"."send_time" IS '';
COMMENT ON COLUMN "system_mail_log"."send_message_id" IS ' ID';
COMMENT ON COLUMN "system_mail_log"."send_exception" IS '';
COMMENT ON COLUMN "system_mail_log"."creator" IS '';
COMMENT ON COLUMN "system_mail_log"."create_time" IS '';
COMMENT ON COLUMN "system_mail_log"."updater" IS '';
COMMENT ON COLUMN "system_mail_log"."update_time" IS '';
COMMENT ON COLUMN "system_mail_log"."deleted" IS '';
COMMENT ON TABLE "system_mail_log" IS '';
-- ----------------------------
-- Table structure for system_mail_template
-- ----------------------------
DROP TABLE IF EXISTS "system_mail_template";
CREATE TABLE "system_mail_template" (
"id" int8 NOT NULL,
"name" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
"code" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
"account_id" int8 NOT NULL,
"nickname" varchar(255) COLLATE "pg_catalog"."default",
"title" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"content" varchar(10240) COLLATE "pg_catalog"."default" NOT NULL,
"params" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"status" int2 NOT NULL,
"remark" varchar(255) COLLATE "pg_catalog"."default",
"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
)
;
COMMENT ON COLUMN "system_mail_template"."id" IS '';
COMMENT ON COLUMN "system_mail_template"."name" IS '';
COMMENT ON COLUMN "system_mail_template"."code" IS '';
COMMENT ON COLUMN "system_mail_template"."account_id" IS '';
COMMENT ON COLUMN "system_mail_template"."nickname" IS '';
COMMENT ON COLUMN "system_mail_template"."title" IS '';
COMMENT ON COLUMN "system_mail_template"."content" IS '';
COMMENT ON COLUMN "system_mail_template"."params" IS '';
COMMENT ON COLUMN "system_mail_template"."status" IS '';
COMMENT ON COLUMN "system_mail_template"."remark" IS '';
COMMENT ON COLUMN "system_mail_template"."creator" IS '';
COMMENT ON COLUMN "system_mail_template"."create_time" IS '';
COMMENT ON COLUMN "system_mail_template"."updater" IS '';
COMMENT ON COLUMN "system_mail_template"."update_time" IS '';
COMMENT ON COLUMN "system_mail_template"."deleted" IS '';
COMMENT ON TABLE "system_mail_template" IS '';
-- ----------------------------
-- Table structure for system_notify_message
-- ----------------------------
DROP TABLE IF EXISTS "system_notify_message";
CREATE TABLE "system_notify_message" (
"id" int8 NOT NULL,
"user_id" int8 NOT NULL,
"user_type" int2 NOT NULL,
"template_id" int8 NOT NULL,
"template_code" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"template_nickname" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
"template_content" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
"template_type" int4 NOT NULL,
"template_params" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"read_status" varchar(1) COLLATE "pg_catalog"."default" NOT NULL,
"read_time" timestamp(6),
"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
)
;
COMMENT ON COLUMN "system_notify_message"."id" IS 'ID';
COMMENT ON COLUMN "system_notify_message"."user_id" IS 'id';
COMMENT ON COLUMN "system_notify_message"."user_type" IS '';
COMMENT ON COLUMN "system_notify_message"."template_id" IS '';
COMMENT ON COLUMN "system_notify_message"."template_code" IS '';
COMMENT ON COLUMN "system_notify_message"."template_nickname" IS '';
COMMENT ON COLUMN "system_notify_message"."template_content" IS '';
COMMENT ON COLUMN "system_notify_message"."template_type" IS '';
COMMENT ON COLUMN "system_notify_message"."template_params" IS '';
COMMENT ON COLUMN "system_notify_message"."read_status" IS '';
COMMENT ON COLUMN "system_notify_message"."read_time" IS '';
COMMENT ON COLUMN "system_notify_message"."creator" IS '';
COMMENT ON COLUMN "system_notify_message"."create_time" IS '';
COMMENT ON COLUMN "system_notify_message"."updater" IS '';
COMMENT ON COLUMN "system_notify_message"."update_time" IS '';
COMMENT ON COLUMN "system_notify_message"."deleted" IS '';
COMMENT ON COLUMN "system_notify_message"."tenant_id" IS '';
COMMENT ON TABLE "system_notify_message" IS '';
-- ----------------------------
-- Table structure for system_notify_template
-- ----------------------------
DROP TABLE IF EXISTS "system_notify_template";
CREATE TABLE "system_notify_template" (
"id" int8 NOT NULL,
"name" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
"code" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"nickname" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"content" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
"type" int2 NOT NULL,
"params" varchar(255) COLLATE "pg_catalog"."default",
"status" int2 NOT NULL,
"remark" varchar(255) COLLATE "pg_catalog"."default",
"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
)
;
COMMENT ON COLUMN "system_notify_template"."id" IS '';
COMMENT ON COLUMN "system_notify_template"."name" IS '';
COMMENT ON COLUMN "system_notify_template"."code" IS '';
COMMENT ON COLUMN "system_notify_template"."nickname" IS '';
COMMENT ON COLUMN "system_notify_template"."content" IS '';
COMMENT ON COLUMN "system_notify_template"."type" IS '';
COMMENT ON COLUMN "system_notify_template"."params" IS '';
COMMENT ON COLUMN "system_notify_template"."status" IS '';
COMMENT ON COLUMN "system_notify_template"."remark" IS '';
COMMENT ON COLUMN "system_notify_template"."creator" IS '';
COMMENT ON COLUMN "system_notify_template"."create_time" IS '';
COMMENT ON COLUMN "system_notify_template"."updater" IS '';
COMMENT ON COLUMN "system_notify_template"."update_time" IS '';
COMMENT ON COLUMN "system_notify_template"."deleted" IS '';
COMMENT ON TABLE "system_notify_template" IS '';
-- ----------------------------
-- Table structure for system_user_session
-- ----------------------------
DROP TABLE IF EXISTS "system_user_session";
CREATE TABLE "system_user_session" (
"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,
"username" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
"user_ip" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"user_agent" varchar(512) COLLATE "pg_catalog"."default" 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
)
;
COMMENT ON COLUMN "system_user_session"."id" IS '';
COMMENT ON COLUMN "system_user_session"."token" IS '';
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 '';
COMMENT ON COLUMN "system_user_session"."username" IS '';
COMMENT ON COLUMN "system_user_session"."user_ip" IS ' IP';
COMMENT ON COLUMN "system_user_session"."user_agent" IS ' UA';
COMMENT ON COLUMN "system_user_session"."creator" IS '';
COMMENT ON COLUMN "system_user_session"."create_time" IS '';
COMMENT ON COLUMN "system_user_session"."updater" IS '';
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';
-- ---------------------------- -- ----------------------------
-- Alter sequences owned by -- Alter sequences owned by
-- ---------------------------- -- ----------------------------