Python FastAPI SQLAlchemy Relationships
About
In this curriculum, you’ll extend your knowledge of SQLAlchemy. First by exploring relational data modeling, then you’ll define base and comment models, establishing relationships between these resources. Through model and seed module refactors, you’ll refine your database design and seed new data for your application.
Content
| Lesson | Est. Delivery Time | Skills |
|---|---|---|
| Setup | 5 min | Set up the development environment. |
| Concepts | 5 min | Understand and differentiate One-to-Many and Many-to-Many data relationships. |
| Defining a Base Model | 10 min | Create a reusable base model class for SQLAlchemy to centralize common attributes. |
| Defining a Comments Model | 10 min | Define a related SQLAlchemy model class to represent and manage comments data. |
| Update Model Data Relations | 10 min | Establish and manage relationships between SQLAlchemy models. |
| Update Seed Module | 15 min | Modify the seed module to populate the database with related data. |
| Total content | 55 min |