From bc154857fb5569d7c1fa9785cc891cb927a6a156 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sat, 11 Oct 2025 20:55:48 +0530 Subject: removed per-user items --- item/item.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'item/item.go') diff --git a/item/item.go b/item/item.go index 3f911fa..617a662 100644 --- a/item/item.go +++ b/item/item.go @@ -20,7 +20,6 @@ package item import ( "gorm.io/gorm" d "vidhukant.com/openbills/db" - "vidhukant.com/openbills/user" ) var db *gorm.DB @@ -32,8 +31,6 @@ func init() { type Brand struct { gorm.Model - UserID uint `json:"-"` - User user.User `json:"-"` Name string } @@ -41,7 +38,7 @@ type Item struct { Name string Description string HSN string - UnitOfMeasure string // TODO: probably has to be a custom type + UnitOfMeasure string UnitPrice string // float GSTPercentage string // float } @@ -51,6 +48,4 @@ type SavedItem struct { Item BrandID uint Brand Brand - UserID uint `json:"-"` - User user.User `json:"-"` } -- cgit v1.2.3