From 48f7b8258e162ee25d6c1a2195cd130a9abb2d47 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Fri, 1 Nov 2024 09:30:01 +0200 Subject: [PATCH] Add Item-Type relationship --- db/item.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/db/item.go b/db/item.go index 5397dcd..f212000 100644 --- a/db/item.go +++ b/db/item.go @@ -19,6 +19,9 @@ type Item struct { Prices []ItemPrice CurrentPriceID uint CurrentPrice *ItemPrice + // + TypeID uint + Type *Type } func GetItem(id uint, preloadPrices bool) (*Item, error) {