-- Add table to store CA certificate and key
CREATE TABLE IF NOT EXISTS ca_certificates (
    id INT AUTO_INCREMENT PRIMARY KEY,
    ca_cert_pem TEXT NOT NULL,
    ca_key_pem TEXT NOT NULL,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    is_active TINYINT(1) DEFAULT 1
);