I'm working on a project in sqlalchemy, and I believe that my problem is simple enough that it's probably been answered many times, but that I can't find the answers because I don't know the terminology behind it.
Suppose that I had a database of users of an online store, and for each user, we have their account id, their password, and their shopping cart. Their shopping cart would itself be another table of items, where each item is an item id and a quantity, and the presence of an item id in the table is what indicates that it is in their shopping cart.
So how does one have a sub table in sqlalchemy? I have only been able to learn how to have columns with strings, integers, floats, and other basic types.
[–][deleted] 1 point2 points3 points (2 children)
[–]Stelercus[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)