diff options
| author | eug-vs <eug-vs@keemail.me> | 2021-04-18 22:54:16 +0300 | 
|---|---|---|
| committer | eug-vs <eug-vs@keemail.me> | 2021-04-18 22:54:16 +0300 | 
| commit | c4459ed5fac54f390fd5387988556d279403d490 (patch) | |
| tree | e05d3cf9a28486e48884bd12f3c16183ff40ade3 /src/models/product | |
| parent | 1da159d1102bf0ded9ce50d447c821258c7be800 (diff) | |
| download | commercel-api-c4459ed5fac54f390fd5387988556d279403d490.tar.gz | |
feat: add group field to Product
Diffstat (limited to 'src/models/product')
| -rw-r--r-- | src/models/product/product.schema.ts | 2 | 
1 files changed, 2 insertions, 0 deletions
| 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 | 
