39 lines
996 B
C#
39 lines
996 B
C#
using FreeSql.DataAnnotations;
|
|
|
|
namespace CapMachine.Model
|
|
{
|
|
/// <summary>
|
|
/// 报警配置
|
|
/// </summary>
|
|
[Table(Name = "ConfigAlarm")]
|
|
public class ConfigAlarm
|
|
{
|
|
/// <summary>
|
|
/// 主键
|
|
/// </summary>
|
|
[Column(IsPrimary = true, IsIdentity = true)]
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 序号
|
|
/// </summary>
|
|
[Column(Name = "IndexNo", IsNullable = false)]
|
|
public int IndexNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 快速设置仪表名称
|
|
/// </summary>
|
|
[Column(Name = "MeterName", IsNullable = true, StringLength = 30)]
|
|
public string MeterName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Alarm
|
|
/// </summary>
|
|
[Column(Name = "Alarm", IsNullable = true)]
|
|
public double Alarm { get; set; }
|
|
|
|
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
|
|
public DateTime CreateTime { get; set; }
|
|
}
|
|
}
|