Skip to content

public.opening_time

Description

Columns

Name Type Default Nullable Children Parents Comment
id uuid false Unique identifier for the opening time entry(DC2Type:uuid)
club_id uuid false public.club Reference to the club this opening time belongs to(DC2Type:uuid)
index integer true Day index for weekday entries (0-6, where 0=Monday), null for holidays
name varchar(255) false Display name for the opening time (e.g., "Monday", "Christmas Day")
opens_at varchar(255) false Opening time in HH:MM format (24-hour clock)
closes_at varchar(255) false Closing time in HH:MM format (24-hour clock, 00:00 means next day midnight)
opened_hours numeric(4,2) false Total hours the club is open during this time period (calculated value)
type varchar(255) NULL::character varying false Type of opening time entry: WEEKDAY for regular weekly schedule or HOLIDAY for special dates
is_opened boolean true Flag indicating whether the club is currently open during this time slot

Constraints

Name Type Definition
fk_89115e6e61190a32 FOREIGN KEY FOREIGN KEY (club_id) REFERENCES club(id)
opening_time_pkey PRIMARY KEY PRIMARY KEY (id)

Indexes

Name Definition
opening_time_pkey CREATE UNIQUE INDEX opening_time_pkey ON public.opening_time USING btree (id)
idx_89115e6e61190a32 CREATE INDEX idx_89115e6e61190a32 ON public.opening_time USING btree (club_id)
uniq_89115e6e807367018cde572961190a32 CREATE UNIQUE INDEX uniq_89115e6e807367018cde572961190a32 ON public.opening_time USING btree (index, type, club_id)

Relations

er


Generated by tbls