-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdbschema.js
65 lines (64 loc) · 1.6 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
65
let db = {
users: [
{
userId: 'lO8a6I7Y799999Zrlsjh1gHxJXw1',
email: '[email protected]',
userHandle: 'user',
bio: 'Yo I am user and it\'s frigging awesome here',
imageUrl: 'image/dsdedeferfrf',
website: 'https://user.com',
location: 'Nairoi, Kenya',
createdAt: '2019-11-03T01:31:30.778Z',
}
],
buzzes: [
{
userHandle: 'user',
body: 'Scream body',
createdAt: '2019-11-04T01:31:30.778Z',
likeCount: 5,
commentCount: 2
}
],
comments: [
{
userHandle: 'user',
buzzId: '3e3rfjrkrof',
body: 'Great one ombre!',
createdAt: '2019-11-04T01:31:30.778Z'
}
],
notifications: [
{
recipient: 'user',
sender: 'john',
read:'true | false',
buzzId: 'sdeder4r4r4e',
type: 'like | comment',
createdAt: '2019-11-04T01:31:30.778Z'
}
]
};
const userDetails = {
//redux data
credentials: {
userId: 'wedfrnfrufnrfjr',
email: '[email protected]',
handle: 'user',
createdAt: '2019-11-04T01:31:30.778Z',
imageUrl: 'image/dedefrefrfrf',
bio: 'Hello, I am the user',
website: 'https://leo.com',
location: 'Nairobi, KE'
},
likes: [
{
userHandle: 'user',
buzzId: 'deferfrefwrfre'
},
{
userHandle: 'user',
buzzId: '223re4r4ffvfd'
}
]
}