CREATE TABLE IF NOT EXISTS vpn_nodes (
    id UUID PRIMARY KEY,
    name VARCHAR(100) NOT NULL,
    country_code VARCHAR(10) NOT NULL, -- например 'de', 'nl'
    ip_address VARCHAR(50) NOT NULL,
    port INT NOT NULL DEFAULT 443,
    status VARCHAR(20) NOT NULL DEFAULT 'offline', -- online, offline, maintenance
    current_load INT NOT NULL DEFAULT 0,
    
    -- Конфигурация, которая улетит в TunnelConfig на мобилку
    tunnel_address VARCHAR(50) NOT NULL DEFAULT '10.0.0.1',
    tunnel_prefix INT NOT NULL DEFAULT 24,
    tunnel_dns VARCHAR(50) NOT NULL DEFAULT '10.0.0.2',
    tunnel_mtu INT NOT NULL DEFAULT 1380,
    
    last_seen TIMESTAMPTZ NOT NULL DEFAULT NOW(),
    created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);