using Data.SeaHavenIndustries.Enums; namespace Data.SeaHavenIndustries { public class CompletionDocTemplate : FullAuditEntity { public const int ExtraSafetyNoteMaxLength = 2000; public string Name { get; set; } = ""; public string ServiceKey { get; set; } = ""; public WorkOrderType? WorkOrderType { get; set; } public string TemplateUrl { get; set; } = ""; public bool IsActive { get; set; } = true; // At most one template-specific note, printed after the standard // safety bullets every generated document carries. public string? ExtraSafetyNote { get; set; } public virtual ICollection Procedures { get; set; } = new List(); } // Ordered procedure step of a completion document template. SortOrder is the // position the author gave it; documents print procedures in that order. public class CompletionDocTemplateProcedure { public const int NameMaxLength = 200; public int Id { get; set; } public int CompletionDocTemplateId { get; set; } public virtual CompletionDocTemplate? CompletionDocTemplate { get; set; } public int SortOrder { get; set; } public string Name { get; set; } = ""; public string Description { get; set; } = ""; } }