Create concept of currency in the database #209

Merged
Vylpes merged 4 commits from feature/200-currency-db into develop 2024-04-26 18:35:03 +01:00
Owner

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

  • Create the concept of currency in the database

#200

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Please describe the tests that you ran to verify the changes. Provide instructions so we can reproduce. Please also list any relevant details to your test configuration.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that provde my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
# Description Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. - Create the concept of currency in the database #200 ## Type of change Please delete options that are not relevant. - [x] New feature (non-breaking change which adds functionality) # How Has This Been Tested? Please describe the tests that you ran to verify the changes. Provide instructions so we can reproduce. Please also list any relevant details to your test configuration. # Checklist - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that provde my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules
Vylpes added 3 commits 2024-04-16 19:08:20 +01:00
Fix linting issues
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
6c2233790e
Vylpes requested review from VylpesTester 2024-04-16 19:08:23 +01:00
Vylpes added the
type
story
label 2024-04-16 19:08:28 +01:00
VylpesTester was assigned by Vylpes 2024-04-16 19:08:32 +01:00
VylpesTester requested changes 2024-04-19 18:37:20 +01:00
Dismissed
@ -0,0 +7,4 @@
constructor(userId: string, currency: number) {
super();
this.UserId = userId;
Member

Would it be worth having this as the main primary key ID? I can't see that not being unique

Would it be worth having this as the main primary key ID? I can't see that not being unique
Vylpes marked this conversation as resolved
@ -0,0 +21,4 @@
this.Currency = currency;
}
public static async FetchOneByUserId(userId: string): Promise<User | null> {
Member

We won't need this function then (as per above comment)

We won't need this function then (as per above comment)
Vylpes marked this conversation as resolved
Vylpes added 1 commit 2024-04-25 17:33:20 +01:00
Update database to use id of User table as user id
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
d7412cb71a
VylpesTester approved these changes 2024-04-26 18:34:50 +01:00
VylpesTester added spent time 2024-04-26 18:34:55 +01:00
10 minutes
Vylpes merged commit 2bce901d63 into develop 2024-04-26 18:35:03 +01:00
Vylpes deleted branch feature/200-currency-db 2024-04-26 18:35:03 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Total time spent: 10 minutes
VylpesTester
10 minutes
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: External/card-drop#209
No description provided.