addresses


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id VARCHAR 36 null
address_time_windows.address_id fk_address_time_windows_parent C
client_addresses.address_id fk_client_addresses_address R
name VARCHAR 100 √ null
created_at TIMESTAMP 19 CURRENT_TIMESTAMP
created_by VARCHAR 255 √ null
updated_at TIMESTAMP 19 CURRENT_TIMESTAMP
updated_by VARCHAR 255 √ null
addressable_id VARCHAR 36 null
addressable_type VARCHAR 50 CLIENT
street1 VARCHAR 255 null
street2 VARCHAR 255 √ null
city VARCHAR 100 null
state VARCHAR 50 null
zip_code VARCHAR 20 null
country VARCHAR 100 √ United States
latitude DECIMAL 10,8 √ null
longitude DECIMAL 11,8 √ null
is_primary BIT 1 √ 0
is_active BIT 1 √ 1
place_of_service_id VARCHAR 36 √ null

Reference to PlaceOfService entity

place_of_service_secondary_description VARCHAR 255 √ null
location_business_line_id VARCHAR 36 √ null
allowed_start_time TIME 8 √ null
allowed_end_time TIME 8 √ null
allowed_days_mask INT 10 √ null
usps_verified BIT 1 √ null

Indexes

Constraint Name Type Sort Column(s)
PRIMARY Primary key Asc id
idx_address_pos Performance Asc place_of_service_id
idx_addresses_active Performance Asc is_active
idx_addresses_polymorphic Performance Asc/Asc addressable_type + addressable_id
idx_addresses_primary Performance Asc/Asc/Asc addressable_type + addressable_id + is_primary

Relationships