indiehd / web-api

GNU Affero General Public License v3.0
6 stars 4 forks source link

Shopping Cart Shopping Cart - Model(s) and Seeder(s) #109

Closed cbj4074 closed 6 years ago

cbj4074 commented 6 years ago

This PR represents the bare-bones functionality required to implement the Shopping Cart feature.

The basic idea here is that there's a Cart model, and a Cart Item model, which is a Polymorphic model that resolves to an Album or a Song. Prices are set for both Albums and Songs, so it should be trivial to calculate the Cart total.

cbj4074 commented 6 years ago

I just realized that I added the scaffolded Repositories to this branch, but there's a separate Issue for those. Just noting it here.