| 3 | import { UserDocument } from "./user.model"; |
| 4 | |
| 5 | export interface PostDocument extends mongoose.Document { |
| 6 | user: UserDocument["_id"]; |
| 7 | title: string; |
| 8 | body: string; |
| 9 | createdAt: Date; |
| 10 | updatedAt: Date; |
| 11 | } |
| 12 | |
| 13 | const PostSchema = new mongoose.Schema( |
| 14 | { |
nothing calls this directly
no outgoing calls
no test coverage detected