-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename collections and properties #3
Comments
From https://gitlab.com/snippets/1914000 Key points
Data formatOld format let layout = {
timebox:[
{ SIGNUP:{start:"startTime", end:"endTime"} }
],
participants:[
{user: "user0", uid:"0123"},
{user: "user1", uid:"1234"},
{user: "user2", uid:"2345"}
],
events:[
{
2019:[
{
participants:[
{user: "user1", uid:"1234"},
{user: "user2", uid:"2345"}
]
}
]
}
]
} New ideas let layout = {
// stores all participents over time
// holds all data related to that user
participants:[
{user: "user0", uid:"0123"},
{user: "user1", uid:"1234"},
{user: "user2", uid:"2345"},
{user: "user3", uid:"3456"}
],
events:[
{
2019:[
{
// store timebox in teh year collection, keeps teh data together
timebox: { SIGNUP:{start:"startTime", end:"endTime"} },
// store uid and who they are getting teh gift from
// oldFromUids is an array of people who failed to get stend a gift
participants:[
{ uid:"1234", fromUid:"2345", oldFromUids:[ "0123" ] },
{ uid:"2345", fromUid:"3456", oldFromUids:[] },
{ uid:"3456", fromUid:"1234", oldFromUids:[] }
]
}
]
}
]
} |
nightzirch
added a commit
that referenced
this issue
Dec 15, 2019
nightzirch
added a commit
that referenced
this issue
Dec 15, 2019
nightzirch
added a commit
that referenced
this issue
Dec 16, 2019
nightzirch
added a commit
that referenced
this issue
Dec 16, 2019
nightzirch
added a commit
that referenced
this issue
Dec 16, 2019
#3: Restructured the Gift document
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Firestore the following UML is almost correct:
There are a few name changes that needs to be done in the code.
Additionally, I think we should change the name of Participant to something else. User maybe? Same goes for Timebox. I suggest Stage.
The text was updated successfully, but these errors were encountered: