Skip to content

Commit 353be1f

Browse files
authored
Update datamodel.prisma
1 parent 864a9f9 commit 353be1f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

server/prisma/datamodel.prisma

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
type Link {
2-
id: ID! @unique
3-
createdAt: DateTime!
2+
id: ID! @id
3+
createdAt: DateTime! @createdAt
44
description: String!
55
url: String!
66
postedBy: User
77
votes: [Vote!]!
88
}
99

1010
type User {
11-
id: ID! @unique
11+
id: ID! @id
1212
name: String!
1313
email: String! @unique
1414
password: String!
@@ -17,7 +17,7 @@ type User {
1717
}
1818

1919
type Vote {
20-
id: ID! @unique
20+
id: ID! @id
2121
link: Link!
2222
user: User!
23-
}
23+
}

0 commit comments

Comments
 (0)