Skip to content

Commit

Permalink
feat: add views to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
zaida04 committed Jun 4, 2022
1 parent a0e04ee commit b29e00f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ model Bio {
author User @relation(fields: [authorId], references: [id], name: "BioAuthor", onDelete: Cascade)
content String @db.Text
defaultOf User? @relation("DefaultBio")
views Int @default(0) @db.Integer
}

0 comments on commit b29e00f

Please sign in to comment.