feat: fase 2 backend — crowd types, persons, sections, shifts, invite flow
- Crowd Types + Persons CRUD (73 tests) - Festival Sections + Time Slots + Shifts CRUD met assign/claim flow (84 tests) - Invite Flow + Member Management met InvitationService (109 tests) - Schema v1.6 migraties volledig uitgevoerd - DevSeeder bijgewerkt met crowd types voor testorganisatie
This commit is contained in:
26
api/database/factories/CompanyFactory.php
Normal file
26
api/database/factories/CompanyFactory.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Company;
|
||||
use App\Models\Organisation;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/** @extends Factory<Company> */
|
||||
final class CompanyFactory extends Factory
|
||||
{
|
||||
/** @return array<string, mixed> */
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'organisation_id' => Organisation::factory(),
|
||||
'name' => fake('nl_NL')->company(),
|
||||
'type' => fake()->randomElement(['supplier', 'partner', 'agency', 'venue', 'other']),
|
||||
'contact_name' => fake('nl_NL')->name(),
|
||||
'contact_email' => fake()->companyEmail(),
|
||||
'contact_phone' => fake('nl_NL')->phoneNumber(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user