// Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. package model const TableNameAdvertisementLog = "advertisement_logs" // AdvertisementLog mapped from table type AdvertisementLog struct { ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"` UserID int64 `gorm:"column:user_id;type:bigint(20) unsigned;not null;uniqueIndex:user_p_e_at_idx,priority:1" json:"user_id"` ServerID int32 `gorm:"column:server_id;type:int(11);not null;index:server_id,priority:1;default:1" json:"server_id"` // 服务器ID PositionID int32 `gorm:"column:position_id;type:int(11) unsigned;not null;index:postion_id_event_id_at,priority:1;uniqueIndex:user_p_e_at_idx,priority:2" json:"position_id"` // 广告位id ChapterID int32 `gorm:"column:chapter_id;type:int(11);not null" json:"chapter_id"` EventID int32 `gorm:"column:event_id;type:int(11) unsigned;not null;index:postion_id_event_id_at,priority:2;uniqueIndex:user_p_e_at_idx,priority:3" json:"event_id"` // 触发事件 1 展示 2 点击 3 领取奖励 EventAt int32 `gorm:"column:event_at;type:int(11) unsigned;not null;index:postion_id_event_id_at,priority:3;index:event_at,priority:1;uniqueIndex:user_p_e_at_idx,priority:4" json:"event_at"` // 事件触发的时间 UserCreatedAt int32 `gorm:"column:user_created_at;type:int(11) unsigned;not null" json:"user_created_at"` // 用户注册时间 Extra string `gorm:"column:extra;type:varchar(512)" json:"extra"` // 奖励 Flag int32 `gorm:"column:flag;type:int(11)" json:"flag"` ChannelID string `gorm:"column:channel_id;type:varchar(128);index:channel_id,priority:1;default:0" json:"channel_id"` } // TableName AdvertisementLog's table name func (*AdvertisementLog) TableName() string { return TableNameAdvertisementLog }