-- Add calendar_event_id column to consulting_sessions
-- This stores the Google Calendar event ID for later deletion

ALTER TABLE consulting_sessions
ADD COLUMN calendar_event_id TEXT;

-- Create index for faster lookups
CREATE INDEX idx_consulting_sessions_calendar_event
ON consulting_sessions(calendar_event_id);

-- Add comment
COMMENT ON COLUMN consulting_sessions.calendar_event_id IS 'Google Calendar event ID - used to delete events when sessions are cancelled/refunded';
