<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;

class IataEquipmentCode extends Model
{
    public $timestamps = false;

    protected $fillable = [
        'iata_code',
        'icao_code',
        'description',
    ];

    public function aircraft(): HasMany
    {
        return $this->hasMany(Aircraft::class, 'designator', 'icao_code');
    }
}
