// 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 TableNameFirstAdvLog = "first_adv_logs"

// FirstAdvLog mapped from table <first_adv_logs>
type FirstAdvLog struct {
	ID        int64  `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
	Userid    int64  `gorm:"column:userid;type:bigint(20);not null" 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
	EventID   int32  `gorm:"column:event_id;type:int(11);not null" json:"event_id"`                                        // 事件ID
	Date      string `gorm:"column:date;type:date" json:"date"`
	EventAt   int32  `gorm:"column:event_at;type:int(11);not null" json:"event_at"`          // 触发时间戳
	EventAtNs int64  `gorm:"column:event_at_ns;type:bigint(20);not null" json:"event_at_ns"` // 发生时间ns
}

// TableName FirstAdvLog's table name
func (*FirstAdvLog) TableName() string {
	return TableNameFirstAdvLog
}
