AhmadYarAI commited on
Commit
891ee94
·
1 Parent(s): 76a24cb

Set the starting balance and closing balance

Browse files
Files changed (1) hide show
  1. app/db/models_family.py +3 -4
app/db/models_family.py CHANGED
@@ -47,11 +47,10 @@ class FamilyMonthly(Base):
47
 
48
  year = Column(Integer, nullable=False)
49
  month = Column(Integer, nullable=False)
50
-
 
51
  monthly_income = Column(Float, default=0.0)
52
  monthly_budget = Column(Float, default=0.0)
53
-
54
- predicted_income = Column(Float, nullable=True)
55
- predicted_budget = Column(Float, nullable=True)
56
 
57
  created_at = Column(DateTime(timezone=True), server_default=func.now())
 
47
 
48
  year = Column(Integer, nullable=False)
49
  month = Column(Integer, nullable=False)
50
+ # 🔹 NEW FIELDS
51
+ starting_balance = Column(Float, nullable=False)
52
  monthly_income = Column(Float, default=0.0)
53
  monthly_budget = Column(Float, default=0.0)
54
+ closing_balance = Column(Float, nullable=False)
 
 
55
 
56
  created_at = Column(DateTime(timezone=True), server_default=func.now())