Remove processingStatus
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Musify.Domain.Entities
|
||||
{
|
||||
#pragma warning disable CS8618
|
||||
[Table("ProcessExecution")]
|
||||
public class ProcessExecution
|
||||
{
|
||||
[Key]
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
|
||||
public Guid? CorrelationId { get; set; }
|
||||
|
||||
public Guid? ConversationId { get; set; }
|
||||
|
||||
public Guid? MessageId { get; set; }
|
||||
|
||||
[Required]
|
||||
[MaxLength(256)]
|
||||
public required string ProcessName { get; set; }
|
||||
|
||||
[Required]
|
||||
public ProcessExecutionStatus Status { get; set; } = ProcessExecutionStatus.Running;
|
||||
|
||||
[Required]
|
||||
public DateTime StartedDateTime { get; set; } = DateTime.UtcNow;
|
||||
|
||||
public DateTime? FinishedDateTime { get; set; }
|
||||
|
||||
[MaxLength(2048)]
|
||||
public string? ErrorMessage { get; set; }
|
||||
|
||||
public ICollection<ProcessStepExecution> Steps { get; set; } = new List<ProcessStepExecution>();
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
namespace Musify.Domain.Entities
|
||||
{
|
||||
public enum ProcessExecutionStatus
|
||||
{
|
||||
Running,
|
||||
Succeeded,
|
||||
Failed,
|
||||
Compensated
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
namespace Musify.Domain.Entities
|
||||
{
|
||||
public enum ProcessStepComponentType
|
||||
{
|
||||
Consumer,
|
||||
Activity
|
||||
}
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Musify.Domain.Entities
|
||||
{
|
||||
#pragma warning disable CS8618
|
||||
[Table("ProcessStepExecution")]
|
||||
public class ProcessStepExecution
|
||||
{
|
||||
[Key]
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
|
||||
[Required]
|
||||
public Guid ProcessExecutionId { get; set; }
|
||||
|
||||
[Required]
|
||||
[MaxLength(256)]
|
||||
public required string StepName { get; set; }
|
||||
|
||||
[Required]
|
||||
public ProcessStepComponentType ComponentType { get; set; }
|
||||
|
||||
[Required]
|
||||
public ProcessExecutionStatus Status { get; set; } = ProcessExecutionStatus.Running;
|
||||
|
||||
[Required]
|
||||
public int Attempt { get; set; }
|
||||
|
||||
[Required]
|
||||
public DateTime StartedDateTime { get; set; } = DateTime.UtcNow;
|
||||
|
||||
public DateTime? FinishedDateTime { get; set; }
|
||||
|
||||
[MaxLength(2048)]
|
||||
public string? ErrorMessage { get; set; }
|
||||
|
||||
[ForeignKey(nameof(ProcessExecutionId)) ]
|
||||
public ProcessExecution ProcessExecution { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user