|
|
|
@@ -0,0 +1,31 @@ |
|
|
|
using System.ComponentModel.DataAnnotations; |
|
|
|
|
|
|
|
namespace Campaign_Tracker.Server.Seed.Models; |
|
|
|
|
|
|
|
public class EscalationRule |
|
|
|
{ |
|
|
|
public int Id { get; set; } |
|
|
|
|
|
|
|
[Required] |
|
|
|
[StringLength(100)] |
|
|
|
public string Name { get; set; } = string.Empty; |
|
|
|
|
|
|
|
[StringLength(500)] |
|
|
|
public string Description { get; set; } = string.Empty; |
|
|
|
|
|
|
|
[Required] |
|
|
|
[StringLength(200)] |
|
|
|
public string TriggerCondition { get; set; } = string.Empty; |
|
|
|
|
|
|
|
[Required] |
|
|
|
[StringLength(200)] |
|
|
|
public string Action { get; set; } = string.Empty; |
|
|
|
|
|
|
|
public int Priority { get; set; } = 1; |
|
|
|
|
|
|
|
public bool IsActive { get; set; } = true; |
|
|
|
|
|
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow; |
|
|
|
|
|
|
|
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow; |
|
|
|
} |