<?php 

namespace App\Models;
use CodeIgniter\Model;

class BlocklistModel extends Model{
    
    protected $table = 'tbl_xui_dns_block';
    protected $primaryKey = 'id';
    protected $allowedFields = [];
    
    public function __construct(){
        parent::__construct();
        $this->allowedFields = $this->db->getFieldNames($this->table); // Dynamically get all fields
    }
}