Skip to content

Commit

Permalink
added preference and generate migration
Browse files Browse the repository at this point in the history
  • Loading branch information
sangdth committed Sep 13, 2023
1 parent 715d4a6 commit 04ad8fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "User" ADD COLUMN "preferences" JSONB NOT NULL DEFAULT '{}';
1 change: 1 addition & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ model User {
password String
image String?
role UserRole @default(USER)
preferences Json @default("{}")
accounts Account[]
sessions Session[]
pages Page[]
Expand Down

0 comments on commit 04ad8fe

Please sign in to comment.