There was an error while loading. Please reload this page.
1 parent cf7e449 commit 40c0ce0Copy full SHA for 40c0ce0
docs/quick-start/nestjs.mdx
@@ -69,8 +69,8 @@ model Post {
69
updatedAt DateTime @updatedAt()
70
title String
71
published Boolean @default(false)
72
- author User @relation(fields: [authorId], references: [id])
73
- authorId Int @default(auth().id)
+ author User? @relation(fields: [authorId], references: [id])
+ authorId Int?
74
}
75
```
76
0 commit comments