add foreign key
add unique constraint