biweeklybudget.models.budget_transaction module¶
-
class
biweeklybudget.models.budget_transaction.
BudgetTransaction
(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
,biweeklybudget.models.base.ModelAsDict
Represents the portion (amount) of a Transaction that is allocated against a specific budget. There will be one or more BudgetTransactions associated with each
Transaction
.-
_sa_class_manager
= {'amount': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'budget': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'budget_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'trans_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'transaction': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}¶
-
amount
¶ Amount of the transaction against this budget
-
budget_id
¶ ID of the Budget this transaction is against
-
id
¶ Primary Key
-
trans_id
¶ ID of the Transaction this is part of
-
transaction
¶ Relationship - the
Transaction
this is part of
-