What I don't like is the entry that remains 0, but more importantly the previous entry is edited. I reckon I should change this in such a way I can create history. Maybe a new "history" table where transactions are marked. For example, a user pays its debt, and that history entry will reference the payment made by the creditor.
We need to analyze how the payments table work.
Lets say we create an expense with 2 users, when paid it full and the other has yet to pay 50%
```
expdbuser@127.0.0.1:expenses> select * from "expensesPayments" where "ExpID" = 673;
+-----------+-------+--------+--------+
| ExpPaymID | ExpID | UserID | Payed |
|-----------+-------+--------+--------|
| 1048 | 673 | 2 | 0.00 |
| 1049 | 673 | 1 | 140.00 |
+-----------+-------+--------+--------+
```
After paying:
```
expdbuser@127.0.0.1:expenses> select * from "expensesPayments" where "ExpID" = 673;
+-----------+-------+--------+-------+
| ExpPaymID | ExpID | UserID | Payed |
|-----------+-------+--------+-------|
| 1048 | 673 | 2 | 0.00 |
| 1050 | 673 | 2 | 70.00 |
| 1049 | 673 | 1 | 70.00 |
+-----------+-------+--------+-------+
```
What I don't like is the entry that remains 0, but more importantly the previous entry is edited. I reckon I should change this in such a way I can create history. Maybe a new "history" table where transactions are marked. For example, a user pays its debt, and that history entry will reference the payment made by the creditor.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
We need to analyze how the payments table work.
Lets say we create an expense with 2 users, when paid it full and the other has yet to pay 50%
After paying:
What I don't like is the entry that remains 0, but more importantly the previous entry is edited. I reckon I should change this in such a way I can create history. Maybe a new "history" table where transactions are marked. For example, a user pays its debt, and that history entry will reference the payment made by the creditor.