电商系统:订单实体设计、数据库表设计

UserOrder表详细描述了客户订单的信息,包括订单号oder_code、所属用户order_username、订单来源order_source以及商品列表order_skus,其中包含了sku编码、主图、标题、单价、成交价、数量、发货状态等。此外,还涵盖了优惠券抵扣、活动折扣、运费详情和订单总金额等交易信息。
摘要由CSDN通过智能技术生成

UserOrder(客户订单表):

参数

参数注释

类型

是否非空

示例

说明

oder_code

订单号

string

Y

12022110102481315119

order_username

所属用户

long

Y

1f2kpfomc12po13peE

订单所有者,默认=创建人

order_source

订单来源

int

Y

order_skus[]

商品列表

string array

Y

order_skus[].sku_code

sku编码

string

Y

12020101012345678001001

order_skus[].sku_head_img_def

sku主图

string

Y

https://ex.com/img.jpg

order_skus[].sku_title

sku标题

string

Y

【自营】Calvin Klein/凯文克莱男士羊毛围巾男生围脖羊绒男款

order_skus[].sku_price

sku单价

int

Y

219.50

order_skus[].order_price

sku成交单价

int

Y

209.50

优惠后成交单价

order_skus[].sku_num

购买数量

int

Y

2

order_skus[].delivery_status

发货状态

int

Y

1:未发货;2:部分发货;3:已发货

order_skus[].after_sales_num

可售后数量

int

Y

2

默认等于购买数量

order_skus[].sku_content_id

商品内容

text

Y

1

数据快照

skus_price

商品总价

int

Y

1000.00

discounted_coupon_price

优惠券抵扣金额

int

Y

50.00

discounted_coupon_record_code

优惠券记录编码

string

Y/N

优惠券抵扣金额大于0时,非空

discounted_active_price

活动抵扣金额

int

Y

30.00

discounted_active_code

活动编码

string

Y/N

活动抵扣金额大于0时,非空

freight_price

运费金额

int

Y

10.00

freight_template_code

运费模板编码

string

Y/N

运费大于0时,非空

freight_template_content

运费模板内容

string

Y/N

运费大于1时,非空

order_price

订单金额

int

Y

910.00

delivery_method

配送方式

int

Y

address_name

收件人

string

Y

address_tel_number

收件人手机号码

int

Y

address_province

string

Y

address_city

string

Y

address_region

string

Y

address_detail

详细地址

string

Y

address_postal

邮编

int

N

Y

create_date

创建时间

date

Y

create_by

创建人

date

Y

update_date

更新时间

date

Y

update_by

更新人

date

Y

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值