Open Sho372 opened 4 years ago
Modify the schema to fit the coredata.
Sho would u please implement Team and History as a core data object? The model structures are already committed, so we only need schemas and handlers.
I've implemented Team and History core data object. I merged it to dev. I don't think I understand how to use the core data properly, but it's working anyway.
Note:
Do not do this. Using foreign keys is something that you do in a database. CoreData is not a database.
https://stackoverflow.com/questions/40083934/coredata-swift-3-how-to-join-two-entities (Never mind this note.)
CoreData isn't a Database. It's an object persistence layer. There is no concept of primary keys or foreign keys in CoreData.
https://stackoverflow.com/questions/4075126/how-to-set-primary-key-and-foreign-key-in-core-data
Designing local database table schema