diff --git a/src/gongyinglian/model/model.go b/src/gongyinglian/model/model.go index 8f195e7..0d2f0a9 100644 --- a/src/gongyinglian/model/model.go +++ b/src/gongyinglian/model/model.go @@ -62,29 +62,24 @@ type Store struct { } type Shop struct { db.ModelNameInfo - UserUID string `gorm:"type:char(32);index"` StoreUID string `gorm:"type:char(32);index"` Address string `gorm:"type:varchar(255)"` } type Warehouse struct { db.ModelNameInfo - UserUID string `gorm:"type:char(32);index"` StoreUID string `gorm:"type:char(32);index"` Address string `gorm:"type:varchar(255)"` } type Quality struct { db.ModelNameInfo - UserUID string `gorm:"type:char(32);index"` StoreUID string `gorm:"type:char(32);index"` } type Brand struct { db.ModelNameInfo - UserUID string `gorm:"type:char(32);index"` StoreUID string `gorm:"type:char(32);index"` } type Product struct { db.ModelNameInfo - UserUID string `gorm:"type:char(32);index"` StoreUID string `gorm:"type:char(32);index"` ShopUID string `gorm:"type:char(32);index"` WarehouseUID string `gorm:"type:char(32);index"` @@ -151,7 +146,6 @@ func init() { type Expense struct { db.ModelNameInfo - UserUID string `gorm:"type:char(32);index"` StoreUID string `gorm:"type:char(32);index"` FromUserUID string `gorm:"type:char(32)"` ToUserUID string `gorm:"type:char(32)"` @@ -159,7 +153,6 @@ type Expense struct { } type Loan struct { db.ModelNameInfo - UserUID string `gorm:"type:char(32);index"` StoreUID string `gorm:"type:char(32);index"` FromUserUID string `gorm:"type:char(32)"` ToUserUID string `gorm:"type:char(32)"`