using System; using System.ComponentModel.DataAnnotations; using LittleShop.Enums; namespace LittleShop.Models; public class BotMetric { public Guid Id { get; set; } [Required] public Guid BotId { get; set; } public MetricType MetricType { get; set; } public decimal Value { get; set; } public string Metadata { get; set; } = "{}"; // JSON storage for additional data public DateTime RecordedAt { get; set; } [StringLength(100)] public string Category { get; set; } = string.Empty; [StringLength(500)] public string Description { get; set; } = string.Empty; // Navigation property public virtual Bot Bot { get; set; } = null!; }