New to Django...I'm trying to create a project with the following structure:
CompanyName <--Project
ingredients < -- Application
CompanyName
supplier <-- Application
My issue is that my project is going to use a database/model like the following:
suppliers (table)
- name
- created_by (foreign_key, auth.User)
ingredients (table)
- name
- supplied_by (foreign_key, supplier.name)
My question is do I create all the tables in a single models.py or do I break up each table into each application's manage.py? If I use separate models.py, how do you create the suppliers table and then the ingredients table since the ingredients table has a foreign key to suppliers?