Files
geg-gas-pcitc/script/20241023/系统评论表.sql

67 lines
6.5 KiB
MySQL
Raw Normal View History

2025-02-08 17:51:37 +08:00
CREATE TABLE xjr_comment (
id bigint NOT NULL,
business_code varchar(100) NOT NULL,
business_id bigint NOT NULL,
content character varying(5000 char) NOT NULL,
attachs bigint NULL,
status integer NOT NULL DEFAULT 1,
create_user_id bigint NOT NULL,
create_date timestamp(6) without time zone NOT NULL,
modify_user_id bigint NULL,
modify_date timestamp(6) without time zone NULL,
delete_mark integer NOT NULL,
enabled_mark integer NOT NULL,
dept_id bigint NULL,
tenant_id bigint NULL,
rule_user_id bigint NULL,
range integer NOT NULL DEFAULT 0,
PRIMARY KEY (id)
);
COMMENT ON TABLE xjr_comment IS '评论、批注、督办表';
COMMENT ON COLUMN xjr_comment.business_code IS '评论对象的业务编码';
COMMENT ON COLUMN xjr_comment.business_id IS '评论对象的业务id';
COMMENT ON COLUMN xjr_comment.content IS '评论内容';
COMMENT ON COLUMN xjr_comment.attachs IS '附件组id';
COMMENT ON COLUMN xjr_comment.status IS '状态0草稿/1已发布/2已结束';
COMMENT ON COLUMN xjr_comment.range IS '通知范围0公开/1指定用户';
CREATE INDEX idx_comment_code ON
"xjr_comment"
USING BTREE ("business_code");
CREATE INDEX idx_comment_id ON
"xjr_comment"
USING BTREE (
"business_code",
"business_id"
);
INSERT INTO "xjr_menu" ("id", "parent_id", "name", "title", "code", "icon", "path", "component", "component_type", "iframe_src", "menu_type", "display", "allow_modify", "allow_delete", "out_link", "keep_alive", "sort_code", "remark", "create_user_id", "create_date", "modify_user_id", "modify_date", "delete_mark", "enabled_mark", "system_id", "form_id", "tenant_id") VALUES (1847182551917883394, 1541225702878281730, '通用评论0939', '通用评论', 'comment', 'ant-design:pushpin-outlined', 'tongyongpinglun', '/system/comment/index', 0, NULL, 1, 1, 1, 1, 0, 0, 100, NULL, 1000000000000000000, '2024-10-18 15:46:54.040', NULL, NULL, 0, 1, 1, 1847182551611699200, NULL);
INSERT INTO "xjr_menu_column" ("id", "menu_id", "code", "name", "sort_code", "description", "tenant_id") VALUES (1847182673942769665, 1847182551917883394, 'businessCode', '评论对象编码', NULL, NULL, NULL);
INSERT INTO "xjr_menu_column" ("id", "menu_id", "code", "name", "sort_code", "description", "tenant_id") VALUES (1847182673942769666, 1847182551917883394, 'businessId', '评论对象ID', NULL, NULL, NULL);
INSERT INTO "xjr_menu_column" ("id", "menu_id", "code", "name", "sort_code", "description", "tenant_id") VALUES (1847182673942769667, 1847182551917883394, 'content', '评论内容', NULL, NULL, NULL);
INSERT INTO "xjr_menu_column" ("id", "menu_id", "code", "name", "sort_code", "description", "tenant_id") VALUES (1847182673942769668, 1847182551917883394, 'createUserId', '评论人', NULL, NULL, NULL);
INSERT INTO "xjr_menu_column" ("id", "menu_id", "code", "name", "sort_code", "description", "tenant_id") VALUES (1847182673942769669, 1847182551917883394, 'createDate', '评论时间', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1847182673892438017, '新增', 1847182551917883394, 'ant-design:plus-outlined', 'comment:add', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1847182673892438018, '编辑', 1847182551917883394, 'ant-design:form-outlined', 'comment:edit', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1847182673892438019, '刷新', 1847182551917883394, 'ant-design:reload-outlined', 'comment:refresh', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1847182673892438020, '查看', 1847182551917883394, 'ant-design:eye-outlined', 'comment:view', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1847182673892438021, '批量删除', 1847182551917883394, 'ant-design:delete-outlined', 'comment:batchdelete', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1847182673892438022, '复制数据', 1847182551917883394, 'ant-design:copy-outlined', 'comment:copyData', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1847182673892438023, '快速导入', 1847182551917883394, 'ant-design:import-outlined', 'comment:import', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1847182673892438024, '快速导出', 1847182551917883394, 'ant-design:export-outlined', 'comment:export', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1847182673892438025, '删除', 1847182551917883394, 'ant-design:delete-outlined', 'comment:delete', NULL, NULL, NULL);
INSERT INTO "xjr_menu_form" ("id", "menu_id", "code", "name", "sort_code", "is_required", "parent_id", "tenant_id") VALUES (1847182673942769670, 1847182551917883394, '12e79f0dec5844aaa838379519fb6f53', '标题', NULL, 0, 0, NULL);
INSERT INTO "xjr_menu_form" ("id", "menu_id", "code", "name", "sort_code", "is_required", "parent_id", "tenant_id") VALUES (1847182673942769671, 1847182551917883394, 'businessCode', '评论对象编码', NULL, 0, 0, NULL);
INSERT INTO "xjr_menu_form" ("id", "menu_id", "code", "name", "sort_code", "is_required", "parent_id", "tenant_id") VALUES (1847182673942769672, 1847182551917883394, 'businessId', '评论对象ID', NULL, 0, 0, NULL);
INSERT INTO "xjr_menu_form" ("id", "menu_id", "code", "name", "sort_code", "is_required", "parent_id", "tenant_id") VALUES (1847182673942769673, 1847182551917883394, 'content', '评论内容', NULL, 1, 0, NULL);
INSERT INTO "xjr_menu_form" ("id", "menu_id", "code", "name", "sort_code", "is_required", "parent_id", "tenant_id") VALUES (1847182673942769674, 1847182551917883394, 'attachs', '附件', NULL, 0, 0, NULL);
INSERT INTO "xjr_menu_form" ("id", "menu_id", "code", "name", "sort_code", "is_required", "parent_id", "tenant_id") VALUES (1847182673942769675, 1847182551917883394, 'createUserId', '评论人', NULL, 0, 0, NULL);
INSERT INTO "xjr_menu_form" ("id", "menu_id", "code", "name", "sort_code", "is_required", "parent_id", "tenant_id") VALUES (1847182673942769676, 1847182551917883394, 'createDate', '评论时间', NULL, 0, 0, NULL);