mirror of
https://shylinux.com/x/enterprise
synced 2025-04-25 09:08:06 +08:00
add some
This commit is contained in:
parent
24898ca171
commit
41e1f6070c
@ -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)"`
|
||||
|
Loading…
x
Reference in New Issue
Block a user