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`)
);
