<?php
declare(strict_types=1);

namespace App\Models;

use App\Core\Model;

/**
 * Subscription Plan Model
 */
class PlanModel extends Model
{
    protected string $table = 'plans';

    public function getActivePlans(): array
    {
        $stmt = $this->db->prepare("SELECT * FROM plans WHERE is_active = 1");
        $stmt->execute();
        return $stmt->fetchAll();
    }
}
