-- ============================================================================ -- MIGRATION : Ajout de la colonne informations (JSONB) dans la table gares -- Date : 2026-03-01 -- Description : Stocke toutes les informations enrichies d'une gare : -- adresse, horaires, accessibilité, services, voiture, vélo, -- et lignes de transports en commun (bus, métro, tramway, car régional). -- -- ⚠️ À EXÉCUTER dans l'éditeur SQL Supabase : -- https://supabase.com/dashboard → votre projet → SQL Editor -- ============================================================================ ALTER TABLE public.gares ADD COLUMN IF NOT EXISTS informations JSONB DEFAULT '{}'::jsonb; COMMENT ON COLUMN public.gares.informations IS 'Informations enrichies de la gare au format JSON. Structure : { -- Informations Générales "adresse": "20 Bd Diderot, 75012 Paris", "horaires_guichet": "6h00 - 21h30", "horaires_gare": "5h00 - 00h30", "distributeur_ter": true, -- Accessibilité "service_assistance": true, -- Services "espace_attente": true, "distributeur_tgv": false, "objets_trouves": true, "toilettes": true, "wifi_gratuit": true, "photomaton": false, "defibrillateur": true, "galeries_marchandes": false, -- Voiture "depose_minute": true, "espace_taxis": true, "espace_vtc": false, "location_voiture": false, "parking": true, -- Vélo "velo_libre_service": true, "parking_velos": true, -- Transports en commun enrichis "lignes_bus": [{"nom": "29", "terminus_a": "Gare Saint-Lazare", "terminus_b": "Montempoivre"}], "lignes_metro": [{"nom": "1", "terminus_a": "La Défense", "terminus_b": "Château de Vincennes"}], "lignes_tramway": [], "lignes_car_regional": [] }';