- Flask Framework Cookbook(Second Edition)
- Shalabh Aggarwal
- 64字
- 2021-06-24 13:58:05
Creating a relational category model
In our previous recipe, we created a simple product model, which had a couple of fields. In practice, however, the applications are much more complex and have various relationships among their tables. These relationships can be one-to-one, one-to-many, many-to-one, or many-to-many. In this recipe, we will try to understand some of these relationships with the help of an example.