From 83cf0bd71c4ff381c28c093d82c1168e659fb036 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Sat, 3 Aug 2024 08:06:46 +0300 Subject: [PATCH] Add UserID many-to-one relationship to User in db for Card --- db/card.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/card.go b/db/card.go index 8d13aa1..1685948 100644 --- a/db/card.go +++ b/db/card.go @@ -9,4 +9,6 @@ type Card struct { Value uint64 HaveCreditLine bool CreditLine uint64 + UserID uint + User *User }