9c7c06c181
[DB] Schema unified on pfbudget
2023-04-29 20:20:16 +01:00
f7df033d58
Add start date rule
...
Rename date to end.
2023-02-11 22:46:41 +00:00
5235fcdfc3
Adds business logic for split transaction
...
Moves split member to be part of parent class and removes it from the
init.
2023-01-23 23:03:42 +00:00
ace5195164
Move selector table back to transactions schema
...
Change table name originals to transactions and tags to tagged.
2023-01-23 19:36:24 +00:00
ae0a195069
Split tables per different schemas
2023-01-23 19:36:07 +00:00
d4b5f1f11a
Rule inheritance
...
Both rules, categorries and tags, now derive from the rule base type.
This clears up some type definitions.
2023-01-22 20:22:46 +00:00
478bd25190
Subclass the Transaction with multiple children
...
Each children is essentually a type of transaction. We currently have:
- bank transactions
- money transactions
- split transactions
The table inheritance is implemented as a single table, with a
polymorphic type and Null columns.
Adds a IsSplit interface, which will later be used for the category
views, so as to not repeat transactions.
2023-01-10 23:42:37 +00:00
7fe5b6bd32
Adds links between transactions
...
Sometimes transctions are directly related to one another w/o being of
an equal value, e.g. someone pays for the meal w/ the CC, and everyone
pays him/her.
Clear leftover __repr__ methods in the model classes, the dataclass
decorator will create those automatically.
2022-12-19 22:55:04 +00:00
f20cf685ad
Update Foreign Key delete cascade for categories
2022-12-19 22:10:06 +00:00
058d0cc05d
Adds Tags rules
...
Creates an available tags table to cross reference to.
Clarifies some logic in the DbClient, since all adds/removes are the
same.
2022-12-19 20:35:18 +00:00
6c33a94a5f
Change min_amount/max_amount columns for min/max
...
Simplifies the action creation.
2022-12-19 20:35:18 +00:00
17d8d5d813
[Fix] Changes rule's money type to Decimal
...
Also fixes comparison w/ max amount.
2022-12-17 20:48:16 +00:00
72a8995fe6
Adds regex rule and remove rule option
...
Categorization rules can now search using a regex pattern.
2022-12-10 18:54:16 +00:00
d321481e29
Rule based categorizing
...
Uses the rules defined for each category to classify each transaction.
Fixes the categorize command, which was broken from previous refactors.
Swaps str type on the categories_rules date to date.
2022-12-10 00:24:44 +00:00
fed007ff89
Changes recurring categories boolean to int
...
to indicate the number of expected transactions per time period.
2022-12-10 00:20:41 +00:00
471331ffc9
Categories rules for rule-based categorization
...
This patch extends the categories_rules with a rule for each field of a
transaction.
It also changes the ORM classes to behave as dataclasses again.
2022-12-09 19:38:12 +00:00
6f97b883fb
Add weekly option on the schedule period
2022-12-08 16:44:07 +00:00
d11bc6df1d
Adds category recurring possibility
2022-12-08 13:31:31 +00:00
d409038072
Adds category selector column
...
This column indicates where has the category came from.
2022-12-08 01:22:26 +00:00
78e545589d
Adds category groups
2022-12-04 15:14:24 +00:00
b8142f4f99
Add available categories table
2022-12-04 11:19:21 +00:00
91514f71b1
Adds relationships and CASCADE on deletes
2022-12-03 16:57:27 +00:00
246c948d76
All meal card to account type enum
2022-12-03 16:13:26 +00:00
0d22b02b3f
Adds alembic tool for DB versioning
...
Alembic is a lightweight database migration tool for usage with the
SQLAlchemy Database Toolkit for Python.
https://alembic.sqlalchemy.org/en/latest/index.html
Adds first version of DB schema.
2022-12-03 16:13:23 +00:00