<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class TravelCostCode extends Model
{
    /** @use HasFactory<\Database\Factories\TravelCostCodeFactory> */
    use HasFactory;

    protected $fillable = [
        'travel_request_id',
        'business_unit',
        'project_grant',
        'account_code',
        'class_code',
    ];

    public function travelRequest(): BelongsTo
    {
        return $this->belongsTo(TravelRequest::class);
    }
}
