case_staff_assignments


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id VARCHAR 36 null
location_business_line_id VARCHAR 36
case_id VARCHAR 36 null
cases.id case_staff_assignments_ibfk_1 C
user_id VARCHAR 36 null
role VARCHAR 50 null
start_date DATE 10 null
end_date DATE 10 √ null
is_primary BIT 1 √ 0
notes TEXT 65535 √ null
is_active BIT 1 √ 1
created_at TIMESTAMP 19 √ CURRENT_TIMESTAMP
updated_at TIMESTAMP 19 √ CURRENT_TIMESTAMP
created_by VARCHAR 36 √ null
updated_by VARCHAR 36 √ null

Indexes

Constraint Name Type Sort Column(s)
PRIMARY Primary key Asc id
idx_case_staff_location Performance Asc location_business_line_id
idx_staff_case Performance Asc case_id
idx_staff_role Performance Asc role
idx_staff_user Performance Asc user_id

Relationships