archive_order_items
归档订单商品明细表
所属应用: archive
表结构
| ColumnName | Comment | Type | Not null | Default | Autoincrement |
|---|---|---|---|---|---|
| item_id | item_id | int(10) unsigned | Y | Y | |
| order_id | 订单ID | int(10) unsigned | Y | 0 | N |
| obj_id | 订单商品对象ID | int(10) unsigned | Y | 0 | N |
| shop_goods_id | shop_goods_id | varchar(50) | N | N | |
| product_id | 货品ID | int(10) unsigned | Y | 0 | N |
| shop_product_id | shop_product_id | varchar(50) | N | N | |
| bn | 货号 | varchar(200) | N | N | |
| name | 货品名称 | varchar(200) | N | N | |
| cost | 成本价 | decimal(20,3) | N | N | |
| price | 单价 | decimal(20,3) | Y | 0 | N |
| pmt_price | 优惠金额 | decimal(20,3) | N | 0 | N |
| sale_price | 销售金额 | decimal(20,3) | N | 0 | N |
| amount | 合计 | decimal(20,3) | N | N | |
| weight | 重量 | decimal(20,3) | N | N | |
| nums | 数量 | mediumint(8) unsigned | Y | 1 | N |
| sendnum | 已发数量 | mediumint(8) unsigned | Y | 0 | N |
| addon | 附加信息 | longtext | N | N | |
| item_type | 货品明细类型 | varchar(50) | Y | product | N |
| return_num | 已退货量 | mediumint(8) unsigned | N | 0 | N |
| delete | delete | enum('true','false') | N | false | N |
| divide_order_fee | 分摊之后的实付金额 | decimal(20,3) | N | N | |
| part_mjz_discount | 优惠分摊 | decimal(20,3) | N | N | |
| score | score | mediumint(8) unsigned | N | N | |
| sell_code | 销售编码 | varchar(32) | N | N | |
| promotion_id | 优惠编码 | varchar(32) | N | N |
索引
| Key name | Column names | Unique | Comment |
|---|---|---|---|
| primary | item_id | Y | |
| idx_c_order_id | order_id | N | |
| idx_c_obj_id | obj_id | N | |
| idx_c_product_id | product_id | N |
