-- Meta's WhatsApp webhook verify token kept in the database (encrypted, AES-256-GCM) so it can be set in Settings instead of a server
-- environment variable. One row for the whole deployment (the webhook handshake carries no tenant). When nothing is saved here the
-- WHATSAPP_WEBHOOK_VERIFY_TOKEN environment value (default "change-me") still applies.
-- Idempotent: safe to re-run.
CREATE TABLE IF NOT EXISTS platform_whatsapp_webhook_settings (
    id                    TINYINT NOT NULL PRIMARY KEY,
    verify_token_encrypted TEXT NULL,
    verify_token_hint      VARCHAR(16) NULL,
    updated_at             DATETIME(6) NULL,
    updated_by             INT NULL
);
