6
0
Fork 0
release
李静 2021-12-16 19:28:29 +08:00
parent cabcf27d7e
commit 8c83eb5027
2 changed files with 3 additions and 3 deletions

View File

@ -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('商品总额');

View File

@ -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('商品总额(支付金额)=商品价格*数量-优惠券金额-会员优惠-减免金额');