central transactions table

This commit is contained in:
2026-10-10 17:25:00 +01:00
parent fdc66037ce
commit 3fab51fe70
15 changed files with 715 additions and 64 deletions
+11
View File
@@ -7,6 +7,7 @@ from polyfactory.fields import Use
from src.models.b4w import B4wExport
from src.models.comdirect import ComdirectCreditCard, ComdirectDepot, ComdirectGiro
from src.models.transactions import Transaction
DEFAULT_CATEGORY = "root_category:parent_category:leaf_category"
@@ -98,3 +99,13 @@ class ComdirectDepotFactory(ModelFactory[ComdirectDepot]):
date_val = Use(_german_date)
num = Use(_amount_eur)
spot_price = Use(_amount_eur)
class TransactionFactory(ModelFactory[Transaction]):
__faker__ = Faker("de_DE")
__use_examples__ = True
account_iban = Use(_iban)
text = Use(_sentence)
other_name = Use(_names)
other_iban = Use(_iban_or_none)