Adding the PaidOff column to the Apps logic

Also had to readd a schema.sql file because sqlc was failing
at parsing the migrations directory correctly
This commit is contained in:
2025-08-13 23:49:03 +01:00
parent 5f0ec19e1f
commit 06aafa4ee1
12 changed files with 255 additions and 112 deletions
+4
View File
@@ -32,6 +32,8 @@ func mapRepoGetExpenseRow(e repo.GetExpenseRow) Expense {
Date: e.Expense.ExpDate,
Shares: []ExpenseShare{},
Payments: []ExpensePayment{},
PaidOff: e.Expense.PaidOff,
SharesEven: e.Expense.SharesEven,
CreationDate: e.Expense.CreationDate,
}
}
@@ -62,6 +64,8 @@ func mapRepoGetExpenseRowMulti(e repo.GetExpensesRow) Expense {
Date: e.Expense.ExpDate,
Shares: []ExpenseShare{},
Payments: []ExpensePayment{},
PaidOff: e.Expense.PaidOff,
SharesEven: e.Expense.SharesEven,
CreationDate: e.Expense.CreationDate,
}
}