-- Tier 2 Block D — event branding.
--
-- Per-event customisation of the RSVP page and outbound emails. The
-- custom-domain sub-block was deferred to Tier 3 (the application surface
-- is small but ingress + automatic TLS provisioning isn't — see
-- TIER2_PLAN.md open question #1).

CREATE TABLE IF NOT EXISTS event_branding (
    event_id         UUID PRIMARY KEY REFERENCES events(id) ON DELETE CASCADE,
    primary_color    TEXT,
    accent_color     TEXT,
    logo_url         TEXT,
    cover_image_url  TEXT,
    font_family      TEXT,
    greeting_message TEXT,
    updated_at       TIMESTAMPTZ NOT NULL DEFAULT now()
);
