mysql抢购表设计_小程序商城-商品秒杀产品表 - 数据库设计 - 数据库表结构 - 果创云...

-- 数据库大全:小程序商城-商品秒杀产品表

-- 来源:YesApi.cn

CREATE TABLE `yesapi_eb_store_seckill` (

`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,

`product_id` int(10) NOT NULL COMMENT '商品id',

`image` varchar(255) NOT NULL COMMENT '推荐图',

`images` varchar(2000) NOT NULL COMMENT '轮播图',

`title` varchar(255) NOT NULL COMMENT '活动标题',

`info` varchar(255) NOT NULL COMMENT '简介',

`price` decimal(10,2) unsigned NOT NULL COMMENT '价格',

`cost` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '成本',

`ot_price` decimal(10,2) unsigned NOT NULL COMMENT '原价',

`give_integral` decimal(10,2) unsigned NOT NULL COMMENT '返多少积分',

`sort` int(10) NOT NULL COMMENT '排序',

`stock` int(10) NOT NULL COMMENT '库存',

`sales` int(10) NOT NULL DEFAULT '0' COMMENT '销量',

`unit_name` varchar(16) NOT NULL COMMENT '单位名',

`postage` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '邮费',

`description` text NOT NULL COMMENT '内容',

`start_time` varchar(128) NOT NULL COMMENT '开始时间',

`stop_time` varchar(128) NOT NULL COMMENT '结束时间',

`status` tinyint(1) NOT NULL COMMENT '产品状态',

`is_postage` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否包邮',

`is_hot` tinyint(1) NOT NULL DEFAULT '0' COMMENT '热门推荐',

`is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '删除 0未删除1已删除',

`num` int(11) NOT NULL COMMENT '最多秒杀几个',

`is_show` tinyint(1) NOT NULL DEFAULT '1' COMMENT '显示',

KEY `product_id` (`product_id`),

KEY `sort` (`sort`),

KEY `start_time` (`start_time`),

KEY `status` (`status`),

KEY `is_postage` (`is_postage`),

KEY `is_hot` (`is_hot`),

KEY `is_del` (`is_del`),

PRIMARY KEY (`id`)

) ENGINE=InnoDB COMMENT '小程序商城-商品秒杀产品表';

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值