1234567891011121314151617181920212223242526272829303132333435363738394041 |
- package research_group
- import "time"
- type ResearchGroup struct {
- ResearchGroupID int `gorm:"primaryKey;column:research_group_id;type:int(10) unsigned;not null" json:"-"`
- ResearchGroupName string `gorm:"column:research_group_name;type:varchar(100);not null;default:''" json:"researchGroupName"`
- ParentID int `gorm:"column:parent_id;type:int(10) unsigned;not null;default:0" json:"parentId"`
- ChartPermissionID int `gorm:"column:chart_permission_id;type:int(10) unsigned;not null;default:0" json:"chartPermissionId"`
- Sort int `gorm:"column:sort;type:int(10) unsigned;not null;default:0" json:"sort"`
- State int `gorm:"column:state;type:tinyint(4) unsigned;not null;default:1" json:"state"`
- CreateTime time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"createTime"`
- ModifyTime time.Time `gorm:"column:modify_time;type:datetime;default:CURRENT_TIMESTAMP" json:"modifyTime"`
- }
- func (m *ResearchGroup) TableName() string {
- return "research_group"
- }
- var ResearchGroupColumns = struct {
- ResearchGroupID string
- ResearchGroupName string
- ParentID string
- ChartPermissionID string
- Sort string
- State string
- CreateTime string
- ModifyTime string
- }{
- ResearchGroupID: "research_group_id",
- ResearchGroupName: "research_group_name",
- ParentID: "parent_id",
- ChartPermissionID: "chart_permission_id",
- Sort: "sort",
- State: "state",
- CreateTime: "create_time",
- ModifyTime: "modify_time",
- }
|