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; }
|
||||
}
|
||||
14
Src/Dlhis.Entity/Dormitory/Entity/DormitoryRoomEntity.cs
Normal file
14
Src/Dlhis.Entity/Dormitory/Entity/DormitoryRoomEntity.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Dlhis.Entity.Dormitory.Entity;
|
||||
|
||||
[SugarTable(TableName = "DormitoryRoom")]
|
||||
public class DormitoryRoomEntity : SugarBaseEntity
|
||||
{
|
||||
public Guid EFenceCode { get; set; }
|
||||
public string RoomId { get; set; }
|
||||
public string RoomNo { get; set; }
|
||||
public string HotelId { get; set; }
|
||||
public bool PowerSwitch { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using Kurisu.AspNetCore.DataAccess.Entity;
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Dlhis.Entity.Dormitory.Entity;
|
||||
|
||||
[SugarTable(TableName = "DormitoryRoomPerson")]
|
||||
public class DormitoryRoomPersonEntity : SugarBaseEntity, ISoftDeleted
|
||||
{
|
||||
public string RoomId { get; set; }
|
||||
public string UserCode { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public bool? In { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user