-- Migration: 030_AddPostedAtColumn
-- Description: Add posted_at column to journal_entry_draft_read_models
-- for audit trail compliance (exact timestamp when draft was posted to ledger)

ALTER TABLE journal_entry_draft_read_models
ADD COLUMN IF NOT EXISTS posted_at TIMESTAMPTZ;

COMMENT ON COLUMN journal_entry_draft_read_models.posted_at IS
'Exact timestamp when the journal entry draft was posted to the ledger';
