Skip to content

public.match_player

Description

Columns

Name Type Default Nullable Children Parents Comment
id uuid false public.cart public.player_equipment public.refund public.slot Unique identifier of the match player.(DC2Type:uuid)
user_id uuid false public.user User who is participating as this player.(DC2Type:uuid)
game_id uuid false public.game The match this player is participating in.(DC2Type:uuid)
slot integer false Slot index for the player position (0-3).
is_host boolean false false Whether this player is the host of the match.
terms_of_service_id uuid false public.terms_of_service Terms of service acceptance record for this player.(DC2Type:uuid)
joined_match_at timestamp(0) with time zone '2013-01-01 13:37:00+00'::timestamp with time zone false The date and time when the player joined the match.(DC2Type:datetimetz_immutable)
confirmed_match_at timestamp(0) with time zone NULL::timestamp with time zone true The date and time when the player confirmed their participation.(DC2Type:datetimetz_immutable)
left_match_at timestamp(0) with time zone NULL::timestamp with time zone true The date and time when the player left the match.(DC2Type:datetimetz_immutable)
status varchar(255) 'WAITING_FOR_PLAYER'::character varying false Current status of the player: WAITING_FOR_PLAYER, PLAYER_CONFIRMED, or PLAYER_LEFT.
discount_id uuid true public.discount Discount applied to this player's match fees.(DC2Type:uuid)
expected_payment_of_slots integer false Number of slots this player is expected to pay for when split payment is enabled.

Constraints

Name Type Definition
fk_39768364e48fd905 FOREIGN KEY FOREIGN KEY (game_id) REFERENCES game(id)
match_player_pkey PRIMARY KEY PRIMARY KEY (id)
fk_39768364a5debc29 FOREIGN KEY FOREIGN KEY (terms_of_service_id) REFERENCES terms_of_service(id)
fk_39768364a76ed395 FOREIGN KEY FOREIGN KEY (user_id) REFERENCES "user"(id)
fk_397683644c7c611f FOREIGN KEY FOREIGN KEY (discount_id) REFERENCES discount(id)

Indexes

Name Definition
match_player_pkey CREATE UNIQUE INDEX match_player_pkey ON public.match_player USING btree (id)
idx_39768364a76ed395 CREATE INDEX idx_39768364a76ed395 ON public.match_player USING btree (user_id)
idx_39768364e48fd905 CREATE INDEX idx_39768364e48fd905 ON public.match_player USING btree (game_id)
uniq_39768364a5debc29 CREATE UNIQUE INDEX uniq_39768364a5debc29 ON public.match_player USING btree (terms_of_service_id)
idx_397683644c7c611f CREATE INDEX idx_397683644c7c611f ON public.match_player USING btree (discount_id)

Relations

er


Generated by tbls