<?php

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

class CreateAreaClerksTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('area_clerks', function (Blueprint $table) {
            $table->id();
            $table->unsignedInteger('area_id')->comment('订单')->index();
            $table->unsignedInteger('user_id')->comment('操作员')->index();
        });
    }

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