Skip to content

ga-curriculum/python-fastapi-sqlalchemy-relationships

Repository files navigation

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

References

📖 Reference Materials

Internal

Prerequisites

  • Python FastAPI MVC CRUD Build
  • Python FastAPI SQLAlchemy Models

Starter code

🟢 Starter code

Solution code

🏁 Solution code

Course landing pages

Resources

✏️ Instructor Guide

🎥 Video Hub

🏗️ Release Notes


Find a 👾 bug 👾 or have suggestions? Let us know!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors