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