<?php
require_once __DIR__ . '/BaseModel.php';

class Lookup extends BaseModel {
    // Dynamic table based on instantiation
    public function __construct($table) {
        parent::__construct();
        $this->table = $table;
    }
    
    public function getActive() {
        $stmt = $this->db->query("SELECT * FROM {$this->table} WHERE status = 'active'");
        return $stmt->fetchAll();
    }
}
