Question about structuring and saving data with CoreData

Hello everyone,

I'm writing this topic because I'm new to the world of Swift development. I've always done web, with Angular and now I'm learning SwiftUI and swift.

I am currently developing an application that manages lists and in these lists there are cards. The user can create lists and put cards in them. I save the structure of my maps thanks to Coredata (I created a .cdatamodeld file and I created my entities there). Everything works for the moment but I ask myself questions that stress me a lot. In fact I can not understand how to visualize the data: how to see the structure as a comic? How to modify the name of an attribute in the backup?

In fact, what I cannot understand is for the next versions that I will put in place. Basically we agree that I save for example the name of a list (liste->name) and what if I change the attribute name in the code to (liste->listeName), and what will it break everything? In fact, I'm so afraid of developing a version that brings new things because I'm afraid of destroying all the user data stored in their phone with CoreData.

How to do ? How to make sure that the data will not be lost? I'm really lost.

Could you guide me, or tell me if I am completely off the mark.

Sorry if this message is naive or silly, but I'm brand new and I can't find any information on this subject.

Thank you in advance for your messages,

Question about structuring and saving data with CoreData
 
 
Q