| id |
int(11)
|
|
|
|
| rule_name |
varchar(255)
|
utf8mb4_general_ci
|
|
|
| months_after |
tinyint(3)
|
|
|
|
| is_active |
tinyint(1)
|
|
|
|
| channels |
enum('email', 'telegram', 'both')
|
utf8mb4_general_ci
|
|
|
| telegram_bot_token |
varchar(500)
|
utf8mb4_general_ci
|
|
|
| telegram_chat_id |
varchar(255)
|
utf8mb4_general_ci
|
|
|
| email_recipients |
text
|
utf8mb4_general_ci
|
|
|
| frequency |
enum('daily', 'weekly', 'monthly')
|
utf8mb4_general_ci
|
|
|
| send_time |
time
|
|
|
|
| day_of_week |
tinyint(3)
|
|
|
|
| day_of_month |
tinyint(3)
|
|
|
|
| filter_doctor_id |
int(11)
|
|
|
|
| filter_service_ids |
text
|
utf8mb4_general_ci
|
|
|
| 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
|
|
|
|