CREATE TABLE `whatsapp_templates` ( `id` int(11) NOT NULL AUTO_INCREMENT, `template_name` varchar(255) NOT NULL, `template_body_en` text DEFAULT NULL, `template_body_ar` text DEFAULT NULL, `variables` varchar(255) DEFAULT NULL, `status` tinyint(1) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `template_name` (`template_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; INSERT INTO `whatsapp_templates` (`template_name`, `template_body_en`, `template_body_ar`, `variables`) VALUES ('donation_thank_you', 'Dear {donor_name}, Thank you for your generous donation of OMR {amount} to "{case_title}". Your support makes a real difference! ❤️ {org_name} Team', 'عزيزي {donor_name}، نشكرك على تبرعك السخي بمبلغ {amount} ريال عماني لـ "{case_title}". دعمك يصنع فرقًا حقيقيًا! ❤️ فريق {org_name}', '{donor_name}, {amount}, {case_title}, {org_name}'), ('donation_gift_notification', 'Hello {recipient_name}! ✨ {donor_name} has made a donation to "{case_title}" in your name as a special gift.{gift_message} May this kindness bring joy to your day! ❤️ {org_name} Team', 'أهلاً {recipient_name}! ✨ لقد قدم {donor_name} تبرعًا لـ "{case_title}" باسمك كهدية خاصة.{gift_message} نرجو أن يجلب هذا اللطف الفرح ليومك! ❤️ فريق {org_name}', '{recipient_name}, {donor_name}, {case_title}, {gift_message}, {org_name}'), ('case_donation_notification', 'Hello! A donation of OMR {amount} was just made for "{case_title}" by {donor_name}. Thank you for your efforts in managing this case. {org_name} Team', 'أهلاً! تم تقديم تبرع بمبلغ {amount} ريال عماني لـ "{case_title}" من قبل {donor_name}. نشكرك على جهودك في إدارة هذه الحالة. فريق {org_name}', '{amount}, {case_title}, {donor_name}, {org_name}');