|
id
|
int(10) unsigned
|
|
|
|
|
company_id
|
int(10) unsigned
|
|
|
0
|
|
branch_id
|
int(10) unsigned
|
|
|
0
|
|
academic_year_id
|
int(10) unsigned
|
|
|
0
|
|
alert_type
|
enum
|
-- |
|
|
|
alert_title
|
varchar(220)
|
|
|
|
|
alert_message
|
text
|
|
|
|
|
reference_table
|
varchar(120)
|
|
|
|
|
reference_id
|
int(10) unsigned
|
|
|
0
|
|
class_id
|
int(10) unsigned
|
|
|
0
|
|
section_id
|
int(10) unsigned
|
|
|
0
|
|
subject_id
|
int(10) unsigned
|
|
|
0
|
|
teacher_id
|
int(10) unsigned
|
|
|
0
|
|
severity
|
enum
|
-- |
|
info
|
|
ai_generated
|
tinyint(1)
|
|
|
1
|
|
ai_recommendation
|
text
|
|
|
|
|
action_status
|
enum
|
-- |
|
open
|
|
action_taken_by
|
int(10) unsigned
|
|
|
0
|
|
action_taken_at
|
datetime
|
|
|
|
|
action_note
|
text
|
|
|
|
|
notify_principal
|
tinyint(1)
|
|
|
0
|
|
notify_hod
|
tinyint(1)
|
|
|
0
|
|
notify_teacher
|
tinyint(1)
|
|
|
0
|
|
notify_parent
|
tinyint(1)
|
|
|
0
|
|
notify_student
|
tinyint(1)
|
|
|
0
|
|
notification_status
|
enum
|
-- |
|
not_sent
|
|
delete_status
|
tinyint(1)
|
|
|
0
|
|
created_by
|
int(10) unsigned
|
|
|
0
|
|
updated_by
|
int(10) unsigned
|
|
|
0
|
|
created_at
|
datetime
|
|
|
current_timestamp()
|
|
updated_at
|
datetime
|
|
|
|