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

class Admin extends BaseModel {
    protected $table = 'admins';

    public function findByEmail($email) {
        $stmt = $this->db->prepare("SELECT * FROM {$this->table} WHERE email = ? LIMIT 1");
        $stmt->execute([$email]);
        return $stmt->fetch();
    }
}
