28 lines
693 B
PHP
28 lines
693 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Project;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Str;
|
|
|
|
/** @extends Factory<Project> */
|
|
class ProjectFactory extends Factory
|
|
{
|
|
protected $model = Project::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'source_system' => 'example',
|
|
'external_id' => (string) Str::uuid(),
|
|
'data_classification' => 'internal',
|
|
'code' => 'EXAMPLE-'.Str::uuid(),
|
|
'name' => 'Projecto fictício de teste',
|
|
'status' => 'draft',
|
|
'budget_amount' => '1000.00',
|
|
'budget_currency' => 'MZN',
|
|
];
|
|
}
|
|
}
|