CREATE TABLE `importSettings` (
	`id` int AUTO_INCREMENT NOT NULL,
	`userId` int NOT NULL,
	`manualImportEnabled` int NOT NULL DEFAULT 1,
	`autoImportEnabled` int NOT NULL DEFAULT 0,
	`autoImportSourcePath` text,
	`autoImportFrequency` int NOT NULL DEFAULT 60,
	`emailImportEnabled` int NOT NULL DEFAULT 0,
	`emailImportAddress` varchar(320),
	`emailImportPassword` text,
	`emailImportHost` varchar(255),
	`emailImportPort` int DEFAULT 993,
	`emailImportFrequency` int NOT NULL DEFAULT 30,
	`createdAt` timestamp NOT NULL DEFAULT (now()),
	`updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,
	CONSTRAINT `importSettings_id` PRIMARY KEY(`id`),
	CONSTRAINT `importSettings_userId_unique` UNIQUE(`userId`)
);
