Fixed bug in schema where a foreign key was typed as a string instead of an integer