
id : int(11)
|

rule_name : varchar(255)
|

months_after : tinyint(3) unsigned
|

is_active : tinyint(1)
|

channels : enum('email','telegram','both')
|

telegram_bot_token : varchar(500)
|

telegram_chat_id : varchar(255)
|

email_recipients : text
|

frequency : enum('daily','weekly','monthly')
|

send_time : time
|

day_of_week : tinyint(3) unsigned
|

day_of_month : tinyint(3) unsigned
|

filter_doctor_id : int(11)
|

filter_service_ids : text
|

include_patient_phone : tinyint(1)
|

include_patient_email : tinyint(1)
|

include_treatment_notes : tinyint(1)
|

include_treatment_amount : tinyint(1)
|

last_run_at : datetime
|

created_at : timestamp
|

updated_at : timestamp
|