You've already forked isop-mirror
feat: add report and report confirmation fields to Internship model and factory
This commit is contained in:
@@ -24,5 +24,19 @@ class Internship extends Model
|
|||||||
'semester',
|
'semester',
|
||||||
'position_description',
|
'position_description',
|
||||||
'agreement',
|
'agreement',
|
||||||
|
'report',
|
||||||
|
'report_confirmed',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the attributes that should be cast.
|
||||||
|
*
|
||||||
|
* @return array<string, string>
|
||||||
|
*/
|
||||||
|
protected function casts(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'report_confirmed' => 'boolean',
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,6 +28,8 @@ class InternshipFactory extends Factory
|
|||||||
'semester' => fake()->randomElement(["WINTER", "SUMMER"]),
|
'semester' => fake()->randomElement(["WINTER", "SUMMER"]),
|
||||||
'position_description' => fake()->jobTitle(),
|
'position_description' => fake()->jobTitle(),
|
||||||
'agreement' => null,
|
'agreement' => null,
|
||||||
|
'report' => null,
|
||||||
|
'report_confirmed' => false,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ return new class extends Migration
|
|||||||
$table->enum("semester", ["WINTER", "SUMMER"])->nullable(false);
|
$table->enum("semester", ["WINTER", "SUMMER"])->nullable(false);
|
||||||
$table->string("position_description")->nullable(false);
|
$table->string("position_description")->nullable(false);
|
||||||
$table->binary("agreement")->nullable(true);
|
$table->binary("agreement")->nullable(true);
|
||||||
|
$table->binary("report")->nullable(true);
|
||||||
|
$table->boolean("report_confirmed")->nullable(false)->default(false);
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user