<?php

namespace Database\Factories;

use App\Models\TravelRequest;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\TravelCostCode>
 */
class TravelCostCodeFactory extends Factory
{
    public function definition(): array
    {
        return [
            'travel_request_id' => TravelRequest::factory(),
            'business_unit' => strtoupper(fake()->lexify('BU???')),
            'project_grant' => fake()->optional()->numerify('PG-#####'),
            'account_code' => strtoupper(fake()->lexify('AC????')),
            'class_code' => fake()->optional()->numerify('CC###'),
        ];
    }
}
