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.
19 lines
1.0 KiB
19 lines
1.0 KiB
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"`
|
|
}
|
|
|