From c4459ed5fac54f390fd5387988556d279403d490 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 18 Apr 2021 22:54:16 +0300 Subject: feat: add group field to Product --- src/models/product/product.schema.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/models/product') diff --git a/src/models/product/product.schema.ts b/src/models/product/product.schema.ts index 8f488f3..d44dcb7 100644 --- a/src/models/product/product.schema.ts +++ b/src/models/product/product.schema.ts @@ -3,6 +3,7 @@ import { Document, Schema, Types } from 'mongoose'; export interface ProductSchema extends Document { name: string; description: string; + group: string; price: number; quantity: number; specs: any; @@ -11,6 +12,7 @@ export interface ProductSchema extends Document { export const productSchema = new Schema({ name: String, description: String, + group: String, price: Number, quantity: Number, specs: Object -- cgit v1.2.3