-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdata model
More file actions
54 lines (53 loc) · 1.02 KB
/
data model
File metadata and controls
54 lines (53 loc) · 1.02 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
{
"people": {
authUidString: {
"userName": String,
"email": String,
"todaysTokens": Number,
"items": [
Number [item number]: [
tokenAutoHash: Firebase.ServerValue.TIMESTAMP,
tokenAutoHash: Firebase.ServerValue.TIMESTAMP,
...
],
Number: [],
...
],
"online": {
deviceAutoHash: true,
...
},
"provider": String,
},
...
},
"activeItems": [
itemObject,
itemObject,
...
],
"pastItems": [
itemObject,
itemObject,
...
],
"tokens":
Number [item number]: [
tokenAutoHash: authUidString,
tokenAutoHash: authUidString,
...
],
Number: [],
...
]
}
itemObject = {
"itemNumber": Number,
"name": String,
"heroUrl": String [Example: "../images/Products/BMW/2015-BMW-F800R-New1.jpg"],
"logoUrl": String [Example: "../images/Products/BMW/BMW.svg"],
"siteUrl": String [Example: "http://www.bmwmotorcycles.com/us/en/index.html?..."],
"raffleStartTime": Firebase.ServerValue.TIMESTAMP,
"raffleEndTime": Firebase.ServerValue.TIMESTAMP,
"active": Boolean
}