Add not null constraints to foreign keys