We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 864a9f9 commit 353be1fCopy full SHA for 353be1f
server/prisma/datamodel.prisma
@@ -1,14 +1,14 @@
1
type Link {
2
- id: ID! @unique
3
- createdAt: DateTime!
+ id: ID! @id
+ createdAt: DateTime! @createdAt
4
description: String!
5
url: String!
6
postedBy: User
7
votes: [Vote!]!
8
}
9
10
type User {
11
12
name: String!
13
email: String! @unique
14
password: String!
@@ -17,7 +17,7 @@ type User {
17
18
19
type Vote {
20
21
link: Link!
22
user: User!
23
-}
+}
0 commit comments