123456789101112131415161718192021222324 |
- package crm
- import (
- "eta/eta_docs/global"
- "time"
- )
- // EtaTrainingVideoViewLog ETA培训视频访问日志
- type EtaTrainingVideoViewLog struct {
- Id int `gorm:"primaryKey;column:id;type:int(10) unsigned;not null" json:"-"`
- EtaTrainingVideoId int `gorm:"index:idx_video_id;column:eta_training_video_id;type:int(10) unsigned;not null;default:0" json:"etaTrainingVideoId"` // 培训视频ID
- EtaBusinessId int `gorm:"column:eta_business_id;type:int(10) unsigned;not null;default:0" json:"etaBusinessId"` // 商家ID
- EtaBusinessCodeEncrypt string `gorm:"column:eta_business_code_encrypt;type:varchar(128);not null;default:''" json:"etaBusinessCodeEncrypt"` // 商家编码encrypt
- CreateTime time.Time `gorm:"column:create_time;type:datetime" json:"createTime"` // 创建时间
- }
- func (m *EtaTrainingVideoViewLog) TableName() string {
- return "eta_training_video_view_log"
- }
- func (m *EtaTrainingVideoViewLog) Create() (err error) {
- err = global.MYSQL["hz_crm"].Create(m).Error
- return
- }
|