You've already forked isop-mirror
36 lines
993 B
PHP
36 lines
993 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Internship>
|
|
*/
|
|
class InternshipFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
$start = fake()->dateTime()->setTime(0, 0, 0, 0);
|
|
$end = (clone $start)->modify('+' . fake()->numberBetween(150, 160) . ' hours')->setTime(0, 0, 0, 0);
|
|
|
|
return [
|
|
'user_id' => 0,
|
|
'company_id' => 0,
|
|
'start' => $start,
|
|
'end' => $end,
|
|
'year_of_study' => fake()->randomElement([1, 2, 3, 4, 5]),
|
|
'semester' => fake()->randomElement(["WINTER", "SUMMER"]),
|
|
'position_description' => fake()->jobTitle(),
|
|
'proof' => null,
|
|
'report' => null,
|
|
'report_confirmed' => false,
|
|
];
|
|
}
|
|
}
|