-- CreateTable
CREATE TABLE `emailverificationotp` (
    `id` INTEGER NOT NULL AUTO_INCREMENT,
    `otpHash` VARCHAR(64) NOT NULL,
    `email` VARCHAR(191) NOT NULL,
    `expiresAt` DATETIME(3) NOT NULL,
    `isUsed` BOOLEAN NOT NULL DEFAULT false,
    `createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),

    UNIQUE INDEX `emailverificationotp_otpHash_key`(`otpHash`),
    INDEX `emailverificationotp_email_idx`(`email`),
    INDEX `emailverificationotp_expiresAt_idx`(`expiresAt`),
    PRIMARY KEY (`id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
