Closed Lei-Tin closed 1 year ago
My part of trying to get the Database functioning is pretty much done The remaining work to be done is just the refacotring of garbage code (Which I accidentally might have included too much :P)
The way I organized the database is as follows:
The red box is the table used to store all the user login information (Doesn't have nickname, email, etc., only username and password)
When setting up, we might have to call CREATE TABLE user (username TEXT, password TEXT)
The blue box highlights one of the temporary bill I have created for a specific user, which is called bill{#number}, the number can be decided by the userId.
Each bill can be created by calling DatabaseGateway.createBill(billId), which contains the columns shown in the green box in the picture above
Please leave any opinions here and I will modify correspondingly :3
Not complete yet, do not review
I will request for review once the feature is fully implemented.