CREATE TABLE IF NOT EXISTS ip_list (
    id INT AUTO_INCREMENT PRIMARY KEY,
    list_name VARCHAR(50) NOT NULL,
    ip_address VARCHAR(45) NOT NULL,
    retrieved_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    UNIQUE KEY unique_ip_list (list_name, ip_address)
); 