Can a private database entity have a relationship to a public database entity?

I’m using NSPersistentCloudKitContainer and I’m utilising the public database and also the user’s private database.

For example I have an entity called Category which has a many-to-many relationship to an entity called NewsArticle. So the NewsArticles exist in the public database for the user to browse, but he can add them to a category which will live in his private database. So that’s my question, is it possible for an entity which exists a in the private database to have a relationship to another entity in a public database?

I am having same questions in my mind also Peter. I was thinking that Swift Data would also support Public Data. I have not found any resources which support this is possible. I do not have experience with NSPersistentCloudKitContainer. Does this work for you to mix private and public data ?

Can a private database entity have a relationship to a public database entity?
 
 
Q