Recoded the dbUser and its collection class. StoredPlayer and StoredPlayerCollection are also finished

This commit is contained in:
Daniel Ledda
2020-07-03 23:34:57 +02:00
parent 40a0d7289a
commit 0bddaa524b
12 changed files with 280 additions and 326 deletions

View File

@@ -1,6 +1,3 @@
- Make a whole new class for each model called "Player", "DbUser", etc. and wrap mongoose completely.
- Create a corresponding namespace "PlayerCollection", "DbUserCollection", etc. for the database model itself and its
corresponding methods.
- Decide on whether to always use the namespace to call methods and pass an id, with the returned objects "Player",
"DbUser", etc. all being immutable object copies with limited attributes and no methods, or actually create extra
classes that have methods that can be called (right now thinking the first idea is better).