CREATE TABLE `freeproSettings` (
	`id` int AUTO_INCREMENT NOT NULL,
	`userId` int NOT NULL,
	`portalUrl` varchar(255) NOT NULL DEFAULT 'https://pro.free.fr',
	`loginEmail` varchar(320),
	`loginPassword` text,
	`frequency` enum('manual','daily','weekly','monthly') NOT NULL DEFAULT 'manual',
	`maxAnteriority` int,
	`autoEnabled` int NOT NULL DEFAULT 0,
	`lastSuccessAt` timestamp,
	`lastStatus` text,
	`lastImportCount` int DEFAULT 0,
	`createdAt` timestamp NOT NULL DEFAULT (now()),
	`updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,
	CONSTRAINT `freeproSettings_id` PRIMARY KEY(`id`),
	CONSTRAINT `freeproSettings_userId_unique` UNIQUE(`userId`)
);
