// 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 TableNameAdvOriginLog = "adv_origin_logs"

// AdvOriginLog mapped from table <adv_origin_logs>
type AdvOriginLog struct {
	ID        int64  `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
	Platform  int64  `gorm:"column:platform;type:bigint(20);index:platform,priority:1" json:"platform"`                    // 来源平台
	Userid    int64  `gorm:"column:userid;type:bigint(20);not null;index:userid,priority:1" json:"userid"`                 // 用户ID
	ServerID  int32  `gorm:"column:server_id;type:int(11);not null;index:server_id,priority:1;default:1" json:"server_id"` // 服务器ID
	Appid     string `gorm:"column:appid;type:varchar(255)" json:"appid"`                                                  // 开放ID
	NewUser   int64  `gorm:"column:new_user;type:bigint(20);not null" json:"new_user"`                                     // 是否为新用户
	Scene     string `gorm:"column:scene;type:varchar(255)" json:"scene"`                                                  // 场景值
	Aid       string `gorm:"column:aid;type:varchar(255)" json:"aid"`                                                      // 广告ID
	Traceid   string `gorm:"column:traceid;type:varchar(255);index:traceid,priority:1" json:"traceid"`                     // 广告链路ID
	IP        string `gorm:"column:ip;type:varchar(32);not null" json:"ip"`                                                // 访问IP
	UserAgent string `gorm:"column:user_agent;type:varchar(512);not null" json:"user_agent"`                               // 访问代理
	Extra     string `gorm:"column:extra;type:longtext" json:"extra"`
	Date      string `gorm:"column:date;type:date;not null" json:"date"`                                      // 触发日期 2005-01-02
	EventAt   int32  `gorm:"column:event_at;type:int(11);not null;index:event_at,priority:1" json:"event_at"` // 触发时间戳
	EventAtNs int64  `gorm:"column:event_at_ns;type:bigint(20);not null" json:"event_at_ns"`                  // 发生时间ns
}

// TableName AdvOriginLog's table name
func (*AdvOriginLog) TableName() string {
	return TableNameAdvOriginLog
}
