new-site/api/migrations/035_esign_columns.sql
justin f8cd37ac8c Initial commit — Performance West telecom compliance platform
Includes: API (Express/TypeScript), Astro site, Python workers,
document generators, FCC compliance tools, Canada CRTC formation,
Ansible infrastructure, and deployment scripts.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-27 06:54:22 -05:00

14 lines
743 B
SQL

-- 035: eSign columns for CRTC notification letter signing
--
-- esign_signed_at: timestamp when the client signed the letter
-- esign_signature_b64: base64-encoded PNG of the drawn signature
-- esign_signer_email: email address used to sign (from portal JWT)
-- crtc_letter_minio_key: MinIO object key for the generated CRTC letter PDF
-- (set by the pipeline at Step 6 so the sign page can
-- generate a presigned preview URL)
ALTER TABLE canada_crtc_orders
ADD COLUMN IF NOT EXISTS esign_signed_at TIMESTAMPTZ,
ADD COLUMN IF NOT EXISTS esign_signature_b64 TEXT,
ADD COLUMN IF NOT EXISTS esign_signer_email TEXT,
ADD COLUMN IF NOT EXISTS crtc_letter_minio_key TEXT;