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