By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
version() |
---|
8.0.30 |
Records: 3 Duplicates: 0 Warnings: 0
Records: 5 Duplicates: 0 Warnings: 0
Records: 5 Duplicates: 0 Warnings: 0
id | balance | |
---|---|---|
1 | email1@app.com | 15.50 |
2 | email2@app.com | 10.00 |
3 | email3@app.com | 70.00 |
id | uid | amount | fees |
---|---|---|---|
1 | 1 | 15.50 | 0.50 |
2 | 2 | 10.00 | 0.50 |
3 | 2 | 15.00 | 0.50 |
4 | 3 | 12.50 | 0.50 |
5 | 1 | 5.50 | 0.50 |
id | uid | charge |
---|---|---|
1 | 1 | 15.50 |
2 | 2 | 10.50 |
3 | 2 | 15.00 |
4 | 3 | 12.50 |
5 | 1 | 5.50 |
user_id | balance | total_deposits | spent | |
---|---|---|---|---|
1 | email1@app.com | 15.50 | 20.00 | 21.00 |
2 | email2@app.com | 10.00 | 24.00 | 25.50 |
3 | email3@app.com | 70.00 | 12.00 | 12.50 |
user_id | balance | total_deposits | spent | |
---|---|---|---|---|
1 | email1@app.com | 15.50 | 20.00 | 21.00 |
2 | email2@app.com | 10.00 | 24.00 | 25.50 |
3 | email3@app.com | 70.00 | 12.00 | 12.50 |