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('使用结束时间');