-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdbschema.js
64 lines (64 loc) · 1.71 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: 'JkrwARQD4T04tc3YOn6c',
email: '[email protected]',
handle: 'user',
createdAt: 'June 17, 2020 at 12:00:00 AM UTC+5:30',
imageUrl: 'image/dsfsdkfghskdfgs/dgfdhfgdh',
bio: 'Hello, my name is user, nice to meet you',
website: 'https://user.com',
location: 'Bangalore, India'
}
],
screams: [
{
userHandle: 'user',
body: 'This is a sample scream',
createdAt: '2019-03-15T10:59:52.798Z',
likeCount: 5,
commentCount: 3
}
],
comments: [
{
userHandle: 'user',
screamId: '5choG4ecMuxKNW51U0hX',
body: 'nice one monk!',
createdAt: 'June 17, 2020 at 1:00:00 AM UTC+5:30'
}
],
notifications: [
{
recipient: 'user',
sender: 'john',
read: 'true | false',
screamId: '5choG4ecMuxKNW51U0hX',
type: 'like | comment',
createdAt: 'June 17, 2020 at 1:00:00 AM UTC+5:30'
}
]
};
const userDetails = {
// Redux data
credentials: {
userId: 'JkrwARQD4T04tc3YOn6c',
email: '[email protected]',
handle: 'user',
createdAt: 'June 17, 2020 at 1:00:00 AM UTC+5:30',
imageUrl: 'image/dsfsdkfghskdfgs/dgfdhfgdh',
bio: 'Hello, my name is user, nice to meet you',
website: 'https://user.com',
location: 'Bangalore, India'
},
likes: [
{
userHandle: 'user',
screamId: 'XDkXapWLpUPaV4aLhadP'
},
{
userHandle: 'user',
screamId: '5choG4ecMuxKNW51U0hX'
}
]
};