indiehd / web-api

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

Add seed data for purchased songs #12

Open poppabear8883 opened 6 years ago

poppabear8883 commented 6 years ago

Need to add dummy data to the song_user pivot table. This data refers to the songs a user account has purchased.

This task should included:

cbj4074 commented 6 years ago

This will work for now, but longer-term, there is additional complexity here.

When a customer adds a song to his cart and purchases it during checkout, the Order is persisted to the database. The order details contain information about which songs the customer purchased and at what price. Capturing this information is necessary for sending the Order Confirmation email, displaying the customer's Order History, and determining how much the Artist is owed.

In other words, the relationship between a customer (User) and a Song exists through a series of other relationships that are more complex than they first appear.

We can flesh this out further once we have the Digital Catalog completely ironed-out.

poppabear8883 commented 5 years ago