trepa/migrations/20240703103105_movies.up.sql
2025-02-20 12:09:38 +00:00

16 lines
No EOL
375 B
SQL

-- Add migration script here
CREATE TABLE IF NOT EXISTS public.movies
(
id integer NOT NULL GENERATED ALWAYS AS IDENTITY,
title text NOT NULL,
overview text NOT NULL,
poster_path text NOT NULL,
backdrop_path text,
release_date date NOT NULL,
tmdb_id integer NOT NULL,
PRIMARY KEY (id)
);
ALTER TABLE IF EXISTS public.movies
OWNER to dev;