In the previous article, we connected our FastAPI application to a database using SQLite and SQLAlchemy.

We also used classes like:



class StudentCreate(BaseModel):
name: str
department: str
cgpa: float





without fully understanding what was happening behind the scenes.

Today, we'll fix that.



If you haven't read it...