Skip to content

public.club_event

Description

Columns

Name Type Default Nullable Children Parents Comment
id uuid false public.event_registration Unique identifier for the club event(DC2Type:uuid)
contentful_id varchar(64) false Unique identifier from Contentful CMS for content synchronization
is_active boolean false false Flag indicating whether the event is currently active and visible
club_id uuid false public.club Reference to the club hosting this event. Required for all events.(DC2Type:uuid)
template_id uuid false public.event_template Reference to the event template defining the event type and default content(DC2Type:uuid)
event_period_starts_at timestamp(0) with time zone false Start date and time of the time period.(DC2Type:datetimetz_immutable)
event_period_ends_at timestamp(0) with time zone false End date and time of the time period.(DC2Type:datetimetz_immutable)
event_period_duration_in_seconds integer false Duration in seconds between startsAt and endsAt.
price_per_person_amount bigint false
price_per_person_currency character(3) false (DC2Type:currency)
stripe_price_id varchar(64) NULL::character varying true Stripe price ID for payment processing integration
status varchar(255) 'OPEN_FOR_REGISTRATION'::character varying false Current status of the event (e.g., OPEN_FOR_REGISTRATION, CLOSED_FOR_REGISTRATION, CANCELLED)
max_confirmed_registrations integer 10 false Maximum number of confirmed registrations allowed for this event
registration_opens_at timestamp(0) with time zone NULL::timestamp with time zone true Timestamp when registration opens for this event. Null means registration is immediately open.(DC2Type:datetimetz_immutable)
description text true Custom description text for this specific event instance, overrides template description if set
persons_per_team integer 1 false Number of persons required per team for this event
type varchar(255) NULL::character varying false Type of event (e.g., REGULAR, TEAM)
is_registrations_hidden boolean false false Flag indicating whether the list of registrations should be hidden from participants
registration_closes_at timestamp(0) with time zone NULL::timestamp without time zone true Timestamp when registration closes for this event. Null means registration closes when event starts.(DC2Type:datetimetz_immutable)
free_cancellation_strategy varchar(255) 'UNTIL_24H_BEFORE_EVENT'::character varying false
updated_by_id uuid true public.user Reference to the user who last updated this event. Set to NULL if user is deleted.(DC2Type:uuid)
cancellation_reason varchar(255) NULL::character varying true Reason provided when the event is cancelled (e.g., EVENT_CANCELLATION_OTHER, weather, insufficient registrations)
updated_at timestamp(0) with time zone NULL::timestamp with time zone true Timestamp when the event was last updated(DC2Type:datetimetz_immutable)
sport_id uuid false public.sport Reference to the sport type for this event. Required for all events.(DC2Type:uuid)

Constraints

Name Type Definition
fk_9bc0201561190a32 FOREIGN KEY FOREIGN KEY (club_id) REFERENCES club(id)
fk_9bc02015896dbbde FOREIGN KEY FOREIGN KEY (updated_by_id) REFERENCES "user"(id) ON DELETE SET NULL
fk_9bc02015ac78bcf8 FOREIGN KEY FOREIGN KEY (sport_id) REFERENCES sport(id)
fk_9bc020155da0fb8 FOREIGN KEY FOREIGN KEY (template_id) REFERENCES event_template(id)
club_event_pkey PRIMARY KEY PRIMARY KEY (id)

Indexes

Name Definition
club_event_pkey CREATE UNIQUE INDEX club_event_pkey ON public.club_event USING btree (id)
uniq_9bc02015d756ce8c CREATE UNIQUE INDEX uniq_9bc02015d756ce8c ON public.club_event USING btree (contentful_id)
idx_9bc0201561190a32 CREATE INDEX idx_9bc0201561190a32 ON public.club_event USING btree (club_id)
idx_9bc020155da0fb8 CREATE INDEX idx_9bc020155da0fb8 ON public.club_event USING btree (template_id)
uniq_9bc020158b531bd4 CREATE UNIQUE INDEX uniq_9bc020158b531bd4 ON public.club_event USING btree (stripe_price_id)
idx_9bc02015896dbbde CREATE INDEX idx_9bc02015896dbbde ON public.club_event USING btree (updated_by_id)
idx_9bc02015ac78bcf8 CREATE INDEX idx_9bc02015ac78bcf8 ON public.club_event USING btree (sport_id)

Relations

er


Generated by tbls