<?php

namespace App\Models;

use CodeIgniter\Model;

class AirlineModel extends Model
{
    protected $table            = 'Airlines';
    protected $primaryKey       = 'Airline_Code';
    protected $useAutoIncrement = false; // Because Airline_Code is not auto-increment

    protected $returnType       = 'array';
    protected $useSoftDeletes   = false;

    protected $allowedFields    = [
        'airline',
        'airline_name',
    ];

    protected $useTimestamps    = false;

    // Validation rules (optional)
    protected $validationRules      = [
        'Airline_Code' => 'required|alpha_numeric|max_length[2]',
        'Airline_Name' => 'required|max_length[70]',
    ];
    protected $validationMessages   = [];
    protected $skipValidation       = false;
}
