-- CreateTable
CREATE TABLE IF NOT EXISTS `ViolationRecord` (
    `id` VARCHAR(191) NOT NULL,
    `userId` VARCHAR(191) NOT NULL,
    `contentType` VARCHAR(32) NOT NULL,
    `content` VARCHAR(1000) NOT NULL,
    `riskLevel` VARCHAR(16) NOT NULL,
    `penalty` VARCHAR(32) NOT NULL DEFAULT 'none',
    `appliedBy` VARCHAR(100) NULL,
    `appliedAt` DATETIME(3) NULL,
    `createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),

    INDEX `ViolationRecord_userId_idx`(`userId`),
    INDEX `ViolationRecord_createdAt_idx`(`createdAt`),
    PRIMARY KEY (`id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
