Refined table definition so foreign key definitions are successfully added to linked tables.