DanielPointon / TechThing

Random Group Project
0 stars 0 forks source link

Create a basic schema for storing trading data #3

Open DanielPointon opened 2 years ago

DanielPointon commented 2 years ago

We'll need to store data on stock prices and purchases over time in the database. This will require a database schema. I'm guessing:

Note duplication of data between user_purchases and user_portfolio_entries is to avoid recalculating a user's current portfolio based on their historical purchases every time they load the app. Can be thought of as a changelog.