diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-10-11 20:55:48 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-10-11 20:55:48 +0530 |
commit | bc154857fb5569d7c1fa9785cc891cb927a6a156 (patch) | |
tree | 590c9f6a00a1b97b2ee45cfa5a767558089affe0 /item/item.go | |
parent | 8a47978ca17d2f251d67d12b0e34fa26bb1e4ace (diff) |
removed per-user itemsv0.17.0
Diffstat (limited to 'item/item.go')
-rw-r--r-- | item/item.go | 7 |
1 files changed, 1 insertions, 6 deletions
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:"-"` } |