Skip to content

Commit

Permalink
Update datamodel.prisma
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolasburk authored Apr 17, 2019
1 parent 864a9f9 commit 353be1f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/prisma/datamodel.prisma
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
type Link {
id: ID! @unique
createdAt: DateTime!
id: ID! @id
createdAt: DateTime! @createdAt
description: String!
url: String!
postedBy: User
votes: [Vote!]!
}

type User {
id: ID! @unique
id: ID! @id
name: String!
email: String! @unique
password: String!
Expand All @@ -17,7 +17,7 @@ type User {
}

type Vote {
id: ID! @unique
id: ID! @id
link: Link!
user: User!
}
}

0 comments on commit 353be1f

Please sign in to comment.