feat: add userCharacterHistory table schema and update journal with new version

This commit is contained in:
2026-03-02 20:42:44 +01:00
parent 949d9596a6
commit 1ba853771e
4 changed files with 1192 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
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
);