*/ class ProductionOrderInstallationFactory extends Factory { protected $model = ProductionOrderInstallation::class; public function definition(): array { return [ 'production_order_id' => ProductionOrder::factory(), 'installation_date' => fake()->dateTimeBetween('now', '+3 months'), 'installation_days' => fake()->numberBetween(1, 20), 'brigadier_id' => User::factory()->brigadier(), 'note' => fake()->optional()->sentence(), 'created_by' => null, 'updated_by' => null, ]; } }