<?php

namespace App\Models;

use CodeIgniter\Model;

class FlightModel extends Model
{
    protected $table = 'flights';
    protected $primaryKey = 'id';
    protected $allowedFields = ['airline', 'flight_number', 'source', 'destination', 'departure_time', 'arrival_time', 'base_price', 'seats_available'];
    protected $useTimestamps = true;
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
}
