package models

import (
	"time"

	"github.com/google/uuid"
)

// AIAnalysisReport AI监控分析报表
type AIAnalysisReport struct {
	ID          uuid.UUID `gorm:"type:uuid;primary_key;default:gen_random_uuid()" json:"id"`
	ReportType  string    `gorm:"type:varchar(50)" json:"report_type"` // 例如: ALARM_ANALYSIS
	Title       string    `gorm:"type:varchar(200)" json:"title"`
	Content     string    `gorm:"type:text" json:"content"` // Markdown 格式的内容
	CreatedAt   time.Time `gorm:"autoCreateTime" json:"created_at"`
	Status      string    `gorm:"type:varchar(20)" json:"status"` // GENERATING, COMPLETED, FAILED
	AlertCount  int       `gorm:"type:int" json:"alert_count"`    // 触发时的告警数量
}
