The Webserver-Backend for Agri-Gaia powered by FastAPI.
The backend server uses SQLAlchemy as ORM framework and PostgreSQL as the DBMS. Changes to the database schema are managed with alembic migrations.
The database migrations are applied automatically at the start of the backend server if the MIGRATE_DB
environment variable is set. If the data model is changed a migration file can be autogenerated with alembic revision --autogenerate -m "message"
.