<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateOwnerPriceExpressesProvincesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('owner_price_express_provinces', function (Blueprint $table) {
            $table->id();
            $table->bigInteger("owner_price_express_id")->index()->comment("外键快递价格");
            $table->bigInteger("province_id")->index()->comment("外键省份");
            $table->decimal("initial_weight_price",8,4)->comment("初始单价");
            $table->decimal("additional_weight_price",8,4)->comment("续重单价");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('owner_price_expresses_provinces');
    }
}
