| 1 | {{{#!sql |
| 2 | INSERT INTO USER (user_name, email, password) VALUES |
| 3 | ('John Doe', 'john@example.com', 'password123'), |
| 4 | ('Jane Smith', 'jane@example.com', 'securepass'), |
| 5 | ('Alice Johnson', 'alice@example.com', 'alicepwd'); |
| 6 | |
| 7 | INSERT INTO YEAR (year_name) VALUES |
| 8 | (2023), |
| 9 | (2024), |
| 10 | (2025); |
| 11 | |
| 12 | INSERT INTO MONTH (year_id, month_name) VALUES |
| 13 | (1, 'January'), |
| 14 | (1, 'February'), |
| 15 | (1, 'March'), |
| 16 | (2, 'January'), |
| 17 | (2, 'February'); |
| 18 | |
| 19 | INSERT INTO DAY (month_id, day_number, day_name) VALUES |
| 20 | (1, 1, 'Sunday'), |
| 21 | (1, 2, 'Monday'), |
| 22 | (1, 3, 'Tuesday'), |
| 23 | (2, 1, 'Wednesday'), |
| 24 | (2, 2, 'Thursday'); |
| 25 | |
| 26 | INSERT INTO TAG (tag_name) VALUES |
| 27 | ('Food'), |
| 28 | ('Work'), |
| 29 | ('Groceries'), |
| 30 | ('Entertainment'), |
| 31 | ('Bills'); |
| 32 | |
| 33 | INSERT INTO TRANSACTION_ACCOUNT (account_name, balance, user_id) VALUES |
| 34 | ('Cash', 5000.00, 1), |
| 35 | ('Bank Account', 20000.00, 1), |
| 36 | ('Credit Card', -1000.00, 2), |
| 37 | ('Savings', 15000.00, 2), |
| 38 | ('Foreign Currency', 300.00, 3); |
| 39 | |
| 40 | INSERT INTO TRANSACTION (transaction_name, amount, net_amount, day_id, tag_id) VALUES |
| 41 | ('Bought groceries', 1000.00, 800.00, 1, 1), |
| 42 | ('Paid rent', 15000.00, 15000.00, 2, 5), |
| 43 | ('Dinner with friends', 2500.00, 1500.00, 3, 2), |
| 44 | ('Movie tickets', 600.00, 600.00, 4, 4), |
| 45 | ('Electricity bill', 1200.00, 1200.00, 5, 5); |
| 46 | |
| 47 | INSERT INTO TRANSACTION_BREAKDOWN (transaction_id, transaction_account_id, spent_amount, earned_amount) VALUES |
| 48 | (1, 1, 1000.00, 200.00), -- Spent 1000 on Cash, earned back 200 |
| 49 | (1, 2, 0.00, 800.00), -- Earned back 800 on Bank Account |
| 50 | (2, 2, 15000.00, 0.00), -- Spent 15000 on Bank Account for rent |
| 51 | (3, 1, 2500.00, 1000.00), -- Spent 2500 on Cash, earned back 1000 |
| 52 | (4, 3, 600.00, 0.00); -- Spent 600 on Credit Card for movie |
| 53 | }}} |