|
@@ -16,7 +16,7 @@ class CreateWaybillsTable extends Migration
|
|
|
Schema::create('waybills', function (Blueprint $table) {
|
|
Schema::create('waybills', function (Blueprint $table) {
|
|
|
$table->bigIncrements('id');
|
|
$table->bigIncrements('id');
|
|
|
$table->timestamps();
|
|
$table->timestamps();
|
|
|
- $table->string('state',20)->nullable()->comment('类型');
|
|
|
|
|
|
|
+ $table->enum('status',['未审核','已审核','待重审','待终审','已完结','无模型'])->default('未审核')->index()->comment('状态');
|
|
|
$table->enum('type',['直发车','专线'])->comment('类型');
|
|
$table->enum('type',['直发车','专线'])->comment('类型');
|
|
|
$table->string('waybill_number',50)->unique()->index()->comment('运单号');
|
|
$table->string('waybill_number',50)->unique()->index()->comment('运单号');
|
|
|
$table->bigInteger('owner_id')->index()->comment('货主');
|
|
$table->bigInteger('owner_id')->index()->comment('货主');
|