Added basic debt model.
Merge
Fix foreign keys.