ElisaKazan / grocery-tracker

A place to keep track of the prices of frequently purchased items in various stores.
3 stars 0 forks source link

Update Core Data models to use products and product variations #4

Open ElisaKazan opened 2 weeks ago

ElisaKazan commented 2 weeks ago

Separate Product into Product and ProductVariation 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.

ElisaKazan commented 1 week 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