Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB purchasing updates + CsssUser id security #18

Open
wants to merge 4 commits into
base: backend
Choose a base branch
from

Conversation

daniel-panhead
Copy link
Collaborator

@daniel-panhead daniel-panhead commented Mar 13, 2024

Added additional information to Transactions/TransactionItems for purchase flow
- transactions.payment_method - track how customers paid for their purchase
- transactions.cleared - store whether or not payment has actually been made, for potential incomplete cash/card purchases
- transactions.tax_rate - track the tax rate at time of purchase for historical
- transaction_item.item_price - track the item price at time of purchase for historical purposes
By storing item prices and tax rate, we can reconstruct the total price without worrying about how those might change in the future.

CsssUsers primary key is changed from int to UUID - since we are exposing a GET /users endpoint, we want to make it difficult for people to guess user ids - UUIDs will make it sufficiently difficult to guess, and ideally paired with authentication via session token or something, should provide enough security for user profiles

@daniel-panhead daniel-panhead marked this pull request as ready for review March 13, 2024 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant