Awey
06/29/2021, 10:04 PMAwey
06/29/2021, 10:07 PMmodel User {
id ...
createdAt ...
updatedAt ...
username ...
email ...
password ...
karma Int @default(0) // count of the number of votes a users posts/comments have
posts Post[]
comments []
}
model Post {
id ...
createdAt ...
updatedAt ...
title ...
body ...
votes ???
}
model Comment {
id ...
createdAt ...
updatedAt ...
text ...
votes ???
}
Ryan
06/30/2021, 6:51 AM