package models import ( "time" ) type TSysLoginpersonLog struct { IdInt int32 `xorm:"not null pk autoincr INT(11)"` IdentityId int32 `xorm:"not null comment('人员身份') INT(11)"` PersonId string `xorm:"not null comment('人员ID') CHAR(36)"` LoginName string `xorm:"not null comment('登录名') VARCHAR(255)"` IpAddress string `xorm:"not null comment('登录IP') VARCHAR(255)"` LoginTime time.Time `xorm:"not null default 'current_timestamp()' comment('登录时间') TIMESTAMP"` ProvinceCode string `xorm:"not null comment('省CODE') VARCHAR(255)"` CityCode string `xorm:"not null comment('市CODE') VARCHAR(255)"` DistrictCode string `xorm:"not null comment('县区CODE') VARCHAR(255)"` BureauId string `xorm:"not null comment('单位ID') CHAR(36)"` LoginState int32 `xorm:"not null comment('登录成功还是失败') INT(255)"` }