Chore: small fixes for the presentation
This commit is contained in:
@@ -13,7 +13,7 @@ return new class extends Migration
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->unsignedBigInteger('role_id')->after('id')->default(3);
|
||||
$table->unsignedBigInteger('department_id')->nullable()->after('role_id');
|
||||
$table->unsignedBigInteger('department_id')->nullable()->after('role_id')->default(1);
|
||||
$table->foreign('role_id')->references('id')->on('roles')->onDelete('cascade');
|
||||
$table->foreign('department_id')->references('id')->on('departments')->onDelete('cascade');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user