+ 立即免费创建此表 返回数据库大全

MySQL建表SQL语句

数据库结构:ShopXO商城-订单售后:https://open.yesapi.cn/tablelist/yesapi_shopxo_s_order_aftersale.html


-- 数据库大全:ShopXO商城-订单售后
-- 来源:YesApi.cn
CREATE TABLE `yesapi_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',
    `yesapi_shopxo_s_order_aftersale_status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '状态(0待确认, 1待退货, 2待审核, 3已完成, 4已拒绝, 5已取消)',
    `yesapi_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 '申请原因',
    `yesapi_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_id` (`order_id`),
    KEY `goods_id` (`goods_id`),
    KEY `user_id` (`user_id`),
    KEY `yesapi_shopxo_s_order_aftersale_status` (`yesapi_shopxo_s_order_aftersale_status`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'ShopXO商城-订单售后';

复制后,到数据库执行,即可创建此数据库表。


MySQL数据库表结构设计

第 1-22 条, 共 22 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
order_nochar(60)订单号无索引
order_detail_idint(11)0订单详情id无索引0
order_idint(11)0订单id普通索引0
goods_idint(11)0商品id普通索引0
user_idint(11)0用户id普通索引0
yesapi_shopxo_s_order_aftersale_statustinyint(2)0状态(0待确认, 1待退货, 2待审核, 3已完成, 4已拒绝, 5已取消)普通索引0
yesapi_shopxo_s_order_aftersale_typetinyint(1)0业务类型(0仅退款, 1退货退款)无索引0
refundmenttinyint(1)0退款类型(0原路退回, 1退至钱包, 2手动处理)无索引0
reasonchar(180)申请原因无索引
yesapi_shopxo_s_order_aftersale_numberint(11)0退货数量无索引0
pricedecimal(10,2) unsigned0.00退款金额无索引0.00
msgchar(230)退款说明无索引
imagestext凭证图片(一维数组json存储)无索引
refuse_reasonchar(230)拒绝原因无索引
express_namechar(60)快递名称无索引
express_numberchar(60)快递单号无索引
apply_timeint(11)0申请时间无索引0
confirm_timeint(11)0确认时间无索引0
delivery_timeint(11)0退货时间无索引0
audit_timeint(11)0审核时间无索引0
cancel_timeint(11)0取消时间无索引0
upd_timeint(11)0更新时间无索引0

猜你喜欢

MySQL数据库设计 ShopXO商城-管理员

MySQL数据库设计 ShopXO商城-用户留言/问答

MySQL数据库设计 ShopXO商城-手机 - 用户中心导航

MySQL数据库设计 ShopXO商城-手机 - 首页导航

MySQL数据库设计 ShopXO商城-文章

MySQL数据库设计 ShopXO商城-文章分类

MySQL数据库设计 ShopXO商城-附件

MySQL数据库设计 ShopXO商城-品牌

MySQL数据库设计 ShopXO商城-品牌分类

MySQL数据库设计 ShopXO商城-购物车

MySQL数据库设计 ShopXO商城-基本配置参数

MySQL数据库设计 ShopXO商城-自定义页面

MySQL数据库设计 ShopXO商城-快递公司

MySQL数据库设计 ShopXO商城-商品

MySQL数据库设计 ShopXO商城-用户商品浏览

MySQL数据库设计 ShopXO商城-商品分类

MySQL数据库设计 ShopXO商城-商品分类关联

MySQL数据库设计 ShopXO商城-商品评论

MySQL数据库设计 ShopXO商城-商品手机详情

MySQL数据库设计 ShopXO商城-用户商品收藏



回到顶部 ↑