34 lines
868 B
PHP
34 lines
868 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Enums\RetentionOverrideScope;
|
|
use App\Models\Tenant;
|
|
use App\Models\User;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\RetentionOverride>
|
|
*/
|
|
class RetentionOverrideFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'scope' => RetentionOverrideScope::TENANT,
|
|
'tenant_id' => Tenant::factory(),
|
|
'event_id' => null,
|
|
'reason' => $this->faker->sentence(3),
|
|
'note' => $this->faker->optional()->sentence(),
|
|
'created_by_id' => User::factory(),
|
|
'released_by_id' => null,
|
|
'released_at' => null,
|
|
];
|
|
}
|
|
}
|