prisma migration + back auth/me/likes + front API add and get methods for liked song

This commit is contained in:
danis
2023-08-30 13:06:25 +02:00
parent a3676fabf8
commit c81f8df61c
9 changed files with 998 additions and 7339 deletions
@@ -0,0 +1,8 @@
/*
Warnings:
- Added the required column `likedSongs` to the `User` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "User" ADD COLUMN "likedSongs" JSONB NOT NULL DEFAULT '{}'::jsonb;
+1
View File
@@ -21,6 +21,7 @@ model User {
SongHistory SongHistory[]
searchHistory SearchHistory[]
settings UserSettings?
likedSongs Json?
}
model UserSettings {