Commit 1b9e2976 authored by Jakob Moser's avatar Jakob Moser
Browse files

Make balance a mapped type so it is stored in DB

parent 2992bb70
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ class Person(Base):

    name: Mapped[str]
    cl_account_name: Mapped[str] = mapped_column(unique=True)
    balance_cents: int = 0
    balance_cents: Mapped[int] = 0

    @property
    def balance_str(self) -> str: