<?php

namespace App\Models;

use CodeIgniter\Model;

class AirportCodeModel extends Model
{
    protected $table      = 'Airport_Code_State';
    protected $primaryKey = 'Code';

    protected $useAutoIncrement = false; // Since 'Code' is NOT AUTO_INCREMENT
    protected $returnType    = 'array'; // You can set it to 'object' if you prefer
    protected $useSoftDeletes = false;

    protected $allowedFields = [
        'Code',
        'City',
        'Airport',
        'Country_Code',
        'Country',
        'State',
        'Region',
        'Timezone',
        'GMTOffset',
        'DSTOffset',
        'RawOffset',
        'is_active'
    ];

}
