// 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 TableNameGoodsLog = "goods_logs"

// GoodsLog mapped from table <goods_logs>
type GoodsLog 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" 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_event_id_at_idx,priority:1" json:"position_id"` // 商品[位]id
	GoodType      int32  `gorm:"column:good_type;type:int(11) unsigned;not null" json:"good_type"`                                              // 商品 1 礼包 2 充值
	EventID       int32  `gorm:"column:event_id;type:int(11) unsigned;not null;index:postion_event_id_at_idx,priority:2" json:"event_id"`       // 触发事件 1 展示 2 点击 3 支付成功
	EventAt       int32  `gorm:"column:event_at;type:int(11) unsigned;not null;index:postion_event_id_at_idx,priority:3" 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"`                                                                   // 额外信息
}

// TableName GoodsLog's table name
func (*GoodsLog) TableName() string {
	return TableNameGoodsLog
}
