20 lines
524 B
Go
20 lines
524 B
Go
package model
|
|
|
|
// SysResearch 研究领域数据模型
|
|
type SysResearch struct {
|
|
Model
|
|
ParentID uint64 `gorm:"column:parent_id;type:int;default:0;comment:父级ID" json:"-"`
|
|
Code string `gorm:"column:code;type:varchar(30);default:null;comment:编号" json:"code"`
|
|
Name string `gorm:"column:name;type:varchar(30);default:null;comment:角色名" json:"name"`
|
|
ModelDeleted
|
|
ModelAt
|
|
}
|
|
|
|
func (*SysResearch) TableName() string {
|
|
return "sys_research"
|
|
}
|
|
|
|
func NewSysResearch() *SysResearch {
|
|
return &SysResearch{}
|
|
}
|