Add informations to the history
This commit is contained in:
@@ -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;
|
||||
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user