14 lines
576 B
SQL
14 lines
576 B
SQL
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`)
|
|
);
|