Updated the domain model to use foreign key references to the `term_taxonomies` table instead of the `terms` table (needed inorder for references to taxonomies to actually be taxonomies).