CREATE TABLE `emailActionTokens` (
	`id` int AUTO_INCREMENT NOT NULL,
	`token` varchar(64) NOT NULL,
	`requestId` int NOT NULL,
	`action` enum('validee','refusee') NOT NULL,
	`used` boolean NOT NULL DEFAULT false,
	`expiresAt` timestamp NOT NULL,
	`usedAt` timestamp,
	`usedBy` int,
	`createdAt` timestamp NOT NULL DEFAULT (now()),
	CONSTRAINT `emailActionTokens_id` PRIMARY KEY(`id`),
	CONSTRAINT `emailActionTokens_token_unique` UNIQUE(`token`)
);
