feat 电子围栏数据配置
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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; }
|
||||
}
|
||||
28
Src/Dlhis.Entity/Device/Entities/EFenceEntity.cs
Normal file
28
Src/Dlhis.Entity/Device/Entities/EFenceEntity.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
||||
using Mapster;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Dlhis.Entity.Device.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 电子围栏
|
||||
/// </summary>
|
||||
[SugarTable("ElectronicFence")]
|
||||
public class EFenceEntity : SugarBaseEntity
|
||||
{
|
||||
[AdaptIgnore(MemberSide.Source)]
|
||||
[SugarColumn(IsNullable = false)]
|
||||
public Guid Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 围栏名称
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = false)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述/备注
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, Length = 1000)]
|
||||
public string Description { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user