16 lines
No EOL
375 B
SQL
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; |