<?php

namespace App\Models;

use CodeIgniter\Model;

class UserModel extends Model
{
    protected $table            = 'users';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $allowedFields    = [
        'koperasi_id', 'role_id', 'nama', 'email', 
        'phone', 'password', 'status', 'created_at',
        'alamat_utama', 'nik', 'foto_profil', 'verification_status',
        'qris_path', 'no_rekening', 'bank_name'
    ];
    protected $useTimestamps    = false;
}
