|
|
package models
|
|
|
|
|
|
import (
|
|
|
"time"
|
|
|
)
|
|
|
|
|
|
type TBaseClassLog struct {
|
|
|
LogId string `xorm:"not null pk comment('日志主键') CHAR(36)"`
|
|
|
ClassId string `xorm:"not null comment('班级ID') CHAR(36)"`
|
|
|
Bh int32 `xorm:"not null default 0 comment('班号') INT(11)"`
|
|
|
ClassCode string `xorm:"not null default '''' comment('班级编码 规则:10位学校编码+4位入学年份+1位学段+3位班号 学段:0:幼儿 1:小学 2:初中 3:高中 4:职业 5:高等') CHAR(18)"`
|
|
|
ClassName string `xorm:"not null default '''' comment('班级名称') VARCHAR(100)"`
|
|
|
ClassAlias string `xorm:"not null default '''' comment('班级别名') VARCHAR(100)"`
|
|
|
Rxnf int32 `xorm:"not null default 1990 comment('入学年份') INT(11)"`
|
|
|
Rxjj int32 `xorm:"not null default 0 comment('入学季节') INT(11)"`
|
|
|
SchoolingLength int32 `xorm:"not null default 3 comment('学制') INT(11)"`
|
|
|
StageId string `xorm:"not null default '''' comment('所属学段ID') CHAR(1)"`
|
|
|
TeacherId string `xorm:"not null default '''' comment('班主任ID') CHAR(36)"`
|
|
|
OrgId string `xorm:"not null default '''' comment('所在部门(除职业和高等外都是0)') CHAR(36)"`
|
|
|
BureauId string `xorm:"not null default '''' comment('所在学校ID') CHAR(36)"`
|
|
|
BUse int32 `xorm:"not null default 1 comment('是否启用 0:未启用 1:启用') TINYINT(1)"`
|
|
|
ProvinceCode string `xorm:"not null default '''' comment('所在省行政区划码') CHAR(6)"`
|
|
|
CityCode string `xorm:"not null default '''' comment('所在市行政区划码') CHAR(6)"`
|
|
|
DistrictCode string `xorm:"not null default '''' comment('所在区行政区划码') CHAR(6)"`
|
|
|
MainSchoolId string `xorm:"not null default '''' comment('主校ID') CHAR(36)"`
|
|
|
CreateTime time.Time `xorm:"not null default ''0000-00-00 00:00:00'' comment('创建时间') TIMESTAMP"`
|
|
|
ActionPersonId string `xorm:"not null comment('操作人员ID') CHAR(36)"`
|
|
|
ActionIpAddress string `xorm:"not null default '''' comment('操作IP') VARCHAR(100)"`
|
|
|
ActionTime time.Time `xorm:"not null default 'current_timestamp()' comment('操作时间') TIMESTAMP"`
|
|
|
ActionCode string `xorm:"not null comment('操作代码') VARCHAR(255)"`
|
|
|
}
|