Implement compliance exports and retention overrides
This commit is contained in:
33
database/factories/RetentionOverrideFactory.php
Normal file
33
database/factories/RetentionOverrideFactory.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?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,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user