20 lines
523 B
Go
20 lines
523 B
Go
package model
|
|
|
|
// SysIndustry 行业领域数据模型
|
|
type SysIndustry struct {
|
|
Model
|
|
ParentID uint64 `gorm:"column:parent_id;type:int;default:0;comment:父级ID" json:"-"`
|
|
Code string `gorm:"column:code;type:varchar(30);default:'';comment:编号" json:"code"`
|
|
Name string `gorm:"column:name;type:varchar(30);default:'';comment:行业名称" json:"name"`
|
|
ModelDeleted
|
|
ModelAt
|
|
}
|
|
|
|
func (*SysIndustry) TableName() string {
|
|
return "sys_industry"
|
|
}
|
|
|
|
func NewSysIndustry() *SysIndustry {
|
|
return &SysIndustry{}
|
|
}
|