aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/item/item.go
diff options
context:
space:
mode:
Diffstat (limited to 'item/item.go')
-rw-r--r--item/item.go11
1 files changed, 3 insertions, 8 deletions
diff --git a/item/item.go b/item/item.go
index 617a662..3a6235f 100644
--- a/item/item.go
+++ b/item/item.go
@@ -26,16 +26,13 @@ var db *gorm.DB
func init() {
db = d.DB
- db.AutoMigrate(&SavedItem{}, &Brand{})
-}
-
-type Brand struct {
- gorm.Model
- Name string
+ db.AutoMigrate(&SavedItem{})
}
type Item struct {
Name string
+ BrandName string
+ Category string
Description string
HSN string
UnitOfMeasure string
@@ -46,6 +43,4 @@ type Item struct {
type SavedItem struct {
gorm.Model
Item
- BrandID uint
- Brand Brand
}