25 lines
860 B
PHP
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(),
|
|
];
|
|
}
|
|
} |