操控平台后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.1 KiB

using System.ComponentModel.DataAnnotations;
using Admin.Bodk.Device.Entities.equipment;
using Admin.NET.Core;
using Nest;
using SqlSugar;
using Yitter.IdGenerator;
namespace Admin.Bodk.Device.Entities.TaskChain;
/// <summary>
/// 任务链
/// </summary>
[SugarTable(null, "任务链列表")]
[SysTable]
public class TaskChain: EntityTenant, IRepositorySettings
{
// 是否主键,是否自增
[SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = false)]
public long Id { get; set; } = YitIdHelper.NextId();
[SugarColumn(ColumnDescription = "任务链名称", Length = 32)]
[Required, MaxLength(32)]
public virtual string Name { get; set; }
[SugarColumn(ColumnDescription = "设备ID")]
public virtual long EquipmentId { get; set; }
[SugarColumn(ColumnDescription = "区域ID",IsNullable = true)]
public virtual string PositionId { get; set; }
[SugarColumn(ColumnDescription = "任务链描述",IsNullable = true)]
public string Remark { get; set; }
// 导航属性
[SugarColumn(IsIgnore = true)]
public virtual Device.Device Device { get; set; }
}