Merge branch 'develop' of http://git.dev.yoho.cn/platform/yohobuy-doc into develop
Showing
1 changed file
with
27 additions
and
10 deletions
1 | 1 | ||
2 | -ALTER TABLE erp_product.product_price ADD coin_status TINYINT(3) UNSIGNED COMMENT '审批状态' DEFAULT 0; | ||
3 | -ALTER TABLE erp_product.product_price ADD auditor_id INT(11) UNSIGNED COMMENT '审批人id'; | 2 | +ALTER TABLE erp_product.product_price ADD coin_status TINYINT(3) UNSIGNED COMMENT '审批状态' DEFAULT 0; |
3 | +ALTER TABLE erp_product.product_price ADD auditor_id INT(11) UNSIGNED COMMENT '审批人id'; | ||
4 | 4 | ||
5 | 5 | ||
6 | CREATE TABLE erp_product.yohocoin_audit( | 6 | CREATE TABLE erp_product.yohocoin_audit( |
7 | -id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键', | ||
8 | -biz_id INT(11) UNSIGNED COMMENT '业务id', | ||
9 | -auditor_id INT(11) COMMENT '审批人id', | ||
10 | -audit_date INT COMMENT '审批时间', | ||
11 | -content VARCHAR(128) COMMENT '审批意见', | ||
12 | -`coin_number` INT(11) UNSIGNED COMMENT '有货币数量', | ||
13 | -operator_id INT(11) COMMENT '操作人id', | ||
14 | -`status` TINYINT(3) UNSIGNED COMMENT '审批状态 1:待审核,2:通过,3:驳回', | 7 | +id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键', |
8 | +biz_id INT(11) UNSIGNED COMMENT '业务id', | ||
9 | +auditor_id INT(11) COMMENT '审批人id', | ||
10 | +audit_date INT COMMENT '审批时间', | ||
11 | +content VARCHAR(128) COMMENT '审批意见', | ||
12 | +`coin_number` INT(11) UNSIGNED COMMENT '有货币数量', | ||
13 | +operator_id INT(11) COMMENT '操作人id', | ||
14 | +`status` TINYINT(3) UNSIGNED COMMENT '审批状态 1:待审核,2:通过,3:驳回', | ||
15 | PRIMARY KEY(id), | 15 | PRIMARY KEY(id), |
16 | KEY `key_biz_id` (biz_id) | 16 | KEY `key_biz_id` (biz_id) |
17 | ); | 17 | ); |
18 | + | ||
19 | + | ||
20 | +Alter table yh_orders.orders add column deliver_yoho_coin int(11) DEFAULT 0 comment '赠送有货币数'; | ||
21 | + | ||
22 | +CREATE TABLE yh_orders.orders_yoho_coin ( | ||
23 | + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, | ||
24 | + `order_code` bigint(20) unsigned NOT NULL DEFAULT '0', | ||
25 | + `yoho_coin_num` int(11) DEFAULT 0 comment '赠送有货币数', | ||
26 | + `status` tinyint(4) NOT NULL DEFAULT '0' comment '0 代表 需要赠送 1代表已赠送 2代表订单取消不赠送', | ||
27 | + `create_time` int(10) unsigned NOT NULL DEFAULT '0', | ||
28 | + `deliver_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '赠送时间', | ||
29 | + `uid` int(11) unsigned NOT NULL DEFAULT '0', | ||
30 | + PRIMARY KEY (`id`), | ||
31 | + UNIQUE `order_coin_code` (`order_code`), | ||
32 | + KEY `order_coin_time` (`create_time`) | ||
33 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
34 | + |
-
Please register or login to post a comment