summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-04-18 22:54:16 +0300
committereug-vs <eug-vs@keemail.me>2021-04-18 22:54:16 +0300
commitc4459ed5fac54f390fd5387988556d279403d490 (patch)
treee05d3cf9a28486e48884bd12f3c16183ff40ade3
parent1da159d1102bf0ded9ce50d447c821258c7be800 (diff)
downloadcommercel-api-c4459ed5fac54f390fd5387988556d279403d490.tar.gz
feat: add group field to Product
-rw-r--r--src/models/product/product.schema.ts2
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