// 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 TableNameLoginLog = "login_logs"

// LoginLog mapped from table <login_logs>
type LoginLog 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;index:user_id,priority:1" json:"user_id"`                                                                        // 用户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) unsigned;not null;index:create_event_id_at_idx,priority:2;index:event_at_idex,priority:2;index:event_id,priority:1" json:"event_id"` // 埋点id
	UserCreatedAt int32  `gorm:"column:user_created_at;type:int(11) unsigned;not null;index:create_event_id_at_idx,priority:1;index:user_created_at,priority:1" json:"user_created_at"`           // 用户注册时间
	EventAt       int32  `gorm:"column:event_at;type:int(11) unsigned;not null;index:create_event_id_at_idx,priority:3;index:event_at,priority:1;index:event_at_idex,priority:1" json:"event_at"` // 埋点事件触发的时间
	CostTime      int64  `gorm:"column:cost_time;type:bigint(20) unsigned;not null" json:"cost_time"`                                                                                             // 耗时，微秒
	ChannelID     string `gorm:"column:channel_id;type:varchar(128);index:channel_id,priority:1;default:0" json:"channel_id"`                                                                     // 渠道ID
	Flag          int32  `gorm:"column:flag;type:int(11)" json:"flag"`
}

// TableName LoginLog's table name
func (*LoginLog) TableName() string {
	return TableNameLoginLog
}
