add primary support for one-to-many relationship