using Kurisu.AspNetCore.DataAccess.Entity; using Kurisu.AspNetCore.DataAccess.SqlSugar; using SqlSugar; namespace Dlhis.Entity.Device.Entities; /// /// 设备与电子围栏关系表 /// [SugarTable("ElectronicFenceDeviceRelationEntity")] [SugarIndex("idx_ElectronicFenceDeviceRelation_DeviceCode_EFenceCode", new[] { nameof(DeviceCode), nameof(EFenceCode) }, new[] { OrderByType.Asc, OrderByType.Asc }, false)] public class EFenceDeviceRelationEntity : SugarBaseEntity, ISoftDeleted { /// /// 设备ID /// [SugarColumn(IsNullable = false)] public Guid DeviceCode { get; set; } /// /// 电子围栏ID /// [SugarColumn(IsNullable = false)] public Guid EFenceCode { get; set; } public bool IsDeleted { get; set; } }