aboutsummaryrefslogtreecommitdiff
path: root/item/item.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-09-03 16:18:20 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-09-03 16:18:20 +0530
commit776522d8741752832981b17ec81deb11a298ef57 (patch)
treef7c0654f2b3dbc475c2a32daa5c623eec0ffce4a /item/item.go
parent95dfc551f7eaaf6e8ebdefce1b733951354ac40d (diff)
different customers for different users
Diffstat (limited to 'item/item.go')
-rw-r--r--item/item.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/item/item.go b/item/item.go
index 4da9c78..839cbe0 100644
--- a/item/item.go
+++ b/item/item.go
@@ -20,6 +20,7 @@ package item
import (
"gorm.io/gorm"
d "vidhukant.com/openbills/db"
+ "vidhukant.com/openbills/user"
)
var db *gorm.DB
@@ -35,6 +36,8 @@ type Brand struct {
}
type Item struct {
+ UserID uint `json:"-"`
+ User user.User `json:"-"`
BrandID uint
Brand Brand
UnitOfMeasure string // TODO: probably has to be a custom type