Checkpoint: Ajout d'une interface d'administration complète pour personnaliser les templates d'emails avec prévisualisation en temps réel, stockage en base de données et intégration avec le service d'envoi

This commit is contained in:
Manus Sandbox
2025-11-17 17:11:27 -05:00
parent f06cd3e8a5
commit 20dc80cd74
14 changed files with 1480 additions and 40 deletions

View File

@@ -0,0 +1,16 @@
CREATE TABLE `emailTemplates` (
`id` int AUTO_INCREMENT NOT NULL,
`type` varchar(50) NOT NULL,
`name` varchar(255) NOT NULL,
`logoUrl` text,
`primaryColor` varchar(7) NOT NULL DEFAULT '#2563eb',
`headerBgColor` varchar(7) NOT NULL DEFAULT '#2563eb',
`headerTextColor` varchar(7) NOT NULL DEFAULT '#ffffff',
`headerTitle` varchar(255) NOT NULL DEFAULT 'Formation Manager Itinova',
`footerText` text,
`active` boolean NOT NULL DEFAULT true,
`createdAt` timestamp NOT NULL DEFAULT (now()),
`updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,
CONSTRAINT `emailTemplates_id` PRIMARY KEY(`id`),
CONSTRAINT `emailTemplates_type_unique` UNIQUE(`type`)
);