49 lines
1.3 KiB
C#
49 lines
1.3 KiB
C#
using SJZY.Track.Domain.Enums;
|
|
|
|
namespace SJZY.Track.Domain.Aggregates.ForewarningAggregate;
|
|
|
|
[SugarTable("t_warning_notify")]
|
|
public class WarningNotifyEntity : IFullAuditedBasicEntitys, IEntity
|
|
{
|
|
/// <summary>
|
|
/// 自增主键
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 预警id
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "WarningId")]
|
|
public int WarningId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 起始轨迹状态id
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "StartTrackStatusId", IsNullable = false)]
|
|
public int StartTrackStatusId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 终止轨迹状态id
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "EndTrackStatusId", IsNullable = false)]
|
|
public int EndTrackStatusId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 通知方式
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "NotifyMode")]
|
|
public NotifyMode NotifyMode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 通知模板
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "NotifyTemplate", Length = 256)]
|
|
public string NotifyTemplate { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// 通知人
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "NotifyUserId")]
|
|
public int NotifyUserId { get; set; }
|
|
} |