+ 立即免费创建此表 返回数据库大全

MySQL建表SQL语句

数据库结构:商城系统-拼团产品表:https://open.yesapi.cn/tablelist/yesapi_yshopmall_yx_store_combination.html


-- 数据库大全:商城系统-拼团产品表
-- 来源:YesApi.cn
CREATE TABLE `yesapi_yshopmall_yx_store_combination` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `product_id` bigint(20) NULL COMMENT '商品id',
    `image` varchar(255) NULL COMMENT '推荐图',
    `images` varchar(2000) NULL COMMENT '轮播图',
    `title` varchar(255) NULL COMMENT '活动标题',
    `attr` varchar(255) NULL COMMENT '活动属性',
    `people` int(10) NULL COMMENT '参团人数',
    `info` varchar(255) NULL COMMENT '简介',
    `price` decimal(10,2) unsigned NULL COMMENT '价格',
    `product_price` decimal(10,2) NULL COMMENT '商品原价',
    `sort` int(10) NULL COMMENT '排序',
    `sales` int(10) NULL DEFAULT '0' COMMENT '销量',
    `stock` int(10) NULL COMMENT '库存',
    `create_time` datetime NULL COMMENT '添加时间',
    `is_host` tinyint(3) NULL DEFAULT '0' COMMENT '推荐',
    `is_show` tinyint(3) NULL COMMENT '产品状态',
    `is_del` tinyint(3) NULL DEFAULT '0' COMMENT '',
    `combination` tinyint(3) NULL DEFAULT '1' COMMENT '',
    `mer_use` tinyint(3) NULL COMMENT '商户是否可用1可用0不可用',
    `description` text NULL COMMENT '拼团内容',
    `start_time` datetime NULL COMMENT '拼团开始时间',
    `stop_time` datetime NULL COMMENT '拼团结束时间',
    `effective_time` int(11) NULL DEFAULT '0' COMMENT '拼团订单有效时间',
    `cost` int(10) NULL DEFAULT '0' COMMENT '拼图产品成本',
    `browse` int(11) NULL DEFAULT '0' COMMENT '浏览量',
    `unit_name` varchar(32) NULL COMMENT '单位名',
    `spec_type` tinyint(1) NULL COMMENT '规格 0单 1多',
    `temp_id` int(11) NULL COMMENT '运费模板ID',
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '商城系统-拼团产品表';

复制后,到数据库执行,即可创建此数据库表。


MySQL数据库表结构设计

第 1-27 条, 共 27 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
product_idbigint(20)商品id无索引
imagevarchar(255)推荐图无索引
imagesvarchar(2000)轮播图无索引
titlevarchar(255)活动标题无索引
attrvarchar(255)活动属性无索引
peopleint(10)参团人数无索引
infovarchar(255)简介无索引
pricedecimal(10,2) unsigned价格无索引
product_pricedecimal(10,2)商品原价无索引
sortint(10)排序无索引
salesint(10)0销量无索引0
stockint(10)库存无索引
create_timedatetime添加时间无索引
is_hosttinyint(3)0推荐无索引0
is_showtinyint(3)产品状态无索引
is_deltinyint(3)0无索引0
combinationtinyint(3)1无索引1
mer_usetinyint(3)商户是否可用1可用0不可用无索引
descriptiontext拼团内容无索引
start_timedatetime拼团开始时间无索引
stop_timedatetime拼团结束时间无索引
effective_timeint(11)0拼团订单有效时间无索引0
costint(10)0拼图产品成本无索引0
browseint(11)0浏览量无索引0
unit_namevarchar(32)单位名无索引
spec_typetinyint(1)规格 0单 1多无索引
temp_idint(11)运费模板ID无索引

猜你喜欢

MySQL数据库设计 商城系统-支付宝配置类

MySQL数据库设计 商城系统-代码生成字段信息存储

MySQL数据库设计 商城系统-部门

MySQL数据库设计 商城系统-数据字典

MySQL数据库设计 商城系统-数据字典详情

MySQL数据库设计 商城系统-邮箱配置

MySQL数据库设计 商城系统-代码生成器配置

MySQL数据库设计 商城系统-代码生成测试

MySQL数据库设计 商城系统-岗位

MySQL数据库设计 商城系统-本地存储

MySQL数据库设计 商城系统-系统日志

MySQL数据库设计 商城系统-菜单

MySQL数据库设计 商城系统-Sm.Ms图床

MySQL数据库设计 商城系统-七牛云配置

MySQL数据库设计 商城系统-七牛云文件存储

MySQL数据库设计 商城系统-定时任务

MySQL数据库设计 商城系统-定时任务日志

MySQL数据库设计 商城系统-角色表

MySQL数据库设计 商城系统-角色部门关联

MySQL数据库设计 商城系统-角色菜单关联



回到顶部 ↑