allow defining custom primary key in relations