I have many questions about how to make relationships N:M in CoreData.
If I have two entities A and B and have a relationship N:M in the entity relationship model has to generate a new table C that will contain the unique id of tables A and B.
Example for the entity relationship:

Now in the database model:

Considering the previous example as would be done by core data?

Or:

The truth is I'm really lost with that of relations in Core Data, any help will be welcome.
Sorry for my English but not very good.