Configuring primary keys for collections