... | @@ -191,4 +191,100 @@ Documentação do Firestore(Banco de dados): https://firebase.google.com/docs/fi |
... | @@ -191,4 +191,100 @@ Documentação do Firestore(Banco de dados): https://firebase.google.com/docs/fi |
|
|
|
|
|
<br/>
|
|
<br/>
|
|
|
|
|
|
|
|
### Formato do banco de dados no Firebase
|
|
|
|
~~~
|
|
|
|
{
|
|
|
|
"eventLikes": {
|
|
|
|
"[eventLikeId]": {
|
|
|
|
"users": {
|
|
|
|
"[userId]": {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"feed": {
|
|
|
|
"[feedId]": {
|
|
|
|
"createdAt": {
|
|
|
|
"seconds": 0,
|
|
|
|
"nanoseconds": 0
|
|
|
|
},
|
|
|
|
"deleted": false,
|
|
|
|
"description": "",
|
|
|
|
"eventDate": {
|
|
|
|
"seconds": 0,
|
|
|
|
"nanoseconds": 0
|
|
|
|
},
|
|
|
|
"title": "",
|
|
|
|
"type": "event"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"logs": {
|
|
|
|
"[logId]": {
|
|
|
|
"action": "",
|
|
|
|
"creationDate": {
|
|
|
|
"seconds": 0,
|
|
|
|
"nanoseconds": 0
|
|
|
|
},
|
|
|
|
"deleted": false,
|
|
|
|
"user": null,
|
|
|
|
"where": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"postsUsers": {
|
|
|
|
"[userId]": {
|
|
|
|
"posts": {
|
|
|
|
"[postId]": {
|
|
|
|
"updatedAt": "timestamp",
|
|
|
|
"value": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"trainings": {
|
|
|
|
"[userId]": {
|
|
|
|
"months": {
|
|
|
|
"[monthId]": {
|
|
|
|
"fulfilled": false,
|
|
|
|
"index": 0,
|
|
|
|
"trainingItems": {
|
|
|
|
"[trainingItemId]": {
|
|
|
|
"completedAt": {
|
|
|
|
"seconds": 0,
|
|
|
|
"nanoseconds": 0
|
|
|
|
},
|
|
|
|
"createdAt": {
|
|
|
|
"seconds": 0,
|
|
|
|
"nanoseconds": 0
|
|
|
|
},
|
|
|
|
"description": "",
|
|
|
|
"meters": 0,
|
|
|
|
"order": 1,
|
|
|
|
"seconds": 0,
|
|
|
|
"week": 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"users": {
|
|
|
|
"[userId]": {
|
|
|
|
"amountOfTrainings": null,
|
|
|
|
"completedTrainings": [""],
|
|
|
|
"cpf": "",
|
|
|
|
"deleted": false,
|
|
|
|
"dob": {
|
|
|
|
"seconds": 0,
|
|
|
|
"nanoseconds": 0
|
|
|
|
},
|
|
|
|
"email": "",
|
|
|
|
"isAdmin": false,
|
|
|
|
"name": "",
|
|
|
|
"phone": ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
~~~
|
|
|
|
|
|
|
|
|