Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Data Model

Five Grant edited this page Oct 17, 2022 · 1 revision

Editing the data model

Whenever the data model is edited, the API will refuse to start until the version in the source has been set to the new version (variable can be found in src/main.py). Additionally, the corresponding Pydantic and SQLAlchemy code will throw an error because they are outdated, so the user will have to run the model-build generate ./askem.dbml ./src/generated function.

The flow expects that the user will never change the generated file so these files' contents are hashed and checked every time the program runs to ensure the content is identical to when it was first generated.

Clone this wiki locally