using System;
using SQLite;

namespace CounterDrone.Core.Models
{
    /// <summary>仿真报告</summary>
    [Table("SimulationReport")]
    public class SimulationReport
    {
        [PrimaryKey]
        public string Id { get; set; } = Guid.NewGuid().ToString();

        [Indexed]
        public string ScenarioId { get; set; } = string.Empty;

        public string ScenarioName { get; set; } = string.Empty;

        public string ScenarioNumber { get; set; } = string.Empty;

        public string CompletedAt { get; set; } = string.Empty;

        public int DroneCount { get; set; }

        public int UnitCount { get; set; }

        public int InterceptResult { get; set; }

        /// <summary>Markdown 文本（用于快速展示）</summary>
        public string Content { get; set; } = string.Empty;

        /// <summary>结构化报告数据 JSON（用于 PDF 等格式重新渲染）</summary>
        public string? ReportDataJson { get; set; }
    }
}
