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

74 lines
5.3 KiB
Java

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.

INSERT INTO system_menu (name, permission, type, sort, parent_id, path, icon, component, component_name)
VALUES ('', '', 2, 2, 2166, 'pick-up-order', 'ep:list', 'mall/trade/delivery/pickUpOrder/index', 'PickUpOrder');
CREATE TABLE promotion_diy_template
(
id bigint AUTO_INCREMENT COMMENT ''
PRIMARY KEY,
name varchar(100) NOT NULL COMMENT '',
used bit DEFAULT b'0' NOT NULL COMMENT '使',
used_time datetime NULL COMMENT '使',
remark varchar(255) NULL COMMENT '',
preview_image_urls varchar(2000) NULL COMMENT '',
property text NULL COMMENT 'JSON ',
creator varchar(64) DEFAULT '' NULL COMMENT '',
create_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '',
updater varchar(64) DEFAULT '' NULL COMMENT '',
update_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '',
deleted bit DEFAULT b'0' NOT NULL COMMENT '',
tenant_id bigint DEFAULT 0 NOT NULL COMMENT ''
)
COMMENT '';
CREATE TABLE promotion_diy_page
(
id bigint AUTO_INCREMENT COMMENT ''
PRIMARY KEY,
template_id bigint NULL COMMENT '',
name varchar(100) NOT NULL COMMENT '',
remark varchar(255) NULL COMMENT '',
preview_image_urls varchar(2000) NULL COMMENT '',
property text NULL COMMENT 'JSON ',
creator varchar(64) DEFAULT '' NULL COMMENT '',
create_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '',
updater varchar(64) DEFAULT '' NULL COMMENT '',
update_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '',
deleted bit DEFAULT b'0' NOT NULL COMMENT '',
tenant_id bigint DEFAULT 0 NOT NULL COMMENT ''
)
COMMENT '';
CREATE INDEX idx_template_id ON promotion_diy_page (template_id);
--
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status, component_name)
VALUES ('', '', 2, 20, 2030, 'diy-template', 'fa6-solid:brush', 'mall/promotion/diy/template/index', 0, 'DiyTemplate');
SELECT @diyParentId := LAST_INSERT_ID();
--
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status, component_name)
VALUES ('', '', 2, 1, @diyParentId, 'diy-template', 'fa6-solid:brush', 'mall/promotion/diy/template/index', 0, 'DiyTemplate');
SELECT @parentId := LAST_INSERT_ID();
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
VALUES ('', 'promotion:diy-template:query', 3, 1, @parentId, '', '', '', 0);
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
VALUES ('', 'promotion:diy-template:create', 3, 2, @parentId, '', '', '', 0);
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
VALUES ('', 'promotion:diy-template:update', 3, 3, @parentId, '', '', '', 0);
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
VALUES ('', 'promotion:diy-template:delete', 3, 4, @parentId, '', '', '', 0);
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
VALUES ('使', 'promotion:diy-template:use', 3, 5, @parentId, '', '', '', 0);
--
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status, component_name)
VALUES ('', '', 2, 2, @diyParentId, 'diy-page', 'foundation:page-edit', 'mall/promotion/diy/page/index', 0, 'DiyPage');
SELECT @parentId := LAST_INSERT_ID();
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
VALUES ('', 'promotion:diy-page:query', 3, 1, @parentId, '', '', '', 0);
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
VALUES ('', 'promotion:diy-page:create', 3, 2, @parentId, '', '', '', 0);
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
VALUES ('', 'promotion:diy-page:update', 3, 3, @parentId, '', '', '', 0);
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
VALUES ('', 'promotion:diy-page:delete', 3, 4, @parentId, '', '', '', 0);;