<?php

namespace Database\Factories;

use App\Modules\Clients\Client;
use Illuminate\Database\Eloquent\Factories\Factory;

class ClientFactory extends Factory
{
    protected $model = Client::class;

    public function definition()
    {
        return [
            'name' => $this->faker->company,
            'primary_site' => 1,
            'primary_contact' => 1,
            'contract_id' => 1,
            'contract_price' => $this->faker->randomFloat(2, 100, 10000),
            'contract_start_date' => $this->faker->dateTimeThisDecade->format('Y-m-d H:i:s'),
            'contract_end_date' => $this->faker->dateTimeThisDecade->format('Y-m-d H:i:s'),
            'contract_monthly_allowance' => $this->faker->randomFloat(2, 10, 1000),
            'sla_id' => 1,
            'website' => $this->faker->url,
            'followup_exempt' => 0,
            'blind_notes' => $this->faker->sentence,
            'flagged' => 0,
            'dynamics_id' => null,
            'onSite' => 0,
            'emergency' => 0,
            'recurring' => 0,
            'contractStart' => $this->faker->dateTimeThisDecade->format('Y-m-d H:i:s'),
            'isRecurring' => 0,
        ];
    }
} 