From 28d7c46eec5431502517a87e90c31e76d07d605f Mon Sep 17 00:00:00 2001 From: hasslesstech Date: Mon, 19 May 2025 18:09:10 +0300 Subject: [PATCH] add table creation script --- backend/db/create.sql | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 backend/db/create.sql diff --git a/backend/db/create.sql b/backend/db/create.sql new file mode 100644 index 0000000..f8a9db0 --- /dev/null +++ b/backend/db/create.sql @@ -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 +);