MCPcopy Index your code
hub / github.com/TomDoesTech/REST-API-Tutorial / PostDocument

Interface PostDocument

src/model/post.model.ts:5–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected