Commit Graph

  • 87cf3bda7e Add cleanup code to check if session from database is expired or not main qowevisa 2024-12-01 19:37:41 +0200
  • 2566ec8eaa Add CANT_FIND_CURRENCY error to db.go and fix problem when initCurrencies returned CANT_FIND_METRIC qowevisa 2024-12-01 13:22:41 +0200
  • 282339e7af Remame db.Metric.Value to db.Metric.Type qowevisa 2024-12-01 13:16:44 +0200
  • e83cf56126 Add consts.go to db package and move all Metric values to consts.go qowevisa 2024-12-01 12:37:29 +0200
  • eeaec565bd Add total to StatsTypeCurrencyChart qowevisa 2024-12-01 12:17:08 +0200
  • 66dfdada06 Add sorts.go to utils package to use utils.DescendingOrder instead of writing it all every time qowevisa 2024-12-01 11:39:31 +0200
  • 32d3f1331c Add filtering expenses based on db.SettingsTypeFilter on statistics/type route handler qowevisa 2024-11-30 20:49:26 +0200
  • 65fff95124 Add *.bak rule to gitignore qowevisa 2024-11-30 16:56:46 +0200
  • afaf43dde1 Add settings/type routes and handlers qowevisa 2024-11-30 16:37:31 +0200
  • 6d41a778b3 Add types.SettingsTypeFilter struct qowevisa 2024-11-30 16:37:11 +0200
  • 03fa9ff9bc Add db.SettingsTypeFilter struct to db package qowevisa 2024-11-30 16:36:55 +0200
  • 4ed24ab555 Add tokens.SESSION_DURATION_IN_SECONDS to tokens package and made cookies sent to front and in db session duration to be in sync qowevisa 2024-11-30 16:36:22 +0200
  • 39275473af Delete log.Printf() function calls from session_cache.go qowevisa 2024-11-30 16:35:32 +0200
  • c118a238de Rework how AuthMiddleware works speeding it up using basic map runtime cache qowevisa 2024-11-30 13:57:57 +0200
  • 8f592a0f2e Change soft deletion of sessions to be hard delete qowevisa 2024-11-30 12:36:28 +0200
  • 21dc84a29c Move time.Hour as SESSION_DURATION constant qowevisa 2024-11-30 12:36:11 +0200
  • 29bf1427a0 Add statistics handler and endpoint qowevisa 2024-11-29 20:59:22 +0200
  • 91590ade72 Add StatsType and StatsTypeCurrencyChart structs to types package qowevisa 2024-11-29 20:58:56 +0200
  • 2e621a6841 Add payment/all route and handler qowevisa 2024-11-28 15:08:41 +0200
  • b6f393bd46 Add Item to DbItemBought qowevisa 2024-11-28 15:08:25 +0200
  • ffd0c8e45b Finish creating payment/add handler qowevisa 2024-11-28 15:08:10 +0200
  • e655968fc3 Drop Debug() function to query on delete in payment.add rollback qowevisa 2024-11-28 15:06:07 +0200
  • dd5f67536e Rename types.Payment to types.DbPayment and types.ItemBought to be types.DbItemBought qowevisa 2024-11-28 15:01:16 +0200
  • e6d53c4d17 Add BeforeSave hook to db.Payment qowevisa 2024-11-28 13:42:59 +0200
  • 994f623f23 Rename ERROR_EXPENSE_INVALID_USERID -> ERROR_EXPENSE_INVALID_CARD_USERID qowevisa 2024-11-28 13:40:10 +0200
  • f221480b2c Add marker for Hepler_ExpenseBulk.CreateExpenseFromChild to sweep it under the rug qowevisa 2024-11-28 13:39:43 +0200
  • 8807235dad Add Preloading and sending NameWithParent field with default value being inp.Name qowevisa 2024-11-27 21:59:47 +0200
  • 87c5676846 Add NameWithParent field for types.DbCategory qowevisa 2024-11-27 21:59:17 +0200
  • fc2b066c12 Fix issue when creating root category for new user qowevisa 2024-11-27 20:28:39 +0200
  • d55ba5c3c7 Changes in README.md qowevisa 2024-11-27 12:20:09 +0200
  • 4d66637d3e Change name of database file qowevisa 2024-11-27 09:57:41 +0200
  • 3e8f56eb0a Add bulk creation of expencies qowevisa 2024-11-27 07:39:23 +0200
  • 4d452737cd Update expenseTransform to show ShowValue and Card if possible qowevisa 2024-11-24 11:34:48 +0200
  • e608e64cce Add Card and ShowValue to types.DbExpense qowevisa 2024-11-24 11:34:05 +0200
  • d61d083ed6 Add showing currency symbol for card name if it is possible qowevisa 2024-11-24 11:33:42 +0200
  • 46ab4ee7a0 Now if it can be done transfer with same currency between cards will show symbol of either of the cards qowevisa 2024-11-24 00:39:02 +0200
  • 957f1e8363 Update transfer handlers to show and use card transformer that will use currency transformer as well if their field is not nil qowevisa 2024-11-24 00:28:22 +0200
  • 0f7b1b210a Add FromValue and ToValue to show for different currencies and some UI fields for easy front qowevisa 2024-11-24 00:27:34 +0200
  • 4db167085a Add Currency and DisplayName to card handlers qowevisa 2024-11-24 00:27:02 +0200
  • 4fc2b5f5bd Add displayName to types.DbCard qowevisa 2024-11-24 00:26:33 +0200
  • 4199603be3 Add situation when transfer will be from one currency on the card to different currency qowevisa 2024-11-24 00:26:02 +0200
  • e1a46f5fc7 Update handler and types.DbCard to accept and send new fields qowevisa 2024-11-20 21:00:17 +0200
  • 4522d4450f Add LastDigits and binding to currency for cards qowevisa 2024-11-20 20:59:48 +0200
  • 05b5059477 Change RON symbol to be RL qowevisa 2024-11-20 20:45:56 +0200
  • 40ec90687a Add currency/all endpoint and handler qowevisa 2024-11-20 20:29:00 +0200
  • 79eb50f375 Add types.DbCurrency to types package qowevisa 2024-11-20 20:28:42 +0200
  • f4cad689d8 Add ExchangeRate entity to database qowevisa 2024-11-20 19:19:48 +0200
  • 5f35b57eb4 Remove logs from expense.go in db package qowevisa 2024-11-20 19:19:17 +0200
  • 33ffa6275b Change initMetrics seeding to use new generic function and add seeding for Currencies qowevisa 2024-11-20 18:46:07 +0200
  • d929492e3d Add implementation for Identifiable interface for Metric entity qowevisa 2024-11-20 18:45:23 +0200
  • 579bb031c7 Change Identifiable interface to only use GetID() uint function qowevisa 2024-11-20 18:44:44 +0200
  • d41e6301e5 Add Currency entity to database qowevisa 2024-11-20 18:44:23 +0200
  • cb60cb39d5 Add payment endpoint and handlers qowevisa 2024-11-20 18:19:57 +0200
  • 3ce1c5c2d0 Change itemTransform function to use Item.Price directly qowevisa 2024-11-20 18:19:43 +0200
  • 9cd9b20163 Add db hooks for Item qowevisa 2024-11-20 18:19:19 +0200
  • 81b379afbd Add Paymenr Item and ItemBought as entities in PaymentGroup for db interface resolution qowevisa 2024-11-20 18:19:12 +0200
  • 4244e397f3 Set CASCADE deletion for ItemBought from Payment after deletion qowevisa 2024-11-20 18:18:29 +0200
  • dbe140ecaf Set CASCADE delete for ItemPrice from Item deletion qowevisa 2024-11-20 18:17:45 +0200
  • b5747c9d9d Add Price field for Item qowevisa 2024-11-20 18:17:21 +0200
  • bd2005bf5d Add PaymentGroup to intf.go in db package qowevisa 2024-11-20 18:17:03 +0200
  • 953394335b Remove DbPayment and add Payment instead to types package qowevisa 2024-11-20 18:16:45 +0200
  • a52b108bf8 Add metric /all endpoint and handler qowevisa 2024-11-19 10:13:41 +0200
  • f4342ba019 Add types.DbMetric type to types package qowevisa 2024-11-19 10:13:19 +0200
  • 8855cc3e54 Add db seeding with default metrics for users qowevisa 2024-11-19 10:13:02 +0200
  • 06b317511d Add Metric entity to database schema qowevisa 2024-11-19 10:12:28 +0200
  • 83f69a2135 Add /all endpoint and handler for income qowevisa 2024-11-19 10:12:04 +0200
  • 9f7d93ed19 Fix issue with /add endpoint for income qowevisa 2024-11-19 10:11:40 +0200
  • 21afd95d98 Refactor handlers/income.go qowevisa 2024-11-18 19:38:44 +0200
  • 78d420e1d2 Remove UserID from types.DbIncome qowevisa 2024-11-18 19:38:34 +0200
  • 602b3da13b Add implementation for db.UserIdentifiable for Income qowevisa 2024-11-18 19:38:23 +0200
  • b9cfa2004a Fix issue with updating expense value for the same card qowevisa 2024-11-18 19:07:11 +0200
  • ead0a4bd60 Add item routes qowevisa 2024-11-18 09:55:34 +0200
  • dd19718dc8 Add handlers for finding items qowevisa 2024-11-18 09:55:27 +0200
  • fff8c256d1 Add DbItem and DbItemSearch types to types package qowevisa 2024-11-18 09:52:11 +0200
  • 3b3a8b13d6 Add implementation for db.UserIdentifiable for Item qowevisa 2024-11-18 09:51:46 +0200
  • a9a4f26528 Add routes for transfer qowevisa 2024-11-16 20:31:36 +0200
  • a47c75bb52 Add handlers for transfer qowevisa 2024-11-16 20:31:31 +0200
  • bf9628d1d7 Add types.DbTransfer qowevisa 2024-11-16 20:31:25 +0200
  • 66f83cf3aa Add implementation of db.UserIdentifiable for db.Transfer and add db hooks qowevisa 2024-11-16 20:31:18 +0200
  • 7b461ce985 Fix expense error in AfterDelete hook qowevisa 2024-11-16 20:30:47 +0200
  • d230ee7cf2 Fix errors in swagger docs qowevisa 2024-11-16 11:45:47 +0200
  • 18aad2c225 Add routes to handlers for expense group qowevisa 2024-11-16 11:43:32 +0200
  • 2827a31fc9 Add Expense CRUD handlers qowevisa 2024-11-16 11:43:11 +0200
  • e26808e2f3 Add loging ShouldBindJSON error to console qowevisa 2024-11-16 11:42:59 +0200
  • 137d343773 Add types.DbExpense qowevisa 2024-11-16 11:42:43 +0200
  • 893f2aa365 Add Expense entity to database qowevisa 2024-11-16 11:42:28 +0200
  • 29a0353888 Small refactoring and added all route for categories qowevisa 2024-11-11 22:27:16 +0200
  • 22007ef38e Add SelfReferencing check in Category database BeforeSave hook qowevisa 2024-11-11 22:26:47 +0200
  • 8a7d52efda Fix Parent finding issue with BeforeSave hook and duplicate finding error for category qowevisa 2024-11-11 22:26:21 +0200
  • 9b77237d50 Reforming and adding all endpoint for types qowevisa 2024-11-11 21:30:40 +0200
  • ba94ad6084 Add missing cardTransform function call qowevisa 2024-11-10 08:49:12 +0200
  • 85f8972d5e Add route to CardGetAll handler qowevisa 2024-11-10 08:25:44 +0200
  • 7b8405abdd Small refactoring and adding getting all handler to cards qowevisa 2024-11-10 08:25:35 +0200
  • 0b968d33a8 Add error on binding values to JSON on create request qowevisa 2024-11-10 08:23:45 +0200
  • afb8cb9773 Change types.Message to contain Info field and not Message field qowevisa 2024-11-10 08:23:28 +0200
  • 88981b8141 Add ignoring of *.log files in gitignore qowevisa 2024-11-08 17:07:00 +0200
  • 4e1faf26be Remove Debug part of fetching data from database qowevisa 2024-11-08 17:06:31 +0200
  • ad25c69c79 Redirect db log into db.log file qowevisa 2024-11-08 17:05:23 +0200
  • a0b96e25b2 Add missing creating part of sessions on registration and login qowevisa 2024-11-08 17:05:03 +0200
  • f6c226e97a Fix errors with trying to fetch sessions from database qowevisa 2024-11-08 17:04:43 +0200