-- Add temporary location storage to park_submissions
-- This stores location data until approval, when it will be created in locations table

ALTER TABLE park_submissions 
ADD COLUMN temp_location_data JSONB;

COMMENT ON COLUMN park_submissions.temp_location_data IS 
'Temporary storage for location data before approval. Contains: name, city, state_province, country, latitude, longitude, timezone, postal_code, display_name';

-- Add index for querying submissions with temp location data
CREATE INDEX idx_park_submissions_temp_location ON park_submissions (submission_id) 
WHERE temp_location_data IS NOT NULL;