package entities import ( "gorm.io/gorm" "time" ) type CompanyAuthTicket struct { ID uint `json:"id" xml:"id" gorm:"primaryKey;not null;comment:员工编号"` CompanyID uint `json:"company_id" xml:"company_id" gorm:"comment:所属公司编号"` EmployeeID uint `json:"employee_id" xml:"employee_id" gorm:"comment:所属员工编号"` WechatOpenid string `json:"wechat_openid" xml:"wechat_openid" gorm:"size:100;not null;comment:关联微信号"` Ticket string `json:"ticket" xml:"ticket" gorm:"comment:认证和授权凭证"` CreatedAt time.Time `json:"create_time" xml:"create_time" gorm:"<-:false;comment:创建时间"` UpdatedAt time.Time `json:"update_time" xml:"update_time" gorm:"<-:false;comment:更新时间"` DeletedAt gorm.DeletedAt `json:"-" xml:"-" gorm:"comment:删除时间"` Employee *CompanyEmployee `json:"employee" xml:"employee" gorm:"foreignKey:EmployeeID"` }