Files
2026-05-15 23:22:48 +08:00

90 lines
2.6 KiB
C#
Raw Permalink 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.
/*
*代码由框架生成,任何更改都可能导致被代码生成器覆盖
*如果数据库字段发生变化请在代码生器重新生成此Model
*/
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using VolPro.Entity.SystemModels;
namespace VolPro.Entity.DomainModels
{
[Entity(TableCnName = "无人机信息",TableName = "warehouse_plane",DetailTable = new Type[] { typeof(warehouse_planeflypoint)},DetailTableCnName = "航点",DBServer = "ServiceDbContext")]
public partial class warehouse_plane:ServiceEntity
{
/// <summary>
///无人机ID
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
[Key]
[Display(Name ="无人机ID")]
[Column(TypeName="int")]
[Editable(true)]
[Required(AllowEmptyStrings=false)]
public int PlaneId { get; set; }
/// <summary>
///无人机名称
/// </summary>
[Display(Name ="无人机名称")]
[MaxLength(255)]
[Column(TypeName="nvarchar(255)")]
[Editable(true)]
public string PlaneName { get; set; }
/// <summary>
///无人机品牌
/// </summary>
[Display(Name ="无人机品牌")]
[MaxLength(255)]
[Column(TypeName="nvarchar(255)")]
[Editable(true)]
public string PlaneBrand { get; set; }
/// <summary>
///无人机型号
/// </summary>
[Display(Name ="无人机型号")]
[MaxLength(255)]
[Column(TypeName="nvarchar(255)")]
[Editable(true)]
public string PlaneModel { get; set; }
/// <summary>
///无人机状态
/// </summary>
[Display(Name ="无人机状态")]
[MaxLength(255)]
[Column(TypeName="nvarchar(255)")]
[Editable(true)]
public string PlaneStatus { get; set; }
/// <summary>
///巡航高度
/// </summary>
[Display(Name ="巡航高度")]
[Column(TypeName="int")]
[Editable(true)]
public int? FlyHight { get; set; }
/// <summary>
///电量(%
/// </summary>
[Display(Name ="电量(%")]
[Column(TypeName="int")]
[Editable(true)]
public int? Battery { get; set; }
[Display(Name ="航点")]
[ForeignKey("PlaneId")][Navigate(NavigateType.OneToMany,nameof(PlaneId),nameof(PlaneId))]
public List<warehouse_planeflypoint> warehouse_planeflypoint { get; set; }
}
}