<?php

namespace App\Models;

use CodeIgniter\Model;

class UserHotelMembershipModel extends Model
{
    protected $table            = 'c_user_hotel_membership';
    protected $primaryKey       = 'id';

    protected $allowedFields    = [
        'user_id',
        'hotel_id',
        'hotel_name',
        'membership_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;

    protected $returnType       = 'array'; // or 'object' based on your preference

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