Files
GSB-Construction/Modules/ProjectManagement/database/factories/ProjectFactory.php
Impenggg 42ba980f7a
Some checks failed
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
Tests / PHP 8.5 (push) Has been cancelled
feat: implement core material requisition, project management, and daily reporting modules with workflow validation and automated documentation support.
2026-08-01 15:38:57 +08:00

25 lines
860 B
PHP

<?php
namespace Modules\ProjectManagement\Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Modules\ProjectManagement\Models\Project;
class ProjectFactory extends Factory
{
protected $model = Project::class;
public function definition(): array
{
return [
'name' => fake()->company() . ' Project',
'project_type' => fake()->randomElement(['standard', 'special', 'extension']),
'status' => 'planning',
'current_wizard_step' => 2,
'contract_value' => fake()->randomFloat(2, 100000, 5000000),
'contract_duration' => fake()->numberBetween(30, 365),
'start_date' => now()->toDateString(),
'target_end_date' => now()->addDays(180)->toDateString(),
];
}
}