Files

19 lines
430 B
Go
Raw Normal View History

2021-10-08 17:33:19 +08:00
package model
2021-10-13 14:35:24 +08:00
// SysIndustry 行业领域数据模型
2021-10-08 17:33:19 +08:00
type SysIndustry struct {
2021-10-13 14:35:24 +08:00
Model
2021-11-01 11:19:49 +08:00
ParentID uint64 `gorm:"column:parent_id;type:int;default:0;comment:父级ID" json:"-"`
2021-12-03 14:18:06 +08:00
Name string `gorm:"column:name;type:varchar(30);default:'';comment:行业名称" json:"name"`
2021-10-13 14:35:24 +08:00
ModelDeleted
ModelAt
2021-10-08 17:33:19 +08:00
}
func (*SysIndustry) TableName() string {
return "sys_industry"
}
func NewSysIndustry() *SysIndustry {
return &SysIndustry{}
}