From b7d2405e69b9c7366f40e894974b15b4a75b725a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=9D=99?= Date: Thu, 16 Dec 2021 11:07:27 +0800 Subject: [PATCH] WIP --- .../migrations/2021_12_07_115801_create_user_coupons_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2021_12_07_115801_create_user_coupons_table.php b/database/migrations/2021_12_07_115801_create_user_coupons_table.php index 2ae10107..911081c3 100644 --- a/database/migrations/2021_12_07_115801_create_user_coupons_table.php +++ b/database/migrations/2021_12_07_115801_create_user_coupons_table.php @@ -19,7 +19,7 @@ class CreateUserCouponsTable extends Migration $table->unsignedBigInteger('coupon_id')->comment('优惠ID'); $table->string('coupon_name')->comment('优惠券名称'); $table->tinyInteger('coupon_type')->default(0)->unsigned()->comment('优惠券类型:1抵扣券,2折扣券'); - $table->unsignedInteger('coupon_value')->default(0)->comment('抵扣金额:分/折扣(100)'); + $table->unsignedInteger('coupon_amount')->default(0)->comment('抵扣金额:分/折扣(100)'); $table->unsignedBigInteger('coupon_threshold')->default(0)->comment('使用门槛金额:分'); $table->timestamp('use_start_at')->comment('使用开始时间'); $table->timestamp('use_end_at')->comment('使用结束时间');