Categories can now be retired

This commit is contained in:
2016-07-31 01:01:08 +02:00
parent 85655497cf
commit 12668eea9f
3 changed files with 27 additions and 8 deletions
+9 -8
View File
@@ -1,14 +1,15 @@
INSERT INTO User (id, name, username) VALUES (1, 'Adam', 'adam'), (2, 'Betty', 'betty'), (3, 'Curt', 'curt');
INSERT INTO Account (id, name, owner_id) VALUES (1, 'Gemeinschaftskonto', 1), (2, 'Konto Adam', 1);
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, 'Wohnen - Haushalt', 1, 4),
(null, 'Private Entnahme', 1, 5),
(null, 'Einnahmen - Gehalt', 2, 1),
(null, 'Technik - Server und Hosting', 2, 2);
INSERT INTO Category (id, name, account_id, position, retired) VALUES
(null, 'Essen - Lebensmittel', 1, 2, false),
(null, 'Einnahmen - Gehalt', 1, 1, false),
(null, 'Essen - Arbeit', 1, 3, false),
(null, 'Sonstiges - Projekt 1000', 1, 4, true),
(null, 'Wohnen - Haushalt', 1, 4, false),
(null, 'Private Entnahme', 1, 5, false),
(null, 'Einnahmen - Gehalt', 2, 1, false),
(null, 'Technik - Server und Hosting', 2, 2, false);
INSERT INTO Account_User (account_id, user_id) VALUES (1, 1), (1, 2), (1, 3), (2, 1);