+ Use This Table All Design

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 NameField TypeDefaultIS NULLField CommentIndexDemo Data
user_idint(11)0用户idNormal Index0
order_idint(11)0订单idNormal Index0
goods_idint(11)0商品idNormal Index0
shop_idint(11)0店铺idNormal Index0
titlechar(60)标题
imageschar(255)封面图片
original_pricedecimal(10,2) unsigned0.00原价0.00
pricedecimal(10,2) unsigned0.00订单价格0.00
total_pricedecimal(10,2)0.00当前总价(单价*数量)0.00
specchar(255)规格
buy_numberint(11)0购买数量0
modelchar(30)型号
spec_weightdecimal(10,2) unsigned0.00重量(kg)0.00
spec_codingchar(80)编码
spec_barcodechar(80)条形码
refund_pricedecimal(10,2)0.00退款金额0.00
returned_quantityint(11)0退货数量0
upd_timeint(11)0更新时间0

Guess You Like

MySQL Table Design okayapi_goods

MySQL Table Design okayapi_goods_comment

MySQL Table Design okayapi_shopxo_s_admin

MySQL Table Design okayapi_shopxo_s_answer

MySQL Table Design okayapi_shopxo_s_app_center_nav

MySQL Table Design okayapi_shopxo_s_app_home_nav

MySQL Table Design okayapi_shopxo_s_article

MySQL Table Design okayapi_shopxo_s_article_category

MySQL Table Design okayapi_shopxo_s_attachment

MySQL Table Design okayapi_shopxo_s_brand

MySQL Table Design okayapi_shopxo_s_brand_category

MySQL Table Design okayapi_shopxo_s_cart

MySQL Table Design okayapi_shopxo_s_config

MySQL Table Design okayapi_shopxo_s_custom_view

MySQL Table Design okayapi_shopxo_s_express

MySQL Table Design okayapi_shopxo_s_goods

MySQL Table Design okayapi_shopxo_s_goods_browse

MySQL Table Design okayapi_shopxo_s_goods_category

MySQL Table Design okayapi_shopxo_s_goods_category_join

MySQL Table Design okayapi_shopxo_s_goods_comments

TOP ↑