<?php

namespace App\Models;

use CodeIgniter\Model;

class UserFrequentFlierInformationModel extends Model
{
    protected $table            = 'c_user_frequent_flier_information';
    protected $primaryKey       = 'id';

    protected $allowedFields    = [
        'user_id',
        'airline',
        'frequent_flier_number',
        'created_on',
        'created_by',
        'updated_on',
        'updated_by',
        'is_active'
    ];

    protected $useTimestamps    = true;
    protected $createdField     = 'created_on';
    protected $updatedField     = 'updated_on';

    protected $useSoftDeletes   = false; // Set true if you want soft delete functionality.

    protected $returnType       = 'array'; // or 'object' if you prefer

    protected $validationRules  = [];
    protected $validationMessages = [];
    protected $skipValidation   = true;
}
