using Dlhis.Entity.Device.Enums;
using Kurisu.AspNetCore.DataAccess.SqlSugar;
using Mapster;
using SqlSugar;
using SqlSugar.DbConvert;
namespace Dlhis.Entity.Device.Entities;
///
/// 电子围栏
///
[SugarTable("ElectronicFence")]
public class EFenceEntity : SugarBaseEntity
{
[AdaptIgnore(MemberSide.Source)]
[SugarColumn(IsNullable = false)]
public Guid Code { get; set; }
///
/// 围栏名称
///
[SugarColumn(IsNullable = false)]
public string Name { get; set; }
///
/// 描述/备注
///
[SugarColumn(IsNullable = true, Length = 1000)]
public string Description { get; set; }
///
/// 部署方向
///
[SugarColumn(IsNullable = false, ColumnDataType = "varchar(20)", SqlParameterDbType = typeof(EnumToStringConvert))]
public DeviceDeployDirectionEnumType DirectionType { get; set; }
}