Debugging multiple foreign keys in table creation