-- Support for client-provided Canadian registered office address (skip Anytime Mailbox)
ALTER TABLE canada_crtc_orders ADD COLUMN IF NOT EXISTS has_own_ca_address BOOLEAN DEFAULT FALSE;
ALTER TABLE canada_crtc_orders ADD COLUMN IF NOT EXISTS own_ca_street TEXT;
ALTER TABLE canada_crtc_orders ADD COLUMN IF NOT EXISTS own_ca_city TEXT;
ALTER TABLE canada_crtc_orders ADD COLUMN IF NOT EXISTS own_ca_province TEXT DEFAULT 'BC';
ALTER TABLE canada_crtc_orders ADD COLUMN IF NOT EXISTS own_ca_postal TEXT;

-- Payment reminder tracking (abandoned cart recovery)
ALTER TABLE canada_crtc_orders ADD COLUMN IF NOT EXISTS reminder_15m_sent_at TIMESTAMPTZ;
ALTER TABLE canada_crtc_orders ADD COLUMN IF NOT EXISTS reminder_1d_sent_at TIMESTAMPTZ;
ALTER TABLE canada_crtc_orders ADD COLUMN IF NOT EXISTS reminder_2d_sent_at TIMESTAMPTZ;

ALTER TABLE formation_orders ADD COLUMN IF NOT EXISTS reminder_15m_sent_at TIMESTAMPTZ;
ALTER TABLE formation_orders ADD COLUMN IF NOT EXISTS reminder_1d_sent_at TIMESTAMPTZ;
ALTER TABLE formation_orders ADD COLUMN IF NOT EXISTS reminder_2d_sent_at TIMESTAMPTZ;

ALTER TABLE bundle_orders ADD COLUMN IF NOT EXISTS reminder_15m_sent_at TIMESTAMPTZ;
ALTER TABLE bundle_orders ADD COLUMN IF NOT EXISTS reminder_1d_sent_at TIMESTAMPTZ;
ALTER TABLE bundle_orders ADD COLUMN IF NOT EXISTS reminder_2d_sent_at TIMESTAMPTZ;
