---
title: "💭 Creating One-To-Many Relationships in Flask-SQLAlchemy - YouTube"
description: "!https://www.youtube.com/watch?v=VVX7JIWx-ss"
date: 2024-03-06
published: true
tags:
  - sqlalchemy
  - thought
template: link
---


<div class="embed-card embed-card-external embed-card-provider-youtube">
  <div class="embed-card-rich">
<lite-youtube videoid="VVX7JIWx-ss" title="Creating One-To-Many Relationships in Flask-SQLAlchemy" playlabel="Play: Creating One-To-Many Relationships in Flask-SQLAlchemy"></lite-youtube>
  </div>
</div>


Great example from Anthony showing how easy it is to practice building database orm models and playing with them in a repl.  This is good practice even if you are in  a big code base to be able to test and learn in a simplified code base that does not have a mountain of other code around atuh, permissions, security, and other complex things that come into real production code bases that might make it hard to focus on what you are trying to do.

!!! Note
   Anthony uses backref here, thats legacy, use back_populates on both parent and child.

!!! note

    This post is a <a href="/thoughts/" class="wikilink" data-title="Thoughts" data-description="These are generally my thoughts on a web page or some sort of url, except a rare few don&#39;t have a link. These are dual published off of my..." data-date="2024-04-01">thought</a>. It's a short note that I make
    about someone else's content online <a href="/tags/thoughts/" class="hashtag-tag" data-tag="thoughts" data-count=2 data-reading-time=3 data-reading-time-text="3 minutes">#thoughts</a>
