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

Changed DB schema to store monetary values as cents and added Dinero to work with money in JS #13

Merged
merged 7 commits into from
Feb 8, 2024

Conversation

daniel-panhead
Copy link
Collaborator

Ultimately decided to convert DB schema to use cents for storing money as both Dinero.js and the Square API use cents to represent money.

DB types were moved into the db/ folder for more clarity. I also updated the Queryable update() and delete() functions to better signal when the operation had no effect (ex. on a nonexistant object).

Copy link
Collaborator

@ivan-fediaev ivan-fediaev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PatrickhySh
Copy link
Collaborator

LGTM. @daniel-panhead you can merge when you are ready

@daniel-panhead
Copy link
Collaborator Author

LGTM!

@daniel-panhead daniel-panhead merged commit fd1f4ea into main Feb 8, 2024
9 of 13 checks passed
@daniel-panhead daniel-panhead deleted the daniel/pg-setup branch February 8, 2024 05:25
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.

3 participants