feat: bunch of new stuff + proper dependency handling

This commit is contained in:
zkldi
2022-11-25 03:46:11 +00:00
parent cbce1a31f4
commit a6d89f748e
28 changed files with 567 additions and 232 deletions
-2
View File
@@ -19,7 +19,6 @@ type GoalSubscriptionDocument = MongoDBDocument & {
userID: integer;
game: Game;
playtype: Playtype;
timeSet: integer;
lastInteraction: integer | null;
progress: number | null;
progressHuman: string;
@@ -44,7 +43,6 @@ type GoalSubscriptionDocument = MongoDBDocument & {
| `userID` | This is the user this goal subscription belongs to. |
| `game`, `playtype` | These fields are both *technically* redundant. However, for optimisation reasons, they are copied over from the goal document field. |
| `achieved` | Whether this goal has been achieved or not. |
| `timeSet` | The time the user set this goal. |
| `timeAchieved` | The time this user achieved this goal. If the user has not achieved this goal, it is set as `null`. |
| `lastInteraction` | The last time this user did something that shifted their progress/outOf on this goal. This is initialised to null. |
| `progress` | The user's raw progress towards this goal. This is a number, and should not be displayed to the user. |