notifications


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id VARCHAR 36 null
notification_source_id VARCHAR 36 null
notification_sources.id fk_notifications_source R
source_record_id VARCHAR 36 null
user_id VARCHAR 36 null
delivery_method_id VARCHAR 36 null
delivery_methods.id fk_notifications_delivery_method R
delivery_address VARCHAR 255 √ null
subject VARCHAR 200 null
message_body LONGTEXT 2147483647 null
status VARCHAR 30 null
require_acknowledgment BIT 1 0
acknowledged_on DATETIME 19 √ null
sent_on DATETIME 19 √ null
error_message VARCHAR 500 √ null
created_at TIMESTAMP 19 √ CURRENT_TIMESTAMP
updated_at TIMESTAMP 19 √ CURRENT_TIMESTAMP
created_by VARCHAR 100 √ null
updated_by VARCHAR 100 √ null

Indexes

Constraint Name Type Sort Column(s)
PRIMARY Primary key Asc id
fk_notifications_delivery_method Performance Asc delivery_method_id
idx_notifications_source_record Performance Asc/Asc notification_source_id + source_record_id
idx_notifications_status Performance Asc status
idx_notifications_user Performance Asc user_id

Relationships