add table creation script

This commit is contained in:
ІО-23 Шмуляр Олег 2025-05-19 18:09:10 +03:00
parent 51c05e94ab
commit 28d7c46eec
1 changed files with 21 additions and 0 deletions

21
backend/db/create.sql Normal file
View File

@ -0,0 +1,21 @@
CREATE TABLE IF NOT EXISTS public.movie (
uuid text NOT NULL PRIMARY KEY,
name text,
scheduled_datetime timestamp without time zone,
movie_details text,
image_url text,
max_passes integer
);
CREATE TABLE IF NOT EXISTS public.pass (
uuid text NOT NULL,
movie_uuid text NOT NULL REFERENCES public.movie(uuid),
user_first text,
user_last text,
user_email text,
pass_type int,
pass_price int,
pass_requested_at timestamp without time zone,
payment_received boolean,
payment_received_at timestamp without time zone
);