MySQL Create Table SQL
Table Structure: okayapi_shopxo_s_order_detail:/tablelist/okayapi_shopxo_s_order_detail.html
-- MySQL Table okayapi_shopxo_s_order_detail
-- From: OkayAPI.com
CREATE TABLE `okayapi_shopxo_s_order_detail` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
`order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单id',
`goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id',
`shop_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 '订单价格',
`total_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '当前总价(单价*数量)',
`spec` char(255) NOT NULL COMMENT '规格',
`buy_number` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
`model` char(30) NOT NULL COMMENT '型号',
`spec_weight` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '重量(kg)',
`spec_coding` char(80) NOT NULL COMMENT '编码',
`spec_barcode` char(80) NOT NULL COMMENT '条形码',
`refund_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '退款金额',
`returned_quantity` int(11) NOT NULL DEFAULT '0' COMMENT '退货数量',
`upd_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
KEY `user_id` (`user_id`),
KEY `order_id` (`order_id`),
KEY `goods_id` (`goods_id`),
KEY `shop_id` (`shop_id`),
KEY `title` (`title`),
KEY `images` (`images`),
KEY `original_price` (`original_price`),
KEY `price` (`price`),
KEY `total_price` (`total_price`),
KEY `spec` (`spec`),
KEY `buy_number` (`buy_number`),
KEY `model` (`model`),
KEY `spec_weight` (`spec_weight`),
KEY `spec_coding` (`spec_coding`),
KEY `spec_barcode` (`spec_barcode`),
KEY `refund_price` (`refund_price`),
KEY `returned_quantity` (`returned_quantity`),
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-18 of 18 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
user_id | int(11) | 0 | 否 | 用户id | Normal Index | 0 |
order_id | int(11) | 0 | 否 | 订单id | Normal Index | 0 |
goods_id | int(11) | 0 | 否 | 商品id | Normal Index | 0 |
shop_id | int(11) | 0 | 否 | 店铺id | Normal Index | 0 |
title | char(60) | 否 | 标题 | |||
images | char(255) | 否 | 封面图片 | |||
original_price | decimal(10,2) unsigned | 0.00 | 否 | 原价 | 0.00 | |
price | decimal(10,2) unsigned | 0.00 | 否 | 订单价格 | 0.00 | |
total_price | decimal(10,2) | 0.00 | 否 | 当前总价(单价*数量) | 0.00 | |
spec | char(255) | 否 | 规格 | |||
buy_number | int(11) | 0 | 否 | 购买数量 | 0 | |
model | char(30) | 否 | 型号 | |||
spec_weight | decimal(10,2) unsigned | 0.00 | 否 | 重量(kg) | 0.00 | |
spec_coding | char(80) | 否 | 编码 | |||
spec_barcode | char(80) | 否 | 条形码 | |||
refund_price | decimal(10,2) | 0.00 | 否 | 退款金额 | 0.00 | |
returned_quantity | int(11) | 0 | 否 | 退货数量 | 0 | |
upd_time | int(11) | 0 | 否 | 更新时间 | 0 |