MySQL Create Table SQL
Table Structure: okayapi_shopxo_s_cart:/tablelist/okayapi_shopxo_s_cart.html
-- MySQL Table okayapi_shopxo_s_cart
-- From: OkayAPI.com
CREATE TABLE `okayapi_shopxo_s_cart` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
`goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id',
`title` char(60) NOT NULL COMMENT '标题',
`images` char(255) NOT NULL COMMENT '封面图片',
`original_price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '原价',
`price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '销售价格',
`stock` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
`spec` char(255) NOT NULL COMMENT '规格',
`upd_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
KEY `user_id` (`user_id`),
KEY `goods_id` (`goods_id`),
KEY `title` (`title`),
KEY `images` (`images`),
KEY `original_price` (`original_price`),
KEY `price` (`price`),
KEY `stock` (`stock`),
KEY `spec` (`spec`),
KEY `upd_time` (`upd_time`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'ShopXO商城-购物车';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-9 of 9 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
user_id | int(11) | 0 | 是 | 用户id | Normal Index | 0 |
goods_id | int(11) | 0 | 是 | 商品id | Normal Index | 0 |
title | char(60) | 否 | 标题 | Normal Index | ||
images | char(255) | 否 | 封面图片 | |||
original_price | decimal(10,2) unsigned | 0.00 | 否 | 原价 | 0.00 | |
price | decimal(10,2) unsigned | 0.00 | 否 | 销售价格 | 0.00 | |
stock | int(11) | 0 | 否 | 购买数量 | Normal Index | 0 |
spec | char(255) | 否 | 规格 | |||
upd_time | int(11) | 0 | 否 | 更新时间 | 0 |