Files
vuelato/supabase/migrations/00002_destination_images.sql
Alejandro Martinez b8906efc80
Some checks failed
ci / ci (22, ubuntu-latest) (push) Has been cancelled
Initial commit: Vuelato - buscador de vuelos
Nuxt 4 + Supabase + Flightics API. Incluye búsqueda de vuelos,
inspiraciones, watchlist, tracking de precios y mapa interactivo.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 23:37:06 +02:00

13 lines
398 B
SQL

-- Tabla cache para imagenes de destinos (Unsplash)
CREATE TABLE IF NOT EXISTS destination_images (
city_name TEXT PRIMARY KEY,
image_url TEXT NOT NULL,
thumb_url TEXT NOT NULL,
photographer TEXT NOT NULL,
photographer_url TEXT NOT NULL,
cached_at TIMESTAMPTZ DEFAULT now()
);
GRANT SELECT ON destination_images TO anon, authenticated;
GRANT ALL ON destination_images TO service_role;