removed Withdrawal entity
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
INSERT INTO User (id, name, username) VALUES (1, 'Adam', 'adam@mail.com'), (2, 'Betty', 'betty@mail.com'), (3, 'Curt', 'curt@mail.com');
|
||||
INSERT INTO Account (id, name, owner_id) VALUES (1, 'Gemeinschaftskonto', 1), (2, 'Konto Adam', 1);
|
||||
|
||||
INSERT INTO Withdrawal(id, account_id, amount, user_id, date) VALUES (1, 1, 20.00, 2, '2016-04-12 18:20:15');
|
||||
INSERT INTO Withdrawal(id, account_id, amount, user_id, date) VALUES (2, 1, 10.00, 1, '2016-04-14 10:03:00');
|
||||
|
||||
INSERT INTO Category (id, name, account_id, position) VALUES (1, 'Essen - Lebensmittel', 1, 2), (2, 'Einnahmen - Gehalt', 1, 1), (3, 'Essen - Arbeit', 1, 3), (4, 'Einnahmen - Gehalt', 2, 1), (5, 'Technik - Server und Hosting', 2, 2);
|
||||
INSERT INTO Category (id, name, account_id, position) VALUES
|
||||
(null, 'Essen - Lebensmittel', 1, 2),
|
||||
(null, 'Einnahmen - Gehalt', 1, 1),
|
||||
(null, 'Essen - Arbeit', 1, 3),
|
||||
(null, 'Private Entnahme', 1, 4),
|
||||
(null, 'Einnahmen - Gehalt', 2, 1),
|
||||
(null, 'Technik - Server und Hosting', 2, 2);
|
||||
|
||||
INSERT INTO Account_User (account_id, user_id) VALUES (1, 1), (1, 2), (1, 3), (2, 1);
|
||||
|
||||
@@ -13,16 +16,19 @@ INSERT INTO Transaction (id, amount, account_id, category_id, date, description,
|
||||
(NULL, -2.21, 1, 1, '2016-04-10', 'Brot', null),
|
||||
(NULL, -3.41, 1, 1, '2016-04-12', 'Gemüse', null),
|
||||
(NULL, -7.81, 1, 3, '2016-04-19', 'Kantine', null),
|
||||
(NULL, -4.81, 1, 3, '2016-04-18', 'Currywurst', 1),
|
||||
(NULL, -4.81, 1, 3, '2016-04-18', 'Currywurst (Auslage Adam)', 1),
|
||||
(NULL, -4.50, 1, 3, '2016-04-19', 'Currywurst', null),
|
||||
(NULL, -4.50, 1, 3, '2016-04-20', 'Currywurst', null),
|
||||
(NULL, -4.50, 2, 3, '2016-04-20', 'Currywurst', null),
|
||||
(NULL, -4.09, 1, 3, '2016-04-18', 'Currywurst-Frühstück', null),
|
||||
(NULL, -4.90, 1, 3, '2016-04-18', 'Currywurst (Auslage Betty)', 2),
|
||||
(NULL, -8.90, 1, 3, '2016-04-18', 'Curry beim Inder (Auslage Adam)', 1),
|
||||
(NULL, -12.00, 2, 3, '2016-04-18', 'Curry Thai', null),
|
||||
(NULL, 1340.22, 2, 4, '2016-04-02', 'Gehalt Adam', null),
|
||||
(NULL, -12.90, 2, 5, '2016-04-16', 'Host Europe', null);
|
||||
|
||||
(NULL, -20, 1, 4, '2016-04-12 18:20:15', 'Entnahme Betty', 2),
|
||||
(NULL, -10, 1, 4, '2016-04-14 10:03:00', 'Entnahme Adam', 1),
|
||||
|
||||
(NULL, 1340.22, 2, 5, '2016-04-02', 'Gehalt Adam', null),
|
||||
(NULL, -12.90, 2, 6, '2016-04-16', 'Host Europe', null);
|
||||
|
||||
|
||||
-- add as many transactions as needed
|
||||
@@ -56,4 +62,6 @@ INSERT INTO Transaction (id, amount, account_id, category_id, date, description,
|
||||
INSERT INTO Transaction (id, amount, account_id, category_id, date, description, creditor_id) VALUES (NULL, -1.50, 1, 3, '2016-04-01', 'Transaction28', null); Commit;
|
||||
INSERT INTO Transaction (id, amount, account_id, category_id, date, description, creditor_id) VALUES (NULL, -1.50, 1, 1, '2016-04-01', 'Transaction29', null); Commit;
|
||||
INSERT INTO Transaction (id, amount, account_id, category_id, date, description, creditor_id) VALUES (NULL, -1.50, 1, 3, '2016-04-01', 'Transaction30', null); Commit;
|
||||
INSERT INTO Transaction (id, amount, account_id, category_id, date, description, creditor_id) VALUES (NULL, 1.50, 1, 4, CURRENT_TIMESTAMP()+1, 'LAST Transaction', null); Commit;
|
||||
INSERT INTO Transaction (id, amount, account_id, category_id, date, description, creditor_id) VALUES (NULL, 1.50, 2, 5, CURRENT_TIMESTAMP()+1, 'LAST Transaction', null); Commit;
|
||||
|
||||
--SCRIPT TO 'h2export.sql';
|
||||
Reference in New Issue
Block a user