56 lines
2.2 KiB
C#
56 lines
2.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using LCU.Library.Internal.DocumentIngestorModels.Enums;
|
|
|
|
namespace LCU.Library.Internal.DocumentIngestorModels.Entities
|
|
{
|
|
public class DocumentProcessingInfo
|
|
{
|
|
public DocumentProcessingInfo()
|
|
{
|
|
}
|
|
|
|
public DocumentProcessingInfo(Guid ingestorRunInfoId,
|
|
DateTime createdDate,
|
|
string documentValuePayload,
|
|
ProcessStatusTypes statusType,
|
|
string documentFileName,
|
|
string documentType,
|
|
string documentBusinessName,
|
|
bool entityUnknown = false)
|
|
{
|
|
IngestorRunInfoId = ingestorRunInfoId;
|
|
CreatedDate = createdDate;
|
|
DocumentValuePayload = documentValuePayload;
|
|
StatusType = statusType;
|
|
DocumentFileName = documentFileName;
|
|
ProcessCount = 0;
|
|
DocumentType = documentType;
|
|
DocumentBusinessName = documentBusinessName;
|
|
EntityUnknown = entityUnknown;
|
|
}
|
|
|
|
public int DocumentProcessingInfoId { get; set; }
|
|
public Guid? DocumentId { get; set; }
|
|
public Guid IngestorRunInfoId { get; set; }
|
|
public DateTime CreatedDate { get; set; }
|
|
public string DocumentValuePayload { get; set; }
|
|
public ProcessStatusTypes StatusType { get; set; }
|
|
public string DocumentFileName { get; set; }
|
|
public int ProcessCount { get; set; }
|
|
public string DocumentType { get; set; }
|
|
public string DocumentBusinessName { get; set; }
|
|
public bool EntityUnknown { get; set; }
|
|
|
|
[ForeignKey("IngestorRunInfoId")]
|
|
public IngestorRunInfo IngestorRunInfo { get; set; }
|
|
|
|
[ForeignKey("DocumentProcessingInfoId")]
|
|
public ICollection<ProcessingLog> ProcessingLogs { get; set; }
|
|
|
|
[ForeignKey("DocumentProcessingInfoId")]
|
|
public ICollection<MemberNotificationInfo>? MemberNotificationInfos { get; set; }
|
|
}
|
|
}
|