Adopt SQLModel, create models, start using it (#559)

* 🔥 Remove old SQLAlchemy models

*  Add new SQLModel models

* 🔧 Update Alembic configs to work with SQLModel

*  Re-generate initial Alembic migration

* 🔧 Update PostgreSQL driver connection string URL

*  Create new SQLModel engine

* 🔥 Remove old unneeded SQLAlchemy-specific files

* ♻️ Update init_db

* ♻️ Use new SQLModel session

* ♻️ Update conftest with new DB Session

* ♻️ Update pre-start scripts to use SQLModel session

* ♻️ Import new SQLModel models

*  Create new simplified create_user crud util

* ♻️ Update import in CRUDBase class (soon to be removed)

* 🙈 Update .gitignore with Python files
This commit is contained in:
Sebastián Ramírez
2023-11-25 00:08:22 +01:00
committed by GitHub
parent 2d92cd70a4
commit a66a9256dd
26 changed files with 193 additions and 163 deletions
+1
View File
@@ -1,2 +1,3 @@
__pycache__
app.egg-info
*.pyc