Skip to content

Commit 5bf1f56

Browse files
authored
Update/docs/data architecture (#424)
* Update: add database schema section in data-architecture.md * Update: change the database models image in data-architecture.md * refacto: move images in the doc into docs/ directory
1 parent dca61fc commit 5bf1f56

4 files changed

+5
-2
lines changed

database_models.jpg

-148 KB
Binary file not shown.

docs/data-architecture.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Database models
22

3-
![Database models](../database_models.jpg 'Database models')
3+
![Database models](database_models.jpg 'Database models')
44

55
**User**
66
Stores basic profile data for a user and relationships.
@@ -27,4 +27,7 @@ Stores data related to courses in Storyblok, copying the story id's. The `Sessio
2727
Stores relationship between a `User` and `Course` records, once a user has started a course. A users progress (`completed`) for the course is updated (`true`) when all related `SessionUser` records are `completed` for the related `Course`.
2828

2929
**SessionUser**
30-
Stores relationship between a `User` and `Session` records, once a user has started a session. A users session progress (`completed`) for the session is updated (true) when the `/complete` endpoint is called.
30+
Stores relationship between a `User` and `Session` records, once a user has started a session. A users session progress (`completed`) for the session is updated (true) when the `/complete` endpoint is called.
31+
32+
## Database Schema
33+
![Database schema](database_schema.png)

docs/database_models.jpg

80.8 KB
Loading

docs/database_schema.png

605 KB
Loading

0 commit comments

Comments
 (0)