|
@@ -104,16 +104,5 @@ CREATE TABLE `v2_coupon` (
|
|
|
`updated_at` int(11) NOT NULL,
|
|
|
);
|
|
|
|
|
|
-CREATE TABLE `v2_coupon_log` (
|
|
|
- `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
|
- `user_id` int(11) NOT NULL,
|
|
|
- `coupon_id` int(11) NOT NULL,
|
|
|
- `order_trade_no` char(32) NOT NULL,
|
|
|
- `total_amount` int(11) NOT NULL,
|
|
|
- `discount_amount` int(11) NOT NULL,
|
|
|
- `created_at` int(11) NOT NULL,
|
|
|
- `updated_at` int(11) NOT NULL
|
|
|
-);
|
|
|
-
|
|
|
ALTER TABLE `v2_order`
|
|
|
ADD `discount_amount` int(11) NULL AFTER `total_amount`;
|