forked from SDC-Adrastea/Product-Overview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MongoSchema.js
48 lines (48 loc) · 816 Bytes
/
MongoSchema.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
var productSchema = {
id: Number,
name: String,
slogan: String,
description: String,
category: String,
default_price: Number,
related: [
{
id: Number,
current_product_id: Number,
related_product_id: Number
}
],
features: [
{
id: Number,
product_id: Number,
feature: String,
value: String
}
],
styles: [
{
id: Number,
productId: Number,
name: String,
sale_price: Number,
original_price: Number,
default_style: Number,
skuData : [
{
id: Number,
styleId: Number,
size: String,
quantity: Number
}
],
photos: [
{
id: Number,
url: String,
thumbnail_url: String
}
]
}
]
}