-
Notifications
You must be signed in to change notification settings - Fork 0
/
db.js
293 lines (290 loc) · 7.44 KB
/
db.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
const products = [
{
id: "53a0724c-a416-4cac-ae45-bfaedce1f147",
name: "Steel Pot",
description: "Silver steel pot that is perfect for cooking",
quantity: 230,
price: 42.44,
image: "img-1",
onSale: false,
categoryId: "c01b1ff4-f894-4ef2-b27a-22aacc2fca70",
},
{
id: "c2af9adc-d0b8-4d44-871f-cef66f86f7f6",
name: "Salad Bowl",
description: "Round wooden bowl perfect for tossing and making salads",
quantity: 33,
price: 53.5,
image: "img-2",
onSale: false,
categoryId: "c01b1ff4-f894-4ef2-b27a-22aacc2fca70",
},
{
id: "2c931e7e-510f-49e5-aed6-d6b44087e5a1",
name: "Spoon",
description: "Small and delicate spoon",
quantity: 4266,
price: 1.33,
image: "img-3",
onSale: true,
categoryId: "c01b1ff4-f894-4ef2-b27a-22aacc2fca70",
},
{
id: "404daf2a-9b97-4b99-b9af-614d07f818d7",
name: "Shovel",
description: "Grey rounded shovel for digging",
quantity: 753,
price: 332,
image: "img-4",
onSale: false,
categoryId: "34115aac-0ff5-4859-8f43-10e8db23602b",
},
{
id: "6379c436-9fad-4b3f-a427-2d7241f5c1b1",
name: "Fertilizer",
description: "Nitrogen based fertitlizer",
quantity: 53453,
price: 23.11,
image: "img-5",
onSale: true,
categoryId: "34115aac-0ff5-4859-8f43-10e8db23602b",
},
{
id: "f01bcdec-6783-464e-8f9e-8416830f7569",
name: "Basketball",
description: "Outdoor or indoor basketball",
quantity: 128,
price: 59.99,
image: "img-6",
onSale: true,
categoryId: "d914aec0-25b2-4103-9ed8-225d39018d1d",
},
{
id: "a4824a31-5c83-42af-8c1b-6e2461aae1ef",
name: "Golf Clubs",
description: "Good for golfing",
quantity: 3,
price: 427.44,
image: "img-7",
onSale: false,
categoryId: "d914aec0-25b2-4103-9ed8-225d39018d1d",
},
{
id: "b553085a-a7e0-4c9b-8a12-f971919c3683",
name: "Baseball Gloves",
description: "Professional catcher gloves",
quantity: 745,
price: 77.0,
image: "img-8",
onSale: true,
categoryId: "d914aec0-25b2-4103-9ed8-225d39018d1d",
},
{
id: "47bf3941-9c8b-42c0-9c72-7f3985492a5b",
name: "Soccer Ball",
description: "Round ball",
quantity: 734,
price: 93.44,
image: "img-9",
onSale: false,
categoryId: "d914aec0-25b2-4103-9ed8-225d39018d1d",
},
];
const categories = [
{
id: "c01b1ff4-f894-4ef2-b27a-22aacc2fca70",
name: "Kitchen",
},
{
id: "34115aac-0ff5-4859-8f43-10e8db23602b",
name: "Garden",
},
{
id: "d914aec0-25b2-4103-9ed8-225d39018d1d",
name: "Sports",
},
];
const reviews = [
{
id: "b22da5d4-6a4b-4db5-8ec3-acc228c36260",
date: "2021-01-01",
title: "This is bad",
comment: "when i bought this it broke the stove",
rating: 1,
productId: "53a0724c-a416-4cac-ae45-bfaedce1f147",
},
{
id: "78851fe8-a657-410f-9b0a-2bc952636e16",
date: "2021-04-23",
title: "This is good",
comment: "one of the most decent pots",
rating: 3,
productId: "53a0724c-a416-4cac-ae45-bfaedce1f147",
},
{
id: "463c0f40-86bc-4b8e-be47-e363111991d1",
date: "2020-04-23",
title: "is okay",
comment: "yes it is decent i guess",
rating: 2,
productId: "53a0724c-a416-4cac-ae45-bfaedce1f147",
},
{
id: "ebd207cd-f909-4bb1-8416-3e17a161b859",
date: "2020-07-23",
title: "terrible",
comment: "why is it so expensive",
rating: 1,
productId: "53a0724c-a416-4cac-ae45-bfaedce1f147",
},
{
id: "92450802-24ef-4907-9c70-b82697a96882",
date: "2021-01-01",
title: "best thing ever",
comment: "really good bowl",
rating: 5,
productId: "c2af9adc-d0b8-4d44-871f-cef66f86f7f6",
},
{
id: "f7ca2f8e-74ed-4323-9166-c8b606c2238e ",
date: "2021-04-23",
title: "SUPER HAPPY",
comment: "this is amazing, only 4 stars tho... :)",
rating: 4,
productId: "c2af9adc-d0b8-4d44-871f-cef66f86f7f6",
},
{
id: "908dbc7f-7782-43ae-9775-63bbd87db575",
date: "2020-04-23",
title: "life changing",
comment: "writing mock data is so boring...",
rating: 5,
productId: "c2af9adc-d0b8-4d44-871f-cef66f86f7f6",
},
{
id: "1852460f-b186-4a7a-a024-dccc0f72e052",
date: "2020-07-23",
title: "This is coooooool!",
comment: "I would totally recommend",
rating: 5,
productId: "c2af9adc-d0b8-4d44-871f-cef66f86f7f6",
},
{
id: "d075bdc8-df4b-4389-82ba-cb63726639ec",
date: "2020-07-23",
title: "idc",
comment: "It's a spoon...",
rating: 3,
productId: "2c931e7e-510f-49e5-aed6-d6b44087e5a1",
},
{
id: "1b2b32ba-acbd-4578-9455-30eb4c8f5c40",
date: "2020-07-23",
title: "terrible!!!!!!",
comment:
"Not good at all!! used it once and got caught 2 days later. now im doing life without parole",
rating: 1,
productId: "404daf2a-9b97-4b99-b9af-614d07f818d7",
},
{
id: "4480710a-e2b6-4dab-a227-43cb3ffca7b8",
date: "2020-07-23",
title: "great",
comment: "Great for planting",
rating: 5,
productId: "404daf2a-9b97-4b99-b9af-614d07f818d7",
},
{
id: "57825f8c-6c13-4ddb-a90e-0c2be283972c",
date: "2020-07-23",
title: "Made well",
comment: "Strong an firm",
rating: 5,
productId: "404daf2a-9b97-4b99-b9af-614d07f818d7",
},
{
id: "5b83af5b-e9fa-47e5-8ac8-faa7d420f2d5",
date: "2020-07-23",
title: "Plants grew well",
comment: "Oxygen and nitrogen rich!",
rating: 3,
productId: "6379c436-9fad-4b3f-a427-2d7241f5c1b1",
},
{
id: "29120a7e-5c75-4b83-9a21-aa064e2abf37",
date: "2020-07-23",
title: "I made the Nba",
comment: "My name is LeBron James",
rating: 5,
productId: "f01bcdec-6783-464e-8f9e-8416830f7569",
},
{
id: "48e297a2-4b6c-48a2-ab68-6fe6b40cb660",
date: "2020-07-23",
title: "I did not make the NBA",
comment: "My name is Laith Harb",
rating: 5,
productId: "f01bcdec-6783-464e-8f9e-8416830f7569",
},
{
id: "74bc2895-1ee7-4b97-8f4d-d5818fc95b09",
date: "2020-07-23",
title: "I love ball",
comment: "I play basketball with this basketball",
rating: 5,
productId: "f01bcdec-6783-464e-8f9e-8416830f7569",
},
{
id: "e44b08ac-7b03-488e-83d6-0a85f0f0cecc",
date: "2020-07-23",
title: "Gooooolf",
comment: "I need golfing tips",
rating: 5,
productId: "a4824a31-5c83-42af-8c1b-6e2461aae1ef",
},
{
id: "6ee01595-c3b8-42a9-b0e0-ce3cb2beb7d6",
date: "2020-07-23",
title: "meh",
comment: "I don't like it",
rating: 3,
productId: "a4824a31-5c83-42af-8c1b-6e2461aae1ef",
},
{
id: "4dfdbb84-67f1-48cc-8682-1456413225ad",
date: "2020-07-23",
title: "baseball...?",
comment: "I thought this was for football",
rating: 5,
productId: "b553085a-a7e0-4c9b-8a12-f971919c3683",
},
{
id: "574f1c51-2483-44a7-8476-888905e1a711",
date: "2020-07-23",
title: "soccer or football",
comment: "IT'S CALLED FOOTBALL",
rating: 2,
productId: "47bf3941-9c8b-42c0-9c72-7f3985492a5b",
},
{
id: "1e489691-6d19-4438-a6c5-90919eef070e",
date: "2020-07-23",
title: "too small",
comment: "ball is too same",
rating: 4,
productId: "47bf3941-9c8b-42c0-9c72-7f3985492a5b",
},
{
id: "6c8bc709-f675-472e-ae84-f8c7d73e99af",
date: "2020-07-23",
title: "got flat",
comment: "The ball got as flat as the earth. I want it round!!!!",
rating: 2,
productId: "47bf3941-9c8b-42c0-9c72-7f3985492a5b",
},
];
exports.db = {
products,
categories,
reviews,
};