|
@@ -3,14 +3,18 @@
|
|
|
|
|
|
|
|
|
| field | type | null | default | desc | extra |
|
|
|
-|----|:-----|:-------|:------|:-----|:-----|
|
|
|
+|:----:|:-----|:-------|:------|:-----|:-----|
|
|
|
| id | bigint | no | | 主键 | pri |
|
|
|
| item_id | bigint | no | | 商品id | |
|
|
|
-| price_id | int | no | | 价格类型 | |
|
|
|
-| price | double(16,2) | no | 0 | 价格 | |
|
|
|
+| type | int | no | 0 | 价格类型, 0:售卖价, 2: 课程包价 | |
|
|
|
+| duration | int | no | | 售卖时长 | |
|
|
|
+| name | varchar(512) | no | | 价格名字 | |
|
|
|
+| cp_price | double(16,2) | no | 0 | 内容提供商成本价 | |
|
|
|
+| mr_price | double(16,2) | no | 0 | 给渠道价格 | |
|
|
|
+| tr_price | double(16,2) | no | 0 | 终端显示价格 | |
|
|
|
| status | smallint | no | | 状态 | |
|
|
|
-| create_time | smallint | no | now | 创建时间 | |
|
|
|
-| update_time | timestamp | no | now | 更新时间 | | |
|
|
|
+| gmt_created | smallint | no | now | 创建时间 | |
|
|
|
+| gmt_modified | timestamp | no | now | 更新时间 | | |
|
|
|
|
|
|
-##### index
|
|
|
-> index unique on(item_id, type)
|
|
|
+### index
|
|
|
+index on(item_id)
|