CREATE TABLE `userCharacterHistory` ( `id` text PRIMARY KEY NOT NULL, `userId` text, `characterId` text, `tryCount` integer NOT NULL, `createdAt` integer NOT NULL, FOREIGN KEY (`userId`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE no action, FOREIGN KEY (`characterId`) REFERENCES `character`(`id`) ON UPDATE no action ON DELETE no action );