Fixed primary keys that are also foreign keys not defining foreign key constraints when generating DDL