CounterDroneBackend/src/CounterDrone.Core/Models/ControlZone.cs

29 lines
715 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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; }
}
}