<?php

namespace App\Models;

use CodeIgniter\Model;

class UserVisaDetailsModel extends Model
{
    protected $table            = 'c_user_visa_details';
    protected $primaryKey       = 'id';

    protected $allowedFields    = [
        'user_id',
        'country_code',
        'visa_type_id',
        'valid_from',
        'valid_upto',
        'created_on',
        'created_by',
        'updated_on',
        'updated_by',
        'is_active'
    ];

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

    protected $useSoftDeletes   = false;

    protected $returnType       = 'array'; // You can change to 'object' if you prefer

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