package log

type DeviceStatistics struct {
	Id                   uint    `json:"id"`
	GameId               int     `json:"game_id"`
	DeviceErrNum         int     `json:"device_err_num"`
	DeviceErrRate        float64 `json:"device_err_rate"`
	AccountErrNum        int     `json:"account_err_num"`
	AccountErrRate       float64 `json:"account_err_rate"`
	SimulatorStartNum    int     `json:"simulator_start_num"`
	CreateDate           string  `json:"create_date"`
	NewComplete          int     `json:"new_complete"`
	RetainedComplete     int     `json:"retained_complete"`
	NewDeviceIdErr       int     `json:"new_device_id_err"`
	NewDeviceIdRate      float64 `json:"new_device_id_rate"`
	RetainedDeviceIdErr  int     `json:"retained_device_id_err"`
	RetainedDeviceIdRate float64 `json:"retained_device_id_rate"`
	DefinedErr           int     `json:"defined_err"`
	UndefinedErr         int     `json:"undefined_err"`
}

func (DeviceStatistics) TableName() string {
	return "device_statistics"
}

type DeviceStatisticsReply struct {
	Id                   uint    `json:"id"`
	User                 string  `json:"user"`
	GameId               int     `json:"game_id"`
	DeviceErrNum         int     `json:"device_err_num"`
	DeviceErrRate        float64 `json:"device_err_rate"`
	AccountErrNum        int     `json:"account_err_num"`
	AccountErrRate       float64 `json:"account_err_rate"`
	SimulatorStartNum    int     `json:"simulator_start_num"`
	CreateDate           string  `json:"create_date"`
	NewComplete          int     `json:"new_complete"`
	RetainedComplete     int     `json:"retained_complete"`
	NewDeviceIdErr       int     `json:"new_device_id_err"`
	NewDeviceIdRate      float64 `json:"new_device_id_rate"`
	RetainedDeviceIdErr  int     `json:"retained_device_id_err"`
	RetainedDeviceIdRate float64 `json:"retained_device_id_rate"`
}
