Generate ERD diagram from schema at build time rather then dynamically to reduce dependency on mermaid js library in the frontend

This commit is contained in:
Peter Stockings
2026-01-29 13:20:45 +11:00
parent 509d11443d
commit 6fb9ba126f
10 changed files with 809 additions and 146 deletions

2
db.py
View File

@@ -10,6 +10,7 @@ from features.people_graphs import PeopleGraphs
from features.person_overview import PersonOverview
from features.stats import Stats
from features.dashboard import Dashboard
from features.schema import Schema
from utils import get_exercise_graph_model
@@ -20,6 +21,7 @@ class DataBase():
self.person_overview = PersonOverview(self.execute)
self.people_graphs = PeopleGraphs(self.execute)
self.dashboard = Dashboard(self.execute)
self.schema = Schema(self.execute)
db_url = urlparse(os.environ['DATABASE_URL'])
# if db_url is null then throw error