scheduling_restrictions


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id VARCHAR 36 null
scheduling_restriction_conditions.scheduling_restriction_id fk_sched_restrict_cond_parent C
location_business_line_id VARCHAR 36 null
name VARCHAR 200 null
description TEXT 65535 √ null
restriction_type VARCHAR 20 null

FULL_DAY or PARTIAL_DAY

specific_date DATE 10 null
recurrence VARCHAR 20 NONE

NONE or YEARLY

allowed_start_time TIME 8 √ null

For PARTIAL_DAY only

allowed_end_time TIME 8 √ null

For PARTIAL_DAY only

severity VARCHAR 20 ERROR
custom_error_message VARCHAR 500 √ null
is_enabled BIT 1 1
created_at DATETIME 26 CURRENT_TIMESTAMP(6)
updated_at DATETIME 26 √ null
created_by VARCHAR 36 √ null
updated_by VARCHAR 36 √ null

Indexes

Constraint Name Type Sort Column(s)
PRIMARY Primary key Asc id
idx_sched_restrict_date Performance Asc specific_date
idx_sched_restrict_enabled Performance Asc is_enabled
idx_sched_restrict_location Performance Asc location_business_line_id
idx_sched_restrict_location_date Performance Asc/Asc location_business_line_id + specific_date
idx_sched_restrict_recurrence Performance Asc recurrence

Relationships