-- Add user profile context columns to contact_submissions
ALTER TABLE contact_submissions
  ADD COLUMN submitter_username text,
  ADD COLUMN submitter_reputation integer,
  ADD COLUMN submitter_profile_data jsonb;

COMMENT ON COLUMN contact_submissions.submitter_username IS 'Username snapshot at time of submission';
COMMENT ON COLUMN contact_submissions.submitter_reputation IS 'Reputation score snapshot at time of submission';
COMMENT ON COLUMN contact_submissions.submitter_profile_data IS 'Full profile snapshot (display_name, member_since, stats, avatar_url) at time of submission';