@@ -0,0 +1,27 @@
|
||||
<?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',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user