/*
*代码由框架生成,任何更改都可能导致被代码生成器覆盖
*如果数据库字段发生变化,请在代码生器重新生成此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
{
///
///无人机ID
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
[Key]
[Display(Name ="无人机ID")]
[Column(TypeName="int")]
[Editable(true)]
[Required(AllowEmptyStrings=false)]
public int PlaneId { get; set; }
///
///无人机名称
///
[Display(Name ="无人机名称")]
[MaxLength(255)]
[Column(TypeName="nvarchar(255)")]
[Editable(true)]
public string PlaneName { get; set; }
///
///无人机品牌
///
[Display(Name ="无人机品牌")]
[MaxLength(255)]
[Column(TypeName="nvarchar(255)")]
[Editable(true)]
public string PlaneBrand { get; set; }
///
///无人机型号
///
[Display(Name ="无人机型号")]
[MaxLength(255)]
[Column(TypeName="nvarchar(255)")]
[Editable(true)]
public string PlaneModel { get; set; }
///
///无人机状态
///
[Display(Name ="无人机状态")]
[MaxLength(255)]
[Column(TypeName="nvarchar(255)")]
[Editable(true)]
public string PlaneStatus { get; set; }
///
///巡航高度
///
[Display(Name ="巡航高度")]
[Column(TypeName="int")]
[Editable(true)]
public int? FlyHight { get; set; }
///
///电量(%)
///
[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 { get; set; }
}
}