package model

import "time"

type DiffDigest struct {
	Id                    int64 `gorm:"primaryKey;autoIncrement"`
	ClusterId             string
	ClusterAlias          string
	Day                   string
	Digest                string
	SlowQueryCount        int64
	SlowQueryAvgQueryTime float64
	SlowQueryAvgMem       float64
	TopSqlTotalCpu        float64
	TopSqlCount           float64
	Sql                   string    `gorm:"column:sql_text;type:text"`
	CreatedAt             time.Time `gorm:"<-:create"`
}
type TopSqlDiff struct {
	Id           int64 `gorm:"primaryKey;autoIncrement"`
	ClusterId    string
	ClusterAlias string
	Digest       string
	TotalCpuTime float64
	Count        int64
	AvgLatency   float64
	CreatedAt    time.Time `gorm:"<-:create"`
}
