Skip to content

public.match_series

Description

Columns

Name Type Default Nullable Children Parents Comment
id uuid false public.game Unique identifier for the match series(DC2Type:uuid)
court_id uuid false public.court Reference to the court used for the match series(DC2Type:uuid)
owner_id uuid false public.user Reference to the user who owns this match series(DC2Type:uuid)
created_at timestamp(0) with time zone false Timestamp when the match series was created(DC2Type:datetimetz_immutable)
status varchar(255) false Current status of the match series (DRAFT, ACTIVE, TERMINATED)
payment_plan varchar(255) false Payment plan type (PREPAID or FLEX)
match_duration_in_seconds integer false Duration of each match in seconds
type varchar(255) false Type of match series (SUMMER or WINTER)
weekday varchar(255) false Day of the week when matches occur (e.g., MONDAY, TUESDAY)
note varchar(255) NULL::character varying true Optional note or description for the match series
starts_at time(0) without time zone false Time when the matches start (in H:i format)(DC2Type:time_immutable)
discount_percentage integer false Discount percentage applied to the match series
club_id uuid false public.club Reference to the club where the match series takes place(DC2Type:uuid)
discount_id uuid true public.discount Unique identifier of the discount.(DC2Type:uuid)
activated_at timestamp(0) with time zone NULL::timestamp with time zone true Timestamp when the match series was activated(DC2Type:datetimetz_immutable)
terminated_at timestamp(0) with time zone NULL::timestamp with time zone true Timestamp when the match series was terminated(DC2Type:datetimetz_immutable)

Constraints

Name Type Definition
fk_9b7ff82c61190a32 FOREIGN KEY FOREIGN KEY (club_id) REFERENCES club(id)
fk_9b7ff82ce3184009 FOREIGN KEY FOREIGN KEY (court_id) REFERENCES court(id)
fk_9b7ff82c7e3c61f9 FOREIGN KEY FOREIGN KEY (owner_id) REFERENCES "user"(id)
fk_9b7ff82c4c7c611f FOREIGN KEY FOREIGN KEY (discount_id) REFERENCES discount(id)
match_series_pkey PRIMARY KEY PRIMARY KEY (id)

Indexes

Name Definition
match_series_pkey CREATE UNIQUE INDEX match_series_pkey ON public.match_series USING btree (id)
idx_9b7ff82ce3184009 CREATE INDEX idx_9b7ff82ce3184009 ON public.match_series USING btree (court_id)
idx_9b7ff82c7e3c61f9 CREATE INDEX idx_9b7ff82c7e3c61f9 ON public.match_series USING btree (owner_id)
idx_9b7ff82c61190a32 CREATE INDEX idx_9b7ff82c61190a32 ON public.match_series USING btree (club_id)
uniq_9b7ff82c4c7c611f CREATE UNIQUE INDEX uniq_9b7ff82c4c7c611f ON public.match_series USING btree (discount_id)

Relations

er


Generated by tbls