<?php

namespace App\Models;

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

class ImportedFlight extends Model
{
    public $timestamps = false;
    protected $fillable = [
        'user_id',
        'date',
        'flight_number',
        'from',
        'to',
        'dep_time',
        'arr_time',
        'duration',
        'airline',
        'aircraft',
        'registration',
        'seat_number',
        'seat_type',
        'flight_class',
        'flight_reason',
        'note',
    ];

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

}
