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

View File

@@ -38,7 +38,7 @@ class ActivitiesAttendedResponsesTableSeeder extends Seeder
'organising_institute' => $organizingInstitutes[array_rand($organizingInstitutes)], // Random organization
'address' => $addresses[array_rand($addresses)], // Random address
'department_id' => rand(1, 5), // Random department ID
'faculty_id' => rand(1, 2), // Random faculty ID
'faculty_id' => rand(1, 5), // Random faculty ID
'start_date' => $startDate->format('Y-m-d H:i:s'), // Start date and time
'end_date' => $endDate->format('Y-m-d H:i:s'), // End date and time
'num_days' => $numDays, // Number of days