20250222kxmall3.sql 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. DROP TABLE IF EXISTS `kx_composition_dish`;
  2. CREATE TABLE `kx_composition_dish` (
  3. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  4. `storage_id` bigint(255) unsigned NOT NULL COMMENT '仓库id',
  5. `title` varchar(255) NOT NULL COMMENT '商品名称',
  6. `sales` int(11) NOT NULL DEFAULT '0' COMMENT '销售量',
  7. `img` varchar(255) NOT NULL COMMENT '图片路径',
  8. `detail` text NOT NULL COMMENT '商品详情',
  9. `description` varchar(255) NOT NULL DEFAULT '介绍' COMMENT '介绍',
  10. `category_id` bigint(20) DEFAULT NULL COMMENT '分类id',
  11. `status` int(11) NOT NULL COMMENT '状态1上架0下架',
  12. `score` decimal(2,1) NOT NULL COMMENT '评分',
  13. `create_time` datetime DEFAULT NULL,
  14. `update_time` datetime DEFAULT NULL,
  15. `create_by` varchar(50) DEFAULT NULL COMMENT '编辑人',
  16. `update_by` varchar(50) DEFAULT NULL COMMENT '更新人',
  17. PRIMARY KEY (`id`) USING BTREE
  18. ) ENGINE=InnoDB AUTO_INCREMENT=1893265742607015939 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='组成菜主表';
  19. DROP TABLE IF EXISTS `kx_composition_dish_item`;
  20. CREATE TABLE `kx_composition_dish_item` (
  21. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  22. `product_id` bigint(255) NOT NULL COMMENT '商品规格id',
  23. `category_name` varchar(128) NOT NULL DEFAULT '0' COMMENT '商品类目',
  24. `product_name` varchar(255) DEFAULT NULL COMMENT '商品名称',
  25. `product_attr_name` varchar(255) DEFAULT NULL COMMENT '商品规格',
  26. `bar_code` varchar(255) NOT NULL COMMENT '商品条码',
  27. `unit` varchar(255) NOT NULL COMMENT '单位',
  28. `dish_id` bigint(20) NOT NULL,
  29. `create_time` datetime DEFAULT NULL,
  30. `update_time` datetime DEFAULT NULL,
  31. `create_by` varchar(50) DEFAULT NULL COMMENT '编辑人',
  32. `update_by` varchar(50) DEFAULT NULL COMMENT '更新人',
  33. `num` int(11) DEFAULT NULL COMMENT '数量',
  34. PRIMARY KEY (`id`) USING BTREE
  35. ) ENGINE=InnoDB AUTO_INCREMENT=1697087667467657219 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='组成菜主表';
  36. INSERT INTO `sys_menu`(`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1892921333914808322, '家常菜', 1695601593566232578, 10, '/dish', 'dish/index', NULL, 1, 0, 'C', '0', '0', 'dish:compositiondish:list', '#', 'admin', '2025-02-21 20:56:29', 'admin', '2025-02-22 08:20:40', '');
  37. INSERT INTO `sys_menu`(`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1892921856441200641, '家常菜新增', 1892921333914808322, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'dish:compositiondish:create', '#', 'admin', '2025-02-21 20:58:34', 'admin', '2025-02-21 20:58:34', '');
  38. INSERT INTO `sys_menu`(`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1892921954940235778, '家产菜修改', 1892921333914808322, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'dish:compositiondish:edit', '#', 'admin', '2025-02-21 20:58:58', 'admin', '2025-02-21 20:58:58', '');
  39. INSERT INTO `sys_menu`(`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1892922072485605378, '家常菜删除', 1892921333914808322, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'dish:compositiondish:delete', '#', 'admin', '2025-02-21 20:59:26', 'admin', '2025-02-21 20:59:26', '');