This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-10-02 22:24:15 +08:00
parent 24898ca171
commit 41e1f6070c

View File

@ -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)"`