<?php
declare(strict_types=1);

namespace App\Models;

use App\Core\Database;

final class Tenant
{
    public static function find(int $id): ?array
    {
        return Database::instance()->fetch(
            "SELECT id, name, slug, industry_code, timezone, status FROM tenants WHERE id = :id AND status = 'active'",
            ['id' => $id]
        );
    }
}
