<?php

namespace App\Models;

use CodeIgniter\Model;

class UserModel extends Model
{
    protected $table            = 'users'; // Static table name as requested
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $allowedFields    = [
        'uid', 
        'name', 
        'phone', 
        'wallet_balance', 
        'user_pin', 
        'panic_pin', 
        'active_qr_token',
        'is_setup_complete'
    ];

    // Use built-in timestamps for created_at
    protected $useTimestamps = false; 
}