This commit is contained in:
laodaming
2023-06-02 19:24:58 +08:00
parent 6c717ce30e
commit 92b29d8006
12 changed files with 609 additions and 17 deletions

22
ddl/fs_product_price.sql Normal file
View File

@@ -0,0 +1,22 @@
-- fusentest.fs_product_price definition
CREATE TABLE `fs_product_price` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`sn` char(8) NOT NULL COMMENT '唯一编码',
`title` varchar(255) NOT NULL COMMENT '标题描述',
`product_id` int(11) NOT NULL COMMENT '产品ID',
`material_id` int(11) NOT NULL COMMENT '材质ID',
`size_id` int(11) NOT NULL COMMENT '尺寸ID',
`each_box_num` int(11) NOT NULL COMMENT '每一箱的个数',
`each_box_weight` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '每一箱的重量 单位KG',
`min_buy_num` int(11) NOT NULL COMMENT '最少购买量',
`step_num` varchar(255) NOT NULL COMMENT '数量阶梯 eg:10,20,30',
`step_price` varchar(255) NOT NULL COMMENT '价格阶梯 eg:100,50,25',
`status` int(11) DEFAULT '1' COMMENT '是否可用',
`is_default` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否默认',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `fields_index` (`product_id`,`material_id`,`size_id`) USING BTREE,
KEY `product_id` (`product_id`) USING BTREE,
KEY `material_id` (`material_id`) USING BTREE,
KEY `size_id` (`size_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=103 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='阶梯价格表';

View File

@@ -0,0 +1,22 @@
-- fusentest.fs_product_template_v2 definition
CREATE TABLE `fs_product_template_v2` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`product_id` int(10) unsigned NOT NULL COMMENT '产品ID',
`model_id` int(11) NOT NULL COMMENT '模型ID',
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '模板sku,预留字段',
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '名称',
`cover_img` varchar(255) DEFAULT NULL COMMENT '模板背景图',
`template_info` text NOT NULL COMMENT '模板详情',
`material_img` varchar(255) DEFAULT NULL COMMENT '合成好的贴图',
`sort` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '排序',
`logo_width` int(10) NOT NULL DEFAULT '0' COMMENT 'logo图最大宽度',
`logo_height` int(10) NOT NULL DEFAULT '0' COMMENT 'logo图最大高度',
`is_public` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否可公用1:可以0不可以',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态1正常 2异常',
`ctime` int(10) unsigned NOT NULL COMMENT '添加时间',
`tag` varchar(255) NOT NULL COMMENT '标签(用户自填)',
`is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除 1删除',
PRIMARY KEY (`id`) USING BTREE,
KEY `product_id` (`product_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=463 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='产品-模型-模板表';

16
ddl/fs_tags.sql Normal file
View File

@@ -0,0 +1,16 @@
-- fusentest.fs_tags definition
CREATE TABLE `fs_tags` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`title` varchar(32) NOT NULL COMMENT '标题',
`level` int(10) unsigned NOT NULL COMMENT '层级、分类 1 => 二维码分类',
`click_num` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '点击次数',
`sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序(从大到小)',
`create_at` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`icon` varchar(200) DEFAULT NULL COMMENT '标签图标',
`status` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '状态 1可用',
`description` varchar(255) NOT NULL DEFAULT '' COMMENT '介绍 Seo',
`recommend_product` varchar(255) DEFAULT NULL COMMENT '推荐产品id例如: 1,3,4,5',
`recommend_product_sort` varchar(255) DEFAULT NULL COMMENT '推荐排序例如:1324',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='产品分类表';