Added foreign keys at the end