online_code/models/entity/category_basic.go

16 lines
499 B
Go
Raw Normal View History

2022-05-25 17:30:46 +08:00
package entity
import "online_code/common/types"
// CategoryBasic 分类表
2022-05-26 15:40:21 +08:00
type CategoryBasic struct {
2022-05-25 17:30:46 +08:00
types.BaseDbModel
Identity string `json:"identity" gorm:"column:identity;type:varchar(36);comment:'问题表的唯一标识'"`
2022-05-25 17:30:46 +08:00
Name string `json:"name" gorm:"column:name;type:varchar(100);comment:'分类名称'" `
ParentId int `json:"parent_id" gorm:"column:parent_id;type:int(11);comment:'父级ID'" `
}
2022-05-26 15:40:21 +08:00
func (table *CategoryBasic) TableName() string {
return "category_basic"
2022-05-25 17:30:46 +08:00
}