Skip to content

Commit

Permalink
adding standart photo
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusSanchez committed Feb 3, 2024
1 parent 0fa3632 commit dc0c8af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
Warnings:
- Made the column `avatar_url` on table `User` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE "User" ALTER COLUMN "avatar_url" SET NOT NULL,
ALTER COLUMN "avatar_url" SET DEFAULT 'https://orangeapp-contents-prod.s3.amazonaws.com/avatar1.png';
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ model User {
surname String?
email String @unique
password_hash String
avatar_url String?
avatar_url String @default("https://orangeapp-contents-prod.s3.amazonaws.com/avatar1.png")
is_google Boolean @default(false)
created_at DateTime @default(now())
updated_at DateTime @updatedAt
Expand Down

0 comments on commit dc0c8af

Please sign in to comment.