using System;
using SQLite;

namespace CounterDrone.Core.Models
{
    /// <summary>航路点</summary>
    [Table("Waypoint")]
    public class Waypoint
    {
        [PrimaryKey]
        public string Id { get; set; } = Guid.NewGuid().ToString();

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

        /// <summary>关联的编队 ID（多编队支持）</summary>
        public string GroupId { get; set; } = string.Empty;

        [NotNull]
        public int OrderIndex { get; set; }

        public double PosX { get; set; }
        public double PosY { get; set; }
        public double PosZ { get; set; }

        public double Altitude { get; set; }

        public double Speed { get; set; }
    }
}
