using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Managing.Infrastructure.Databases.PostgreSql.Entities;

[Table("SpotlightOverviews")]
public class SpotlightOverviewEntity
{
    [Key]
    public int Id { get; set; }
    
    public Guid Identifier { get; set; }
    public DateTime DateTime { get; set; }
    public int ScenarioCount { get; set; }
    
    /// <summary>
    /// JSON column containing the complex nested spotlights data
    /// This stores the List<SpotlightDto> as JSON to avoid complex normalization
    /// </summary>
    [Column(TypeName = "jsonb")]
    public string SpotlightsJson { get; set; }
    
    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
    public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
} 