package models import ( "time" ) type TDataexOrgtree struct { Id string `xorm:"not null pk comment('ID【根节点默认为-1】') VARCHAR(36)"` OrgName string `xorm:"not null comment('机构名称') VARCHAR(100)"` OrgType int32 `xorm:"not null comment('机构类型【1:教育局、2:学校、3:教辅、4:其他】') INT(11)"` ParentId string `xorm:"default ''NULL'' comment('父节点ID') VARCHAR(36)"` CatId string `xorm:"not null comment('层级ID【4位数字一组、右侧多级累加】') VARCHAR(100)"` CreateTime time.Time `xorm:"default 'NULL' comment('建立时间') DATETIME"` ChangeTime time.Time `xorm:"default 'NULL' comment('最近修改时间') DATETIME"` DeleteTime time.Time `xorm:"default 'NULL' comment('删除时间') DATETIME"` DeleteFlag int32 `xorm:"not null default -1 comment('删除标志【默认-1,1:删除,-1:正常】') INT(11)"` EnableFlag int32 `xorm:"not null default 1 comment('启用标志【默认1,1:启用,-1:禁用】') INT(11)"` }