address_time_windows


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id VARCHAR 36 null
address_id VARCHAR 36 null
addresses.id fk_address_time_windows_parent C
allowed_days_mask INT 10 √ null

Bitmask: Sun=1, Mon=2, Tue=4, Wed=8, Thu=16, Fri=32, Sat=64; NULL = every day

allowed_start_time TIME 8 √ null

NULL = no lower bound

allowed_end_time TIME 8 √ null

NULL = no upper bound

display_order INT 10 0
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_address_time_windows_parent Performance Asc address_id

Relationships