| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- use App\City;
- use App\Logistic;
- use App\LogisticTiming;
- use App\Province;
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class CreateLogisticTimingsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('logistic_timings', function (Blueprint $table) {
- $table->id();
- $table->integer('logistic_id')->index()->comment('承运商');
- $table->integer('to_province_id')->index()->comment('目的省');
- $table->integer('to_city_id')->index()->nullable()->comment('目的市');
- $table->integer('days_at_working')->nullable()->comment('工作日用日');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('logistic_timings');
- }
- }
|