Commit Graph

50 Commits

Author SHA1 Message Date
dbe140ecaf Set CASCADE delete for ItemPrice from Item deletion 2024-11-20 18:17:45 +02:00
b5747c9d9d Add Price field for Item 2024-11-20 18:17:21 +02:00
bd2005bf5d Add PaymentGroup to intf.go in db package 2024-11-20 18:17:03 +02:00
8855cc3e54 Add db seeding with default metrics for users 2024-11-19 10:13:02 +02:00
06b317511d Add Metric entity to database schema 2024-11-19 10:12:28 +02:00
602b3da13b Add implementation for db.UserIdentifiable for Income 2024-11-18 19:38:23 +02:00
b9cfa2004a Fix issue with updating expense value for the same card 2024-11-18 19:07:11 +02:00
3b3a8b13d6 Add implementation for db.UserIdentifiable for Item 2024-11-18 09:51:46 +02:00
66f83cf3aa Add implementation of db.UserIdentifiable for db.Transfer and add db hooks 2024-11-16 20:31:18 +02:00
7b461ce985 Fix expense error in AfterDelete hook 2024-11-16 20:30:47 +02:00
893f2aa365 Add Expense entity to database 2024-11-16 11:42:28 +02:00
22007ef38e Add SelfReferencing check in Category database BeforeSave hook 2024-11-11 22:26:47 +02:00
8a7d52efda Fix Parent finding issue with BeforeSave hook and duplicate finding error for category 2024-11-11 22:26:21 +02:00
ad25c69c79 Redirect db log into db.log file 2024-11-08 17:05:23 +02:00
e9ad95821e Add db.Session type 2024-11-06 19:47:12 +02:00
7f4067ce31 Add implemetation for db.UserIdentifiable interface for Debt entity 2024-11-02 00:05:28 +02:00
45123613fd Add User binding to paymets 2024-11-01 22:54:29 +02:00
2eb7ccdaf4 Remove IsValid and add ValidTo field for ItemPrice entity 2024-11-01 22:54:11 +02:00
6c70cc1881 Rename Name for Payment to Title 2024-11-01 09:30:51 +02:00
e2d3d636cb Add TotalCost MetricValue MetricType and Type relationship to ItemBought 2024-11-01 09:30:34 +02:00
48f7b8258e Add Item-Type relationship 2024-11-01 09:30:01 +02:00
02a33aaced Move Comment in Item above Metric fields 2024-11-01 09:29:48 +02:00
de7926337a Change db.Card.Value to db.Card.Balance and types.DbCard.Value to types.DbCard.Balance 2024-11-01 09:26:37 +02:00
faa2bf7a9e Add implementation for db.UserIdentifiable for Category 2024-10-31 23:05:38 +02:00
6b339e7496 Rephrase ERROR_CATEGORY_PARENT_NOT_FOUND error in db package 2024-10-31 23:05:18 +02:00
020a5e6e40 Add implemetation for db.UserIdentifiable for type in db package 2024-10-31 11:11:39 +02:00
7d1ca772c0 Add BeforeSave hook for type for duplicate detection 2024-10-31 11:09:11 +02:00
255f812078 Add clarity to cards errors 2024-10-31 11:05:06 +02:00
79b83026f5 Fix issue with updating the same entity 2024-10-31 10:09:50 +02:00
db53f2a486 Add implicit implementation of db.UserIdentifiable for Card 2024-10-31 10:09:38 +02:00
506586a187 Add db.Identifiable and db.UserIdentifiable interfaces 2024-10-31 10:09:10 +02:00
713f19a201 Add comment field for Item schema 2024-10-29 12:25:01 +02:00
0e081297d0 Add Type to database schema 2024-10-29 12:24:46 +02:00
1d1463b38f Add user to debt and income 2024-08-08 20:14:50 +03:00
ea2c50c654 Add Date and User binding to Transfer 2024-08-03 15:50:22 +03:00
3b17cff1ea Add comment to income 2024-08-03 15:50:03 +03:00
9adad26639 Add comment to debt 2024-08-03 15:49:58 +03:00
218ef61537 Fixes 2024-08-03 10:57:13 +03:00
5ce7223b92 Fix for category when searching parents when ParentID is zero 2024-08-03 10:52:38 +03:00
12fd07c0a3 Add Category.BeforeSave func 2024-08-03 10:49:46 +03:00
f59b57f147 Add user to Category 2024-08-03 10:46:15 +03:00
8960e2e7ba Add userID to dup find for Card 2024-08-03 10:45:09 +03:00
40fa706514 Add BeforeSave to card 2024-08-03 10:44:06 +03:00
39c953b6d6 Add Transfer to autoMigrate 2024-08-03 08:15:39 +03:00
ffa8d9211f Create Transfer model for database 2024-08-03 08:15:02 +03:00
83cf0bd71c Add UserID many-to-one relationship to User in db for Card 2024-08-03 08:06:46 +03:00
aa69960519 Rename Account->Card in db package 2024-08-03 08:05:46 +03:00
1c12d29aa5 Add automigrate for users table 2024-08-02 23:37:05 +03:00
f35e5db1a9 Create user in database 2024-08-02 23:36:55 +03:00
6c15e218c9 Add whole schema 2024-08-02 00:02:55 +03:00