| @@ -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; | |||||
| } | |||||
| @@ -0,0 +1,23 @@ | |||||
| using System.ComponentModel.DataAnnotations; | |||||
| namespace Campaign_Tracker.Server.Seed.Models; | |||||
| public class ReferenceValue | |||||
| { | |||||
| public int Id { get; set; } | |||||
| [Required] | |||||
| [StringLength(100)] | |||||
| public string Name { get; set; } = string.Empty; | |||||
| [StringLength(500)] | |||||
| public string Description { get; set; } = string.Empty; | |||||
| public string Value { get; set; } = string.Empty; | |||||
| public bool IsActive { get; set; } = true; | |||||
| public DateTime CreatedAt { get; set; } = DateTime.UtcNow; | |||||
| public DateTime UpdatedAt { get; set; } = DateTime.UtcNow; | |||||
| } | |||||
| @@ -0,0 +1,27 @@ | |||||
| using System.ComponentModel.DataAnnotations; | |||||
| namespace Campaign_Tracker.Server.Seed.Models; | |||||
| public class RequiredFieldRule | |||||
| { | |||||
| 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 FieldPath { get; set; } = string.Empty; | |||||
| public bool IsRequired { get; set; } = true; | |||||
| public bool IsActive { get; set; } = true; | |||||
| public DateTime CreatedAt { get; set; } = DateTime.UtcNow; | |||||
| public DateTime UpdatedAt { get; set; } = DateTime.UtcNow; | |||||
| } | |||||
Powered by TurnKey Linux.