MySQL Create Table SQL
Table Structure: okayapi_shopxo_s_order_aftersale:/tablelist/okayapi_shopxo_s_order_aftersale.html
-- MySQL Table okayapi_shopxo_s_order_aftersale
-- From: OkayAPI.com
CREATE TABLE `okayapi_shopxo_s_order_aftersale` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`order_no` char(60) NOT NULL COMMENT '订单号',
`order_detail_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',
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
`okayapi_shopxo_s_order_aftersale_status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '状态(0待确认, 1待退货, 2待审核, 3已完成, 4已拒绝, 5已取消)',
`okayapi_shopxo_s_order_aftersale_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '业务类型(0仅退款, 1退货退款)',
`refundment` tinyint(1) NOT NULL DEFAULT '0' COMMENT '退款类型(0原路退回, 1退至钱包, 2手动处理)',
`reason` char(180) NOT NULL COMMENT '申请原因',
`okayapi_shopxo_s_order_aftersale_number` int(11) NOT NULL DEFAULT '0' COMMENT '退货数量',
`price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '退款金额',
`msg` char(230) NOT NULL COMMENT '退款说明',
`images` text NOT NULL COMMENT '凭证图片(一维数组json存储)',
`refuse_reason` char(230) NOT NULL COMMENT '拒绝原因',
`express_name` char(60) NOT NULL COMMENT '快递名称',
`express_number` char(60) NOT NULL COMMENT '快递单号',
`apply_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 '退货时间',
`audit_time` int(11) NOT NULL DEFAULT '0' COMMENT '审核时间',
`cancel_time` int(11) NOT NULL DEFAULT '0' COMMENT '取消时间',
`upd_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
KEY `order_no` (`order_no`),
KEY `order_detail_id` (`order_detail_id`),
KEY `order_id` (`order_id`),
KEY `goods_id` (`goods_id`),
KEY `user_id` (`user_id`),
KEY `okayapi_shopxo_s_order_aftersale_status` (`okayapi_shopxo_s_order_aftersale_status`),
KEY `okayapi_shopxo_s_order_aftersale_type` (`okayapi_shopxo_s_order_aftersale_type`),
KEY `refundment` (`refundment`),
KEY `reason` (`reason`),
KEY `okayapi_shopxo_s_order_aftersale_number` (`okayapi_shopxo_s_order_aftersale_number`),
KEY `price` (`price`),
KEY `msg` (`msg`),
KEY `images` (`images`),
KEY `refuse_reason` (`refuse_reason`),
KEY `express_name` (`express_name`),
KEY `express_number` (`express_number`),
KEY `apply_time` (`apply_time`),
KEY `confirm_time` (`confirm_time`),
KEY `delivery_time` (`delivery_time`),
KEY `audit_time` (`audit_time`),
KEY `cancel_time` (`cancel_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-22 of 22 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
order_no | char(60) | 否 | 订单号 | |||
order_detail_id | int(11) | 0 | 否 | 订单详情id | 0 | |
order_id | int(11) | 0 | 否 | 订单id | Normal Index | 0 |
goods_id | int(11) | 0 | 否 | 商品id | Normal Index | 0 |
user_id | int(11) | 0 | 否 | 用户id | Normal Index | 0 |
okayapi_shopxo_s_order_aftersale_status | tinyint(2) | 0 | 否 | 状态(0待确认, 1待退货, 2待审核, 3已完成, 4已拒绝, 5已取消) | Normal Index | 0 |
okayapi_shopxo_s_order_aftersale_type | tinyint(1) | 0 | 否 | 业务类型(0仅退款, 1退货退款) | 0 | |
refundment | tinyint(1) | 0 | 否 | 退款类型(0原路退回, 1退至钱包, 2手动处理) | 0 | |
reason | char(180) | 否 | 申请原因 | |||
okayapi_shopxo_s_order_aftersale_number | int(11) | 0 | 否 | 退货数量 | 0 | |
price | decimal(10,2) unsigned | 0.00 | 否 | 退款金额 | 0.00 | |
msg | char(230) | 否 | 退款说明 | |||
images | text | 是 | 凭证图片(一维数组json存储) | |||
refuse_reason | char(230) | 否 | 拒绝原因 | |||
express_name | char(60) | 否 | 快递名称 | |||
express_number | char(60) | 否 | 快递单号 | |||
apply_time | int(11) | 0 | 否 | 申请时间 | 0 | |
confirm_time | int(11) | 0 | 否 | 确认时间 | 0 | |
delivery_time | int(11) | 0 | 否 | 退货时间 | 0 | |
audit_time | int(11) | 0 | 否 | 审核时间 | 0 | |
cancel_time | int(11) | 0 | 否 | 取消时间 | 0 | |
upd_time | int(11) | 0 | 否 | 更新时间 | 0 |