Repository navigation
Expand file tree
/
Copy pathfirebase-blueprint.json
More file actions
59 lines (59 loc) · 1.93 KB
/
Copy pathfirebase-blueprint.json
File metadata and controls
59 lines (59 loc) · 1.93 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
55
56
57
58
59
{
"entities": {
"Fighter": {
"title": "Fighter",
"description": "User profile for the Ubunk app.",
"type": "object",
"properties": {
"uid": { "type": "string" },
"username": { "type": "string" },
"photoURL": { "type": "string" },
"reputationPoints": { "type": "integer" },
"weightClass": { "type": "string" },
"record": {
"type": "object",
"properties": {
"wins": { "type": "integer" },
"losses": { "type": "integer" },
"draws": { "type": "integer" }
}
},
"streak": { "type": "integer" },
"lastActive": { "type": "string", "format": "date-time" }
},
"required": ["uid", "username", "reputationPoints", "weightClass", "record", "streak", "lastActive"]
},
"Fight": {
"title": "Fight",
"description": "A myth debunking session.",
"type": "object",
"properties": {
"userId": { "type": "string" },
"username": { "type": "string" },
"mythContent": { "type": "string" },
"verdict": { "type": "string" },
"category": { "type": "string" },
"officialName": { "type": "string" },
"taleOfTheTape": {
"type": "array",
"items": { "type": "string" }
},
"knockoutPunch": { "type": "string" },
"reliabilityScore": { "type": "integer" },
"cheers": { "type": "integer" },
"timestamp": { "type": "string", "format": "date-time" }
},
"required": ["userId", "username", "mythContent", "verdict", "category", "officialName", "taleOfTheTape", "knockoutPunch", "reliabilityScore", "cheers", "timestamp"]
}
},
"firestore": {
"/fighters/{uid}": {
"schema": "Fighter",
"description": "Collection of user profiles."
},
"/fights/{fightId}": {
"schema": "Fight",
"description": "Live feed of all debunked myths."
}
}
}