You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
672 B
28 lines
672 B
2 years ago
|
package model
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
type Product struct {
|
||
|
//gorm.Model
|
||
|
ID int32
|
||
|
Name string
|
||
|
ProductType int32 `gorm:"default:1"`
|
||
|
CategoryId int32
|
||
|
StartingPrice float32
|
||
|
TotalStock int32 `gorm:"default:'1234'"`
|
||
|
MainPicture string `gorm:"default:1"`
|
||
|
RemoteAreaPostage float32
|
||
|
SingleBuyLimit int32
|
||
|
IsEnable int32 `gorm:"default:0"`
|
||
|
Remark string `gorm:"default:'1'"`
|
||
|
CreateUser int32 `gorm:"default:'1'"`
|
||
|
CreateTime time.Time
|
||
|
UpdateUser int32
|
||
|
UpdateTime time.Time
|
||
|
IsDeleted bool
|
||
|
}
|
||
|
|
||
|
func (table *Product) TableName() string {
|
||
|
return "product"
|
||
|
}
|