From 8c83eb50276db149b246226b2996452c7881f88e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=9D=99?= Date: Thu, 16 Dec 2021 19:28:29 +0800 Subject: [PATCH] Update --- database/migrations/2021_12_07_143655_create_orders_table.php | 4 ++-- .../2021_12_07_143722_create_order_products_table.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/database/migrations/2021_12_07_143655_create_orders_table.php b/database/migrations/2021_12_07_143655_create_orders_table.php index 9daf33ae..05e6cd1e 100644 --- a/database/migrations/2021_12_07_143655_create_orders_table.php +++ b/database/migrations/2021_12_07_143655_create_orders_table.php @@ -17,8 +17,8 @@ class CreateOrdersTable extends Migration $table->id(); $table->unsignedBigInteger('user_id')->comment('用户ID'); $table->string('sn')->comment('订单编号'); - $table->unsignedBigInteger('coupon_disount_amount')->default(0)->comment('优惠券折扣金额'); - $table->unsignedBigInteger('vip_disount_amount')->default(0)->comment('会员折扣金额'); + $table->unsignedBigInteger('coupon_discount_amount')->default(0)->comment('优惠券折扣金额'); + $table->unsignedBigInteger('vip_discount_amount')->default(0)->comment('会员折扣金额'); $table->unsignedBigInteger('reduced_amount')->default(0)->comment('减免金额'); $table->unsignedBigInteger('shipping_fee')->default(0)->comment('运费'); $table->unsignedBigInteger('products_total_amount')->comment('商品总额'); diff --git a/database/migrations/2021_12_07_143722_create_order_products_table.php b/database/migrations/2021_12_07_143722_create_order_products_table.php index 6af72901..c415609a 100644 --- a/database/migrations/2021_12_07_143722_create_order_products_table.php +++ b/database/migrations/2021_12_07_143722_create_order_products_table.php @@ -28,7 +28,7 @@ class CreateOrderProductsTable extends Migration $table->unsignedInteger('weight')->default(0)->comment('重量:g'); $table->unsignedBigInteger('sell_price')->comment('商品价格'); $table->unsignedBigInteger('vip_price')->nullable()->comment('会员价格'); - $table->unsignedBigInteger('coupon_disount_amount')->default(0)->comment('优惠券金额'); + $table->unsignedBigInteger('coupon_discount_amount')->default(0)->comment('优惠券金额'); $table->unsignedBigInteger('vip_discount_amount')->default(0)->comment('会员优惠'); $table->unsignedBigInteger('reduced_amount')->default(0)->comment('减免金额'); $table->unsignedBigInteger('total_amount')->comment('商品总额(支付金额)=商品价格*数量-优惠券金额-会员优惠-减免金额');