using System;
using SQLite;

namespace CounterDrone.Core.Models
{
    /// <summary>管控区域 / 电子围栏</summary>
    [Table("ControlZone")]
    public class ControlZone
    {
        [PrimaryKey]
        public string Id { get; set; } = Guid.NewGuid().ToString();

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

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

        /// <summary>多边形顶点 JSON：[{"x":0,"y":0,"z":0},...]</summary>
        [NotNull]
        public string VerticesJson { get; set; } = "[]";

        public double MinAltitude { get; set; }

        public double MaxAltitude { get; set; }

        public int OrderIndex { get; set; }
    }
}
