namespace IWS5.Core.Models.Request;

public class AddDocumentRequest
{
    public int ProcessId { get; set; }

    //IT IS NOT WorkItemId, it is workItemReferenceId!!!
    /*RuleFor(x => x.WorkItemId)
            .NotNull().WithMessage("Work item reference ID is required.")
            .GreaterThan(0).WithMessage("Work item reference ID is required and must be greater than 0.")
            .Must(workitemReferenceId =>workItemReferenceRepository.AnyAsync(w => w.WorkItemReferenceId == workitemReferenceId).Result)
            .WithMessage("A workItemId should be existing in the database.");
    */
    public int WorkItemId { get; set; }
    public int DocumentTemplateId { get; set; }
    public string DocumentTemplateName { get; set; }
    public string DocumentName { get; set; }
    public byte[] DocumentFile { get; set; }
    public int? DisplayOrder { get; set; }
    public List<UpdateDocumentFieldRequest> Fields { get; set; }
}
