1 changed files with 30 additions and 0 deletions
@ -0,0 +1,30 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use Illuminate\Database\Migrations\Migration; |
||||
|
use Illuminate\Database\Schema\Blueprint; |
||||
|
use Illuminate\Support\Facades\Schema; |
||||
|
|
||||
|
return new class extends Migration |
||||
|
{ |
||||
|
/** |
||||
|
* Run the migrations. |
||||
|
*/ |
||||
|
public function up(): void |
||||
|
{ |
||||
|
Schema::create('admin_list_vip', function (Blueprint $table) { |
||||
|
$table->id(); |
||||
|
$table->string('license', 20)->unique()->comment('车牌号码'); |
||||
|
$table->integer('user_id')->comment('管理员id'); |
||||
|
$table->timestamps(); |
||||
|
$table->softDeletes(); |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* Reverse the migrations. |
||||
|
*/ |
||||
|
public function down(): void |
||||
|
{ |
||||
|
Schema::dropIfExists('admin_list_vip'); |
||||
|
} |
||||
|
}; |
||||
Loading…
Reference in new issue