package models import ( "time" ) type TBaseClassLog struct { LogIdInt int64 `xorm:"not null pk autoincr comment('整数主键') unique index(update_ts) INT(11)"` ActionName string `xorm:"not null comment('操作名称') VARCHAR(128)"` ClassId string `xorm:"not null default ''1'' comment('班级ID') CHAR(36)"` ClassName string `xorm:"not null comment('班级名称') VARCHAR(32)"` AltasName string `xorm:"default 'NULL' comment('班级别名') VARCHAR(32)"` ClassNum int64 `xorm:"not null comment('班号') INT(11)"` ClassCode string `xorm:"default 'NULL' CHAR(36)"` StageId int64 `xorm:"not null comment('所属学段') INT(11)"` EntryYear int64 `xorm:"not null comment('入学年份') INT(11)"` SchoolLength int64 `xorm:"not null comment('学制') INT(11)"` BUse int64 `xorm:"not null default 1 comment('是否可用 0:不可用 1:可用 2:毕业') INT(11)"` CityId string `xorm:"not null comment('所在城市ID') CHAR(36)"` AreaId string `xorm:"not null comment('所在县区ID') CHAR(36)"` MainSchoolId string `xorm:"not null comment('所在主校ID') CHAR(36)"` BureauId string `xorm:"not null comment('所属学校') CHAR(36)"` OrgId string `xorm:"not null default ''-1'' comment('职业教育为所在部门,基础教育为单位ID') CHAR(36)"` CreateTime time.Time `xorm:"not null comment('创建时间') DATETIME"` UpdateTs time.Time `xorm:"not null default 'current_timestamp()' index(update_ts) index TIMESTAMP"` IdInt int64 `xorm:"not null INT(10)"` Operator string `xorm:"not null comment('操作人员') CHAR(36)"` IpAddress int64 `xorm:"not null default 0 comment('操作者IP') BIGINT(11)"` }