Open ElisaKazan opened 2 weeks ago
Follow this tutorial https://www.hackingwithswift.com/books/ios-swiftui/one-to-many-relationships-with-core-data-swiftui-and-fetchrequest
Variation and Category are already used. Make sure to draw out the relationships
Separate
Product
intoProduct
andProductVariation
so that there is a one to many relationship.Example: "Milk" is a product and one variation could be Milk A from store X and another can be Milk A from store Y.