-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
68 lines (65 loc) · 1.92 KB
/
index.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
'use strict'
// a volatile database
const db = {
users: {
1: { name: 'Alice', country: 'it' },
2: { name: 'Bob', country: 'us' },
3: { name: 'Charlie', country: 'fr' },
4: { name: 'Duana', country: 'au' },
5: { name: 'Eve', country: 'uk' },
6: { name: 'Frank', country: 'es' },
7: { name: 'Grace', country: 'de' },
8: { name: 'Heidi', country: 'ch' },
9: { name: 'Irene', country: 'ar' }
},
groups: {
10: { name: 'Gamers', users: [1, 2, 3] },
11: { name: 'Guitar Players', users: [4, 5, 6] },
12: { name: 'Snowboarders', users: [7, 8, 9] },
13: { name: 'Divers', users: [3, 6, 9] },
14: { name: 'Surfers', users: [2, 4, 6] },
15: { name: 'Bikers', users: [1, 3, 5] },
16: { name: 'Basketball Players', users: [4, 7, 8] }
},
countries: {
it: { name: 'Italy' },
us: { name: 'United States' },
fr: { name: 'France' },
de: { name: 'Germany' },
es: { name: 'Spain' },
uk: { name: 'United Kingdom' },
ch: { name: 'Switzerland' },
au: { name: 'Australia' },
nz: { name: 'New Zealand' },
ca: { name: 'Canada' },
jp: { name: 'Japan' },
cn: { name: 'China' },
br: { name: 'Brazil' },
mx: { name: 'Mexico' },
ar: { name: 'Argentina' },
cl: { name: 'Chile' },
ru: { name: 'Russia' },
in: { name: 'India' },
kr: { name: 'South Korea' },
th: { name: 'Thailand' },
sa: { name: 'South Africa' },
eg: { name: 'Egypt' },
gr: { name: 'Greece' },
pt: { name: 'Portugal' },
pl: { name: 'Poland' },
ro: { name: 'Romania' },
tr: { name: 'Turkey' },
dk: { name: 'Denmark' },
fi: { name: 'Finland' },
no: { name: 'Norway' },
se: { name: 'Sweden' },
ie: { name: 'Ireland' },
is: { name: 'Iceland' },
at: { name: 'Austria' },
be: { name: 'Belgium' },
bg: { name: 'Bulgaria' },
hr: { name: 'Croatia' },
cz: { name: 'Czech Republic' }
}
}
module.exports = db