-- Template provenance on the outbound command: which template (key/version/locale) produced this
-- send, plus a hash of the rendered content. The rendered content itself already lives in `payload`;
-- these columns answer "which template version produced this send?" for replay/audit. All nullable —
-- non-templated sends leave them null.
ALTER TABLE "IiosOutboundCommand"
  ADD COLUMN "templateKey"     TEXT,
  ADD COLUMN "templateVersion" INTEGER,
  ADD COLUMN "templateLocale"  TEXT,
  ADD COLUMN "renderedHash"    TEXT;
