package model

type CommissionLog struct {
	ID          int    `gorm:"primaryKey;column:id" json:"id"`
	UserID      *int   `gorm:"column:user_id" json:"user_id"`
	InviteUserID int   `gorm:"column:invite_user_id" json:"invite_user_id"`
	TradeNo     string `gorm:"column:trade_no" json:"trade_no"`
	OrderAmount int64  `gorm:"column:order_amount" json:"order_amount"`
	GetAmount   int64  `gorm:"column:get_amount" json:"get_amount"`
	CreatedAt   int64  `gorm:"column:created_at" json:"created_at"`
	UpdatedAt   int64  `gorm:"column:updated_at" json:"updated_at"`
}

func (CommissionLog) TableName() string {
	return "v2_commission_log"
}
