-- 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;
