Chore: small fixes for the presentation

This commit is contained in:
Sallu9007
2025-05-14 14:26:21 +05:30
parent 8f2ad606ca
commit e0010a6929
6 changed files with 21 additions and 12 deletions

View File

@@ -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');
});