<?php

namespace App\Models;

use CodeIgniter\Model;

class UserModel extends Model
{
    protected $table = ''; // Default table name
    protected $primaryKey = '';           // Default primary key
    protected $allowedFields = '';
    public function tables(string $tableName, string $id, array $allowedFields)
    {
        $this->table = $tableName;
        $this->primaryKey = $id; // Set the primary key
        $this->allowedFields = $allowedFields;
    }

    //     public function login(string $tableName, string $id, array $allowedFields)
    // {
    //     $this->table = $tableName;
    //     $this->primaryKey = $id; // Set the primary key
    //     $this->allowedFields = $allowedFields;
    // }
}