-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdatabase.js
More file actions
76 lines (73 loc) · 1.37 KB
/
database.js
File metadata and controls
76 lines (73 loc) · 1.37 KB
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
const moment = require("moment");
exports.username = [
{ usernameId: 1, name: "Satoshi Nakamoto" },
{ usernameId: 2, name: "Vitalik Buterin" }
];
exports.performance = [
{
performanceId: 1,
usernameId: 1,
date: moment()
.subtract(1, "days")
.format("DD/MM/YYYY"),
performance: Math.random()
},
{
performanceId: 2,
usernameId: 1,
date: moment()
.subtract(2, "days")
.format("DD/MM/YYYY"),
performance: Math.random()
},
{
performanceId: 3,
usernameId: 1,
date: moment()
.subtract(3, "days")
.format("DD/MM/YYYY"),
performance: Math.random()
},
{
performanceId: 4,
usernameId: 1,
date: moment()
.subtract(4, "days")
.format("DD/MM/YYYY"),
performance: Math.random()
},
{
performanceId: 5,
usernameId: 1,
date: moment()
.subtract(5, "days")
.format("DD/MM/YYYY"),
performance: Math.random()
}
];
exports.portfolio = [
{
portfolioId: 1,
usernameId: 1,
coin: 'Bitcoin',
amount: 1
},
{
portfolioId: 2,
usernameId: 1,
coin: 'Ethereum',
amount: 1.5
},
{
portfolioId: 3,
usernameId: 1,
coin: 'Dogecoin',
amount: 0.5
},
{
portfolioId: 4,
usernameId: 1,
coin: 'Decred',
amount: 2
}
];