api add foreign key