import { Document, Model } from "mongoose"; import { IUser } from "../auth/user.interfaces"; import { tID } from "../globals"; import { ICategory } from "./category.interfaces"; import { ITag } from "../tags/tags.interfaces"; export interface IProduct extends Document { _id?: tID; id?: tID; user: tID | IUser; tags: tID[] | ITag[]; title: string; price: number; images: { src: string; _id?: tID; }[]; description: string; category?: tID | ICategory; countInStock: number; } export interface ProductModel extends Model { }