Checkpoint: Ajout de l'interface de configuration SMTP avec Resend : formulaire de configuration (API key, email expéditeur, nom), basculement simulation/production, test d'envoi immédiat, stockage sécurisé en base de données, et guide de configuration intégré

This commit is contained in:
Manus Sandbox
2025-11-18 02:00:48 -05:00
parent 20dc80cd74
commit 9d67724e83
11 changed files with 1298 additions and 13 deletions

View File

@@ -0,0 +1,13 @@
CREATE TABLE `emailConfig` (
`id` int AUTO_INCREMENT NOT NULL,
`provider` varchar(50) NOT NULL DEFAULT 'resend',
`apiKey` text,
`fromEmail` varchar(320) NOT NULL,
`fromName` varchar(255) NOT NULL DEFAULT 'Formation Manager Itinova',
`mode` enum('simulation','production') NOT NULL DEFAULT 'simulation',
`domainVerified` boolean NOT NULL DEFAULT false,
`active` boolean NOT NULL DEFAULT true,
`createdAt` timestamp NOT NULL DEFAULT (now()),
`updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,
CONSTRAINT `emailConfig_id` PRIMARY KEY(`id`)
);