Skip to content

Commit

Permalink
Update prisma schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaid-maker authored Dec 13, 2023
1 parent 7e430b2 commit 1d87b54
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ yarn-debug.log*
yarn-error.log*

# local env files
.env*.local
.env

# vercel
.vercel
Expand Down
30 changes: 24 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"dependencies": {
"@clerk/nextjs": "^4.27.7",
"@clerk/themes": "^1.7.9",
"@prisma/client": "^5.7.0",
"@radix-ui/react-slot": "^1.0.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
Expand Down
11 changes: 11 additions & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,14 @@ datasource db {
url = env("DATABASE_URL")
directUrl = env("DIRECT_URL")
}

model User {
id String @id @default(uuid())
username String @unique
imageUrl String @db.Text
externalUserId String @unique
bio String? @db.Text
createAt DateTime @default(now())
updatedAt DateTime @updatedAt
}

0 comments on commit 1d87b54

Please sign in to comment.