blob: 8f488f3b3125a7ddd2ef691da5ccf930ee5ef0aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { Document, Schema, Types } from 'mongoose';
export interface ProductSchema extends Document {
name: string;
description: string;
price: number;
quantity: number;
specs: any;
}
export const productSchema = new Schema({
name: String,
description: String,
price: Number,
quantity: Number,
specs: Object
}, { timestamps: true });
|