package purchase
|
|
import (
|
"srm/global"
|
)
|
|
type PurchaseType struct {
|
global.GVA_MODEL
|
ID uint `json:"id,string" gorm:"primarykey"` // 主键ID
|
Name string `json:"name" form:"name" gorm:"type:varchar(255);not null;default '';comment:采购类型"` // 采购类型
|
Sort int `json:"sort" form:"sort" gorm:"type:int(11);not null;default 0;comment:排序"` // 排序
|
Pin bool `json:"pin" form:"pin" gorm:"type:tinyint(1);not null;default 0;comment:采购名称"` // 是否置顶
|
}
|
|
func (PurchaseType) TableName() string {
|
return "srm_purchase_type"
|
}
|