From ea2c50c6549e7812bcd5384b873f3895a2a5ab85 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Sat, 3 Aug 2024 15:50:22 +0300 Subject: [PATCH] Add Date and User binding to Transfer --- db/transfer.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/db/transfer.go b/db/transfer.go index abdc03d..d5d79d5 100644 --- a/db/transfer.go +++ b/db/transfer.go @@ -1,6 +1,10 @@ package db -import "gorm.io/gorm" +import ( + "time" + + "gorm.io/gorm" +) type Transfer struct { gorm.Model @@ -9,4 +13,7 @@ type Transfer struct { ToCardID uint ToCard *Card Value uint64 + Date time.Time + UserID uint + User *User }