![Cannot pass "Each foreign key column should have the same name as the column it is referencing" in celestial bodies project - Backend Development - The freeCodeCamp Forum Cannot pass "Each foreign key column should have the same name as the column it is referencing" in celestial bodies project - Backend Development - The freeCodeCamp Forum](https://global.discourse-cdn.com/freecodecamp/optimized/4X/1/e/1/1e1eebeac914da351eb0ac05a7d7e70a8c769797_2_690x463.png)
Cannot pass "Each foreign key column should have the same name as the column it is referencing" in celestial bodies project - Backend Development - The freeCodeCamp Forum
![mysql - adding foreign key to a composite primary key using alter command is showing error 1215 - Stack Overflow mysql - adding foreign key to a composite primary key using alter command is showing error 1215 - Stack Overflow](https://i.stack.imgur.com/hZF9d.jpg)
mysql - adding foreign key to a composite primary key using alter command is showing error 1215 - Stack Overflow
![SQL SERVER - 2008 - Creating Primary Key, Foreign Key and Default Constraint - SQL Authority with Pinal Dave SQL SERVER - 2008 - Creating Primary Key, Foreign Key and Default Constraint - SQL Authority with Pinal Dave](https://blog.sqlauthority.com/i/b/5_AllQuery.gif)