CREATE TABLE IF NOT EXISTS mail_hotfolder_processed (
    tenant_slug   TEXT NOT NULL,
    mailbox_name  TEXT NOT NULL,
    content_hash  TEXT NOT NULL,
    filename      TEXT NOT NULL,
    processed_at  TIMESTAMPTZ NOT NULL DEFAULT now(),
    PRIMARY KEY (tenant_slug, mailbox_name, content_hash)
)
