OwlCyberSecurity - MANAGER
Edit File: 2022_08_14_091959_create_users_roles_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users_roles', function (Blueprint $table) { $table->id(); $table->bigInteger('user_id')->unsigned()->nullable(); $table->bigInteger('role_id')->unsigned()->nullable(); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('users_roles'); } };