add primary key for relationships