1234567891011121314151617181920212223242526272829303132 |
- package yb_community_video_play_log
- import "time"
- // YbCommunityVideoPlayLog 研报视频社区播放记录表
- type YbCommunityVideoPlayLog struct {
- ID int `gorm:"primaryKey;column:id;type:bigint(20) unsigned;not null" json:"-"`
- CommunityVideoID int `gorm:"index:idx_community_video_id;column:community_video_id;type:int(10) unsigned;not null" json:"communityVideoId"` // 回答音频ID
- UserID int `gorm:"column:user_id;type:int(10) unsigned;not null;default:0" json:"userId"` // 点击音频的用户ID
- SourceAgent int `gorm:"column:source_agent;type:tinyint(4) unsigned;not null;default:1" json:"sourceAgent"` // 操作来源,1:小程序,2:小程序 pc 3:弘则研究公众号,4:web pc
- CreateTime time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"createTime"` // 创建时间
- }
- // TableName get sql table name.获取数据库表名
- func (m *YbCommunityVideoPlayLog) TableName() string {
- return "yb_community_video_play_log"
- }
- // YbCommunityVideoPlayLogColumns get sql column name.获取数据库列名
- var YbCommunityVideoPlayLogColumns = struct {
- ID string
- CommunityVideoID string
- UserID string
- SourceAgent string
- CreateTime string
- }{
- ID: "id",
- CommunityVideoID: "community_video_id",
- UserID: "user_id",
- SourceAgent: "source_agent",
- CreateTime: "create_time",
- }
|