-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update[DbWrapper]: change excpetion handling and implement logging
- Loading branch information
Lucy Ciara Herud-Thomassen
authored and
Lucy Ciara Herud-Thomassen
committed
Mar 15, 2026
1 parent
c0556a1
commit 24229ee
Showing
4 changed files
with
195 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,23 @@ | ||
| CREATE TABLE IF NOT EXISTS | ||
| users ( | ||
| user_id INT PRIMARY KEY, | ||
| role VARCHAR(32), | ||
| first_name VARCHAR(32), | ||
| last_name VARCHAR(32), | ||
| email VARCHAR(32), | ||
| password_hash VARCHAR(72) | ||
| role VARCHAR(32) NOT NULL, | ||
| first_name VARCHAR(32) NOT NULL, | ||
| last_name VARCHAR(32) NOT NULL, | ||
| email VARCHAR(32) NOT NULL, | ||
| password_hash VARCHAR(72) NOT NULL | ||
| ); | ||
|
|
||
| CREATE TABLE IF NOT EXISTS | ||
| donations ( | ||
| donation_id INT PRIMARY KEY, | ||
| user_id INT NOT NULL, | ||
| organization_id INT NOT NULL, | ||
| amount DECIMAL NOT NULL, | ||
| amount DECIMAL(32, 16) NOT NULL, | ||
| dating TIMESTAMP NOT NULL, | ||
| payment_method VARCHAR(32), | ||
| payment_method VARCHAR(32) NOT NULL, | ||
| CONSTRAINT fk_user | ||
| FOREIGN KEY (user_id) | ||
| REFERENCES users(user_id) | ||
| ); | ||
|
|
||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters