Adds schema service-whatsapp (wa_conversation, wa_message, wa_read, wa_template), modules BO_WHATSAPP and BO_WHATSAPP_ADMIN, the rollback, and the local seed mirror. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
10 lines
759 B
SQL
10 lines
759 B
SQL
-- Co-Lite change add-whatsapp-inbox: the WhatsApp inbox and WhatsApp admin back-office modules (area BO).
|
|
-- Target: `service-system`.`module`. Additive only. Run once, after the release package.
|
|
-- No role grant: super admins see every module; they grant BO_WHATSAPP and BO_WHATSAPP_ADMIN to other roles under Roles.
|
|
-- BO_WHATSAPP_ADMIN has no url and no icon (like BO_EVENT_GUESTS), so it stays out of the sidebar and only gates actions.
|
|
USE `service-system`;
|
|
|
|
INSERT INTO `module` (`id`, `name`, `desc`, `area`, `type`, `parent`, `url`, `icon_name`) VALUES
|
|
(41200000, 'BO_WHATSAPP', 'WhatsApp', 'BO', 'M', 40000000, '/whatsapp', 'MessageCircle'),
|
|
(41300000, 'BO_WHATSAPP_ADMIN', 'WhatsApp admin', 'BO', 'M', 40000000, NULL, NULL);
|