Relationships incorrect in export from ERD to SQL
I'm exporting an ERD to SQL Server. The diagram consists of one entity with relationships to three other tables. Looking at the generated SQL the foreign keys are set up incorrectly. A FK that references table A for example uses the column that is the foreign key to table B.
Am I doing something wrong? Any way to fix this other than manually edit the generated SQL each time I export?