添加:主子表演示后台数据库结构,支持mybatis-flex
This commit is contained in:
parent
968e26c593
commit
5a9e023985
@ -713,3 +713,62 @@ insert into sys_menu values('118', '文件管理', '1', '10', 'oss',
|
|||||||
-- 表sys_config 的数据:
|
-- 表sys_config 的数据:
|
||||||
INSERT INTO `sys_config` (`config_id`, `config_name`, `config_key`, `config_value`, `config_type`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
INSERT INTO `sys_config` (`config_id`, `config_name`, `config_key`, `config_value`, `config_type`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||||
(20, 'OSS预览列表资源开关', 'sys.oss.previewListResource', 'true', 'Y', 1, '2023-09-30 21:55:15', 1, '2023-12-01 22:32:10', 'true:开启, false:关闭');
|
(20, 'OSS预览列表资源开关', 'sys.oss.previewListResource', 'true', 'Y', 1, '2023-09-30 21:55:15', 1, '2023-12-01 22:32:10', 'true:开启, false:关闭');
|
||||||
|
|
||||||
|
CREATE TABLE `mf_customer` (
|
||||||
|
`customer_id` BIGINT(19) NOT NULL COMMENT '客户id',
|
||||||
|
`customer_name` VARCHAR(30) NULL DEFAULT '' COMMENT '客户姓名' COLLATE 'utf8mb4_bin',
|
||||||
|
`phonenumber` VARCHAR(11) NULL DEFAULT '' COMMENT '手机号码' COLLATE 'utf8mb4_bin',
|
||||||
|
`gender` CHAR(1) NULL DEFAULT NULL COMMENT '客户性别' COLLATE 'utf8mb4_bin',
|
||||||
|
`birthday` DATETIME NULL DEFAULT NULL COMMENT '客户生日',
|
||||||
|
`remark` VARCHAR(500) NULL DEFAULT NULL COMMENT '客户描述' COLLATE 'utf8mb4_bin',
|
||||||
|
`create_by` BIGINT(19) NOT NULL DEFAULT '0' COMMENT '创建者',
|
||||||
|
`create_time` DATETIME NULL DEFAULT NULL COMMENT '创建时间',
|
||||||
|
`update_by` BIGINT(19) NOT NULL DEFAULT '0' COMMENT '更新者',
|
||||||
|
`update_time` DATETIME NULL DEFAULT NULL COMMENT '更新时间',
|
||||||
|
PRIMARY KEY (`customer_id`) USING BTREE
|
||||||
|
)
|
||||||
|
COMMENT='客户主表'
|
||||||
|
COLLATE='utf8mb4_bin'
|
||||||
|
ENGINE=InnoDB
|
||||||
|
;
|
||||||
|
CREATE TABLE `mf_goods` (
|
||||||
|
`goods_id` BIGINT(19) NOT NULL COMMENT '商品id',
|
||||||
|
`customer_id` BIGINT(19) NOT NULL COMMENT '客户id',
|
||||||
|
`name` VARCHAR(30) NULL DEFAULT '' COMMENT '商品名称' COLLATE 'utf8mb4_bin',
|
||||||
|
`weight` INT(10) NULL DEFAULT NULL COMMENT '商品重量',
|
||||||
|
`price` DECIMAL(6,2) NULL DEFAULT NULL COMMENT '商品价格',
|
||||||
|
`date` DATETIME NULL DEFAULT NULL COMMENT '商品时间',
|
||||||
|
`type` CHAR(1) NULL DEFAULT NULL COMMENT '商品种类' COLLATE 'utf8mb4_bin',
|
||||||
|
`create_by` BIGINT(19) NOT NULL DEFAULT '0' COMMENT '创建者',
|
||||||
|
`create_time` DATETIME NULL DEFAULT NULL COMMENT '创建时间',
|
||||||
|
`update_by` BIGINT(19) NOT NULL DEFAULT '0' COMMENT '更新者',
|
||||||
|
`update_time` DATETIME NULL DEFAULT NULL COMMENT '更新时间',
|
||||||
|
PRIMARY KEY (`goods_id`) USING BTREE
|
||||||
|
)
|
||||||
|
COMMENT='商品子表'
|
||||||
|
COLLATE='utf8mb4_bin'
|
||||||
|
ENGINE=InnoDB
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 菜单 SQL
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('客户主表', '2018', '1', 'customer', 'mf/customer/index', 1, 0, 'C', '0', '0', 'mf:customer:list', '#', 1, sysdate(), 1, null, '客户主表菜单');
|
||||||
|
|
||||||
|
-- 按钮父菜单ID
|
||||||
|
SELECT @parentId := LAST_INSERT_ID();
|
||||||
|
|
||||||
|
-- 按钮 SQL
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('客户主表查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', 'mf:customer:query', '#', 1, sysdate(), 1, null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('客户主表新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', 'mf:customer:add', '#', 1, sysdate(), 1, null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('客户主表修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', 'mf:customer:edit', '#', 1, sysdate(), 1, null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('客户主表删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', 'mf:customer:remove', '#', 1, sysdate(), 1, null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('客户主表导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', 'mf:customer:export', '#', 1, sysdate(), 1, null, '');
|
||||||
|
Loading…
Reference in New Issue
Block a user