From 1d1463b38fca6020cf1393c02bb96f54904795b9 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Thu, 8 Aug 2024 20:14:50 +0300 Subject: [PATCH] Add user to debt and income --- db/debt.go | 2 ++ db/income.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/db/debt.go b/db/debt.go index 3c9ef6c..ba07c29 100644 --- a/db/debt.go +++ b/db/debt.go @@ -16,4 +16,6 @@ type Debt struct { Date time.Time DateEnd time.Time Finished bool + UserID uint + User *User } diff --git a/db/income.go b/db/income.go index 56d4894..e961bab 100644 --- a/db/income.go +++ b/db/income.go @@ -13,4 +13,6 @@ type Income struct { Value uint64 Comment string Date time.Time + UserID uint + User *User }