Nesting tables

Nest tables with SQLAlchemy.

Add a field to your existing table in the "Data" tab. Link it to an object of another table you have, or a list of those table objects!

# Get classes
Parent = context.classes.Parent
Child = context.classes.Child

session = context.session

# Create and add objects
parent_obj = Parent(name="the cool parent")
child_obj = Child(parent=parent_obj)

Learn more about nesting table objects.

Last updated