diff --git a/prisma/migrations/20230912215814_add_preferences/migration.sql b/prisma/migrations/20230912215814_add_preferences/migration.sql new file mode 100644 index 00000000..64e35289 --- /dev/null +++ b/prisma/migrations/20230912215814_add_preferences/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "User" ADD COLUMN "preferences" JSONB NOT NULL DEFAULT '{}'; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 4f71580c..9db07fb0 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -57,6 +57,7 @@ model User { password String image String? role UserRole @default(USER) + preferences Json @default("{}") accounts Account[] sessions Session[] pages Page[]