You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
2.0 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package models
import (
"time"
)
type TBaseClass struct {
ClassId string `xorm:"not null pk default ''1'' comment('班级ID') index(b_use_2) CHAR(36)"`
ClassName string `xorm:"not null comment('班级名称') VARCHAR(32)"`
AltasName string `xorm:"default 'NULL' comment('班级别名') VARCHAR(32)"`
ClassNum int64 `xorm:"not null comment('班号 规则4位入学年份+1位学段编号+2位班级编号 学段1:小学 2:初中 3:高中') INT(11)"`
ClassCode string `xorm:"not null comment('班级编码 规则4位入学年份+1位学段编号+2位班级编号 学段0:幼儿 1:小学 2:初中 3:高中') unique(bureau_id) CHAR(36)"`
StageId int64 `xorm:"not null comment('所属学段') index(b_use) unique(bureau_id) INT(11)"`
EntryYear int64 `xorm:"not null comment('入学年份') index(b_use) INT(11)"`
SchoolLength int64 `xorm:"not null comment('学制') INT(11)"`
BUse int64 `xorm:"not null default 1 comment('是否可用 0不可用 1可用 2毕业') index(b_use) index(b_use_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('所属学校') index(b_use) unique(bureau_id) 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 index(update_ts_2) TIMESTAMP"`
IdInt int64 `xorm:"not null autoincr comment('整数主键') unique index(update_ts_2) INT(11)"`
Operator string `xorm:"not null comment('操作人员') CHAR(36)"`
IpAddress int64 `xorm:"not null default 0 comment('操作者IP') BIGINT(11)"`
}