using System;
using SQLite;

namespace CounterDrone.Core.Models
{
    /// <summary>步骤5：航路规划 — 多编队支持：每个(任务,编队)一条航路</summary>
    [Table("RoutePlan")]
    public class RoutePlan
    {
        [PrimaryKey]
        public string Id { get; set; } = Guid.NewGuid().ToString();

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

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

        public int FormationMode { get; set; } = (int)Models.FormationMode.Single;

        public double LateralSpacing { get; set; } = 50.0;

        /// <summary>正面架数（横向展开），null=全部横向（=Quantity）</summary>
        public int? LateralCount { get; set; }

        /// <summary>纵深架数（串列跟随），null=1（无纵深）</summary>
        public int? LongitudinalCount { get; set; }

        /// <summary>纵向串列间距 m</summary>
        public double LongitudinalSpacing { get; set; } = 50.0;

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