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

Interface ProductInput

src/models/product.model.ts:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5const nanoid = customAlphabet("abcdefghijklmnopqrstuvwxyz0123456789", 10);
6
7export interface ProductInput {
8 user: UserDocument["_id"];
9 title: string;
10 description: string;
11 price: number;
12 image: string;
13}
14
15export interface ProductDocument extends ProductInput, mongoose.Document {
16 createdAt: Date;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected