Add informations to the history

This commit is contained in:
2023-05-23 18:23:11 +09:00
parent 155e6f49af
commit b1d2027d4b
5 changed files with 20 additions and 1 deletions
@@ -0,0 +1,8 @@
/*
Warnings:
- Added the required column `info` to the `SongHistory` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "SongHistory" ADD COLUMN "info" JSONB NOT NULL;
+1
View File
@@ -67,6 +67,7 @@ model SongHistory {
user User @relation(fields: [userID], references: [id], onDelete: Cascade, onUpdate: Cascade)
userID Int
score Int
info Json
difficulties Json
playDate DateTime @default(now())
}