添加项目文件。
This commit is contained in:
57
MoviconWebApi/Entities/DeviceAlarm.cs
Normal file
57
MoviconWebApi/Entities/DeviceAlarm.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
|
||||
namespace MoviconWebApi.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备报警
|
||||
/// </summary>
|
||||
[Table(Name = "DeviceAlarm")]
|
||||
public class DeviceAlarm
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键ID
|
||||
/// </summary>
|
||||
[Column(IsPrimary = true, IsIdentity = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 设备码
|
||||
/// </summary>
|
||||
[Column(Name = "DeviceCode", StringLength = 100, IsNullable = true)]
|
||||
public string? DeviceCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备名称
|
||||
/// </summary>
|
||||
[Column(Name = "DeviceName", StringLength = 100, IsNullable = true)]
|
||||
public string? DeviceName { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 设备状态
|
||||
/// </summary>
|
||||
[Column(Name = "DeviceState", IsNullable = true)]
|
||||
public int? DeviceState { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 报警信息
|
||||
/// </summary>
|
||||
[Column(Name = "AlarmMessage", StringLength = 180, IsNullable = true)]
|
||||
public string? AlarmMessage { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 开始时间
|
||||
/// </summary>
|
||||
[Column(CanUpdate = false)]
|
||||
public DateTime StartTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束时间
|
||||
/// </summary>
|
||||
[Column(CanUpdate = false)]
|
||||
public DateTime EndTime { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user