ExitTrance / KanjiMaru

Flashcard and Kanji writing Flutter App. Stopped working on this Project. Currently just a graveyard.
42 stars 20 forks source link

Refactor Firestore structure #35

Open ExitTrance opened 3 years ago

ExitTrance commented 3 years ago

Current structure. Does not go well with any of the Firestore features such as simple queries. Redesigning and implementation is required. Diagram to follow. image

ExitTrance commented 3 years ago

An initial view of the DB with just data created during account creation. The documents refer to a specific User. The 'lists' collection for a specific user will contain a sub-collection of name userList (to be possibly changed), with each document representing an item in the user list. Each item in the user list will have a listName, sectionTitle, sectionNo, status, and Japanese specific item fields such as readings, meanings etc. With this, the refactor of Firestore is partially done. What is to follow is the modelling of this data in Flutter.

image

image

image

ExitTrance commented 3 years ago

^ Data created during account creation is done via Firebase Cloud functions (auth.user().onCreate())).