You've already forked isop-mirror
refactor: create models, factories, and seeders for Company, Internship, InternshipStatus, and StudentData
This commit is contained in:
26
backend/database/factories/StudentDataFactory.php
Normal file
26
backend/database/factories/StudentDataFactory.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\StudentData>
|
||||
*/
|
||||
class StudentDataFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'user_id' => 0,
|
||||
'address' => fake()->address(),
|
||||
'personal_email' => fake()->safeEmail(),
|
||||
'study_field' => fake()->randomElement(["AI22m", "AI22b"]),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user