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');
|
||||
});
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user