In our case, we will mainly need to store:
For the personal user’s task we will follow this structure:
/tasks (Collection) ← A collection of all tasks
├── taskId123 (Document) ← A specific task
│ ├── title: "Task title"
│ ├── description: "Task description"
│ ├── is_completed: false
│ ├── creation_date: 2025-03-31T11:43:12Z
│ ├── due_date: 2025-03-31T11:43:07Z
│ ├── user_id: "ELbBpGQh8KeLwTHEHapLllB9hjm1"
├── taskId345 (Document) ← Another task
...
/groups (Collection) ← A collection of all groups
├── groupId123 (Document) ← A specific task
│ ├── title: "Group title"
│ ├── description: "Group description"
│ ├── invite_code: "12345"
│ ├── creation_date: 2025-03-31T11:43:12Z
│ ├── participants: ["user1id", "user2id"]
│ ├── user_id: "ELbBpGQh8KeLwTHEHapLllB9hjm1"
├── groupId345 (Document) ← Another group
...