You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.2KB

  1. using System.ComponentModel.DataAnnotations;
  2. namespace Campaign_Tracker.Server.Seed.Models;
  3. public class EscalationRule
  4. {
  5. public int Id { get; set; }
  6. [Required]
  7. [StringLength(160)]
  8. public string SeedKey { get; set; } = string.Empty;
  9. [Required]
  10. [StringLength(100)]
  11. public string Name { get; set; } = string.Empty;
  12. [StringLength(500)]
  13. public string Description { get; set; } = string.Empty;
  14. [Required]
  15. [StringLength(100)]
  16. public string Scenario { get; set; } = string.Empty;
  17. [Required]
  18. [StringLength(200)]
  19. public string TriggerCondition { get; set; } = string.Empty;
  20. [Required]
  21. [StringLength(200)]
  22. public string Action { get; set; } = string.Empty;
  23. [Required]
  24. [StringLength(100)]
  25. public string MilestoneBasis { get; set; } = string.Empty;
  26. public TimeSpan AlertWindow { get; set; }
  27. [Range(1, int.MaxValue)]
  28. public int Priority { get; set; } = 1;
  29. public SeedRecordSource Source { get; set; } = SeedRecordSource.SystemSeed;
  30. public bool IsActive { get; set; } = true;
  31. public DateTimeOffset CreatedAt { get; set; }
  32. public DateTimeOffset UpdatedAt { get; set; }
  33. }

Powered by TurnKey Linux.