-
Notifications
You must be signed in to change notification settings - Fork 0
/
dbschema.js
64 lines (64 loc) · 1.42 KB
/
dbschema.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
let db = {
users: [
{
userId: 'dh23ggj5h32g543j5gf43',
email: '[email protected]',
handle: 'user',
createdAt: '2019-03-15T10:59:52.798Z',
imageUrl: 'image/dsfsdkfghskdfgs/dgfdhfgdh',
bio: 'Hello, my name is user, nice to meet you',
website: 'https://user.com',
location: 'Lonodn, UK'
}
],
screams: [
{
userHandle: 'user',
body: 'This is a sample scream',
createdAt: '2019-03-15T10:59:52.798Z',
likeCount: 5,
commentCount: 3
}
],
comments: [
{
userHandle: 'user',
screamId: 'kdjsfgdksuufhgkdsufky',
body: 'nice one mate!',
createdAt: '2019-03-15T10:59:52.798Z'
}
],
notifications: [
{
recipient: 'user',
sender: 'john',
read: 'true | false',
screamId: 'kdjsfgdksuufhgkdsufky',
type: 'like | comment',
createdAt: '2019-03-15T10:59:52.798Z'
}
]
};
const userDetails = {
// Redux data
credentials: {
userId: 'N43KJ5H43KJHREW4J5H3JWMERHB',
email: '[email protected]',
handle: 'user',
createdAt: '2019-03-15T10:59:52.798Z',
imageUrl: 'image/dsfsdkfghskdfgs/dgfdhfgdh',
bio: 'Hello, my name is user, nice to meet you',
website: 'https://user.com',
location: 'Lonodn, UK'
},
likes: [
{
userHandle: 'user',
screamId: 'hh7O5oWfWucVzGbHH2pa'
},
{
userHandle: 'user',
screamId: '3IOnFoQexRcofs5OhBXO'
}
]
};