I killed 500k braincells trying to figure this one out, so I did it by hand.
First, I created the MySQL tables manually.
then I created empty definition files.
I then edited the db_nav.html template in the admin template folder and added the tables.
Taking turns with each table, I re-synced the tables, updating the definition files.
Then I manually edited the definition files to add the foreign key references.
Sacrifice is not about what you lose,
it is about what you gain in the process.
First, I created the MySQL tables manually.
then I created empty definition files.
I then edited the db_nav.html template in the admin template folder and added the tables.
Taking turns with each table, I re-synced the tables, updating the definition files.
Then I manually edited the definition files to add the foreign key references.
Sacrifice is not about what you lose,
it is about what you gain in the process.