littleshop/LittleShop/Models/BotMetric.cs
2025-08-27 18:02:39 +01:00

30 lines
722 B
C#

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!;
}