build foreign key