forked from fightcovid19-orbital/JustClean-Firebase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dbschema.js
72 lines (71 loc) · 1.87 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
66
67
68
69
70
71
72
// sample data
let db = {
customer: [
{
userId: 'dh23ggj5h32g543j5gf43',
email: '[email protected]',
handle: 'user',
createdAt: '2019-03-15T10:59:52.798Z',
imageUrl: 'image/dsfsdkfghskdfgs/dgfdhfgdh',
type: "customer",
//extra details
bio: 'Hello, my name is user, nice to meet you',
location: 'London, UK'
}
],
cleaners: [
{
cleanerId: '123',
cleanerName: 'cleaner1',
createdAt: '2019-03-15T10:59:52.798Z',
email: '[email protected]',
likeCount: 5,
unlikeCount: 2,
hiredCount: 2,
imageUrl: 'image/dsfsdkfghskdfgs/dgfdhfgdh',
type: "cleaner",
//extra details
bio: "hello",
location: "London"
}
],
comments: [
{
userHandle: 'user',
commentOn: 'kdjsfgdksuufhgkdsufky',
body: 'nice one mate!',
createdAt: '2019-03-15T10:59:52.798Z',
userImage: 'image/dsfsdkfghskdfgs/dgfdhfgdh',
replyCount: 0
}
],
likes: [
{
userHandle: 'user',
cleanerName: 'kdjsfgdksuufhgkdsufky',
}
],
comments: [
{
userHandle: 'user',
body: 'nice one mate!',
createdAt: '2019-03-15T10:59:52.798Z',
userImage: 'image/dsfsdkfghskdfgs/dgfdhfgdh',
commentId: 'kdjsfgdksuufhgkdsufky'
}
],
history: [
{
customerName: "customer",
clenerName: "cleaner",
createdAt: '2019-03-15T10:59:52.798Z'
}
],
reservation: [
{
customerName: "customer",
clenerName: "cleaner",
createdAt: '2019-03-15T10:59:52.798Z'
}
]
}