sync-engine-shared - Let's just use the index. We don't have type or typePK until we get it from the server so we will get a unique constraint exception (repositoryId, syncAccountId, null, null) when created locally.