Skip to content

Commit 89846e0

Browse files
authored
add opposite relation 'posts' (#530)
1 parent f5eecd9 commit 89846e0

File tree

1 file changed

+1
-0
lines changed
  • versioned_docs/version-3.x/modeling

1 file changed

+1
-0
lines changed

versioned_docs/version-3.x/modeling/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ model User {
2929
id Int @id @default(autoincrement())
3030
email String @unique
3131
name String
32+
posts Post[]
3233
}
3334
3435
model Post {

0 commit comments

Comments
 (0)