add table creation script
This commit is contained in:
parent
51c05e94ab
commit
28d7c46eec
|
@ -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
|
||||||
|
);
|
Loading…
Reference in New Issue