+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_shopxo_s_order:/tablelist/okayapi_shopxo_s_order.html


-- MySQL Table okayapi_shopxo_s_order
-- From: OkayAPI.com
CREATE TABLE `okayapi_shopxo_s_order` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `order_no` char(60) NOT NULL COMMENT '订单号',
    `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
    `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
    `receive_address_id` int(11) NOT NULL DEFAULT '0' COMMENT '收件地址id',
    `receive_name` char(60) NOT NULL COMMENT '收件人-姓名',
    `receive_tel` char(15) NOT NULL COMMENT '收件人-电话',
    `receive_province` int(11) NOT NULL DEFAULT '0' COMMENT '收件人-省',
    `receive_city` int(11) NOT NULL DEFAULT '0' COMMENT '收件人-市',
    `receive_county` int(11) NOT NULL DEFAULT '0' COMMENT '收件人-县/区',
    `receive_address` char(200) NOT NULL COMMENT '收件人-详细地址',
    `user_note` char(255) NOT NULL COMMENT '用户备注',
    `express_id` int(11) NOT NULL DEFAULT '0' COMMENT '快递id',
    `express_number` char(60) NOT NULL COMMENT '快递单号',
    `payment_id` int(11) NOT NULL DEFAULT '0' COMMENT '支付方式id',
    `okayapi_shopxo_s_order_status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '订单状态(0待确认, 1已确认/待支付, 2已支付/待发货, 3已发货/待收货, 4已完成, 5已取消, 6已关闭)',
    `pay_status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '支付状态(0未支付, 1已支付, 2已退款, 3部分退款)',
    `extension_data` longtext NOT NULL COMMENT '扩展展示数据',
    `buy_number_count` int(11) NOT NULL DEFAULT '0' COMMENT '购买商品总数量',
    `increase_price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '增加的金额',
    `preferential_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) unsigned NOT NULL DEFAULT '0.00' COMMENT '订单总价(订单最终价格)',
    `pay_price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '已支付金额',
    `refund_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '退款金额',
    `returned_quantity` int(11) NOT NULL DEFAULT '0' COMMENT '退货数量',
    `client_type` char(30) NOT NULL COMMENT '客户端类型(pc, h5, ios, android, alipay, weixin, baidu)取APPLICATION_CLIENT_TYPE常量值',
    `pay_time` int(11) NOT NULL DEFAULT '0' COMMENT '支付时间',
    `confirm_time` int(11) NOT NULL DEFAULT '0' COMMENT '确认时间',
    `delivery_time` int(11) NOT NULL DEFAULT '0' COMMENT '发货时间',
    `cancel_time` int(11) NOT NULL DEFAULT '0' COMMENT '取消时间',
    `collect_time` int(11) NOT NULL DEFAULT '0' COMMENT '收货时间',
    `close_time` int(11) NOT NULL DEFAULT '0' COMMENT '关闭时间',
    `comments_time` int(11) NOT NULL DEFAULT '0' COMMENT '评论时间',
    `is_comments` int(11) NOT NULL DEFAULT '0' COMMENT '商家是否已评论(0否, 大于0评论时间)',
    `user_is_comments` int(11) NOT NULL DEFAULT '0' COMMENT '用户是否已评论(0否, 大于0评论时间)',
    `is_delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '商家是否已删除(0否, 大于0删除时间)',
    `user_is_delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '用户是否已删除(0否, 大于0删除时间)',
    `upd_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
    KEY `order_no` (`order_no`),
    KEY `user_id` (`user_id`),
    KEY `shop_id` (`shop_id`),
    KEY `receive_address_id` (`receive_address_id`),
    KEY `receive_name` (`receive_name`),
    KEY `receive_tel` (`receive_tel`),
    KEY `receive_province` (`receive_province`),
    KEY `receive_city` (`receive_city`),
    KEY `receive_county` (`receive_county`),
    KEY `receive_address` (`receive_address`),
    KEY `user_note` (`user_note`),
    KEY `express_id` (`express_id`),
    KEY `express_number` (`express_number`),
    KEY `payment_id` (`payment_id`),
    KEY `okayapi_shopxo_s_order_status` (`okayapi_shopxo_s_order_status`),
    KEY `pay_status` (`pay_status`),
    KEY `extension_data` (`extension_data`),
    KEY `buy_number_count` (`buy_number_count`),
    KEY `increase_price` (`increase_price`),
    KEY `preferential_price` (`preferential_price`),
    KEY `price` (`price`),
    KEY `total_price` (`total_price`),
    KEY `pay_price` (`pay_price`),
    KEY `refund_price` (`refund_price`),
    KEY `returned_quantity` (`returned_quantity`),
    KEY `client_type` (`client_type`),
    KEY `pay_time` (`pay_time`),
    KEY `confirm_time` (`confirm_time`),
    KEY `delivery_time` (`delivery_time`),
    KEY `cancel_time` (`cancel_time`),
    KEY `collect_time` (`collect_time`),
    KEY `close_time` (`close_time`),
    KEY `comments_time` (`comments_time`),
    KEY `is_comments` (`is_comments`),
    KEY `user_is_comments` (`user_is_comments`),
    KEY `is_delete_time` (`is_delete_time`),
    KEY `user_is_delete_time` (`user_is_delete_time`),
    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-38 of 38 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
order_nochar(60)订单号Unique Index
user_idint(11)0用户idNormal Index0
shop_idint(11)0店铺idNormal Index0
receive_address_idint(11)0收件地址id0
receive_namechar(60)收件人-姓名
receive_telchar(15)收件人-电话
receive_provinceint(11)0收件人-省0
receive_cityint(11)0收件人-市0
receive_countyint(11)0收件人-县/区0
receive_addresschar(200)收件人-详细地址
user_notechar(255)用户备注
express_idint(11)0快递id0
express_numberchar(60)快递单号
payment_idint(11)0支付方式id0
okayapi_shopxo_s_order_statustinyint(2)0订单状态(0待确认, 1已确认/待支付, 2已支付/待发货, 3已发货/待收货, 4已完成, 5已取消, 6已关闭)Normal Index0
pay_statustinyint(1)0支付状态(0未支付, 1已支付, 2已退款, 3部分退款)Normal Index0
extension_datalongtext扩展展示数据
buy_number_countint(11)0购买商品总数量0
increase_pricedecimal(10,2) unsigned0.00增加的金额0.00
preferential_pricedecimal(10,2) unsigned0.00优惠金额0.00
pricedecimal(10,2) unsigned0.00订单单价0.00
total_pricedecimal(10,2) unsigned0.00订单总价(订单最终价格)0.00
pay_pricedecimal(10,2) unsigned0.00已支付金额0.00
refund_pricedecimal(10,2)0.00退款金额0.00
returned_quantityint(11)0退货数量0
client_typechar(30)客户端类型(pc, h5, ios, android, alipay, weixin, baidu)取APPLICATION_CLIENT_TYPE常量值
pay_timeint(11)0支付时间0
confirm_timeint(11)0确认时间0
delivery_timeint(11)0发货时间0
cancel_timeint(11)0取消时间0
collect_timeint(11)0收货时间0
close_timeint(11)0关闭时间0
comments_timeint(11)0评论时间0
is_commentsint(11)0商家是否已评论(0否, 大于0评论时间)0
user_is_commentsint(11)0用户是否已评论(0否, 大于0评论时间)0
is_delete_timeint(11)0商家是否已删除(0否, 大于0删除时间)0
user_is_delete_timeint(11)0用户是否已删除(0否, 大于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 ↑