biweeklybudget.models.budget_model module

class biweeklybudget.models.budget_model.Budget(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base, biweeklybudget.models.base.ModelAsDict

_sa_class_manager = {'budget_transactions': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7fb4df0dd990>, 'current_balance': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7fb4e1348f10>, 'description': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7fb4e1348db0>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7fb4e1348ba0>, 'is_active': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7fb4e1348fc0>, 'is_income': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7fb4e13680a0>, 'is_periodic': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7fb4e1348c50>, 'name': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7fb4e1348d00>, 'omit_from_graphs': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7fb4e1368150>, 'planned_transactions': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7fb4df0ddf10>, 'scheduled_transactions': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7fb4df2c43b8>, 'starting_balance': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7fb4e1348e60>}
budget_transactions
current_balance

current balance for standing budgets

description

description

id

Primary Key

is_active

whether active or historical

is_income

whether this is an Income budget (True) or expense (False).

is_periodic

Whether the budget is standing (long-running) or periodic (resets each pay period or budget cycle)

name

name of the budget

omit_from_graphs

whether or not to omit this budget from spending graphs

planned_transactions
scheduled_transactions
starting_balance

starting balance for periodic budgets