1.change category attribution
This commit is contained in:
2025-11-13 15:12:31 +08:00
parent 449328c726
commit 547b9dde7c
10 changed files with 242 additions and 66 deletions

View File

@@ -7,7 +7,6 @@ CREATE TABLE `kiosk_category`
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '产品名称',
`image_url` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '目录图片地址',
`photo_limit` int NULL DEFAULT 1 COMMENT '照片数量',
`shape` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '形状',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`create_dept` bigint NULL DEFAULT NULL COMMENT '创建部门',
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
@@ -23,22 +22,33 @@ CREATE TABLE `kiosk_category`
DROP TABLE IF EXISTS `kiosk_price_list`;
CREATE TABLE `kiosk_price_list`
(
`id` bigint AUTO_INCREMENT NOT NULL COMMENT '主键',
`tenant_id` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
`category_id` bigint NOT NULL COMMENT 'cid',
`shape` int NOT NULL DEFAULT 0 COMMENT '形状',
`material` int NOT NULL DEFAULT 0 COMMENT '材质',
`size` int NOT NULL DEFAULT 0 COMMENT '尺寸',
`currency` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '货币',
`price` decimal(10, 2) NOT NULL DEFAULT 0 COMMENT '单价',
`dept_id` bigint NULL DEFAULT NULL COMMENT '目标部门',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`create_dept` bigint NULL DEFAULT NULL COMMENT '创建部门',
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
`update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
`status` int NULL DEFAULT 1 COMMENT '状态',
`is_deleted` int NULL DEFAULT 0 COMMENT '是否已删除',
`id` bigint AUTO_INCREMENT NOT NULL COMMENT '主键',
`tenant_id` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
`category_id` bigint NOT NULL COMMENT 'cid',
`shape` int NULL DEFAULT 0 COMMENT '形状',
`material` int NULL DEFAULT 0 COMMENT '材质',
`size` int NULL DEFAULT 0 COMMENT '尺寸',
`size_description` varchar(255) NULL DEFAULT '' COMMENT '尺寸描述',
`style` int NULL DEFAULT 0 COMMENT '风格',
`currency` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '货币',
`original_price` decimal(10, 2) NOT NULL DEFAULT 0 COMMENT '原价',
`actual_price` decimal(10, 2) NULL DEFAULT 0 COMMENT '售价',
`back_print` int NULL DEFAULT 1 COMMENT '背面打印',
`back_print_price` decimal(10, 2) NULL DEFAULT 0 COMMENT '背面打印价格',
`size_upgrade` int NULL DEFAULT 1 COMMENT '尺寸升级',
`size_upgrade_price` decimal(10, 2) NULL DEFAULT 0 COMMENT '尺寸升级价格',
`stand` int NULL DEFAULT 1 COMMENT '支架',
`stand_price` decimal(10, 2) NULL DEFAULT 0 COMMENT '支架价格',
`material_upgrade` int NULL DEFAULT 1 COMMENT '材料升级',
`material_upgrade_price` decimal(10, 2) NULL DEFAULT 0 COMMENT '材料升级价格',
`dept_id` bigint NULL DEFAULT NULL COMMENT '目标部门',
`create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
`create_dept` bigint NULL DEFAULT NULL COMMENT '创建部门',
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
`update_user` bigint NULL DEFAULT NULL COMMENT '修改人',
`update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
`status` int NULL DEFAULT 1 COMMENT '状态',
`is_deleted` int NULL DEFAULT 0 COMMENT '是否已删除',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB
CHARACTER SET = utf8mb4