Refactor code structure for improved readability and maintainability
This commit is contained in:
40
Models/DeploymentJobStepModel.cs
Normal file
40
Models/DeploymentJobStepModel.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Models
|
||||
{
|
||||
public class QueueJobStepModel : BaseModel
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public Guid QueueJobId { get; set; }
|
||||
|
||||
[Column(Order = 2)]
|
||||
public Guid? DependsOnQueueJobStepId { get; set; }
|
||||
|
||||
[Column(Order = 3)]
|
||||
public int SortOrder { get; set; }
|
||||
|
||||
[Column(Order = 4)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Column(Order = 5)]
|
||||
public string StepType { get; set; } = QueueJobStepType.Provision;
|
||||
|
||||
[Column(Order = 6)]
|
||||
public string Status { get; set; } = QueueJobStatus.Pending;
|
||||
|
||||
[Column(Order = 7)]
|
||||
public string? MetadataJson { get; set; }
|
||||
|
||||
[Column(Order = 8)]
|
||||
public DateTime? ApprovedAt { get; set; }
|
||||
|
||||
[Column(Order = 9)]
|
||||
public string? ApprovedBy { get; set; }
|
||||
|
||||
[Column(Order = 10)]
|
||||
public string? ApprovalComment { get; set; }
|
||||
|
||||
public QueueJobModel QueueJob { get; set; }
|
||||
public QueueJobStepModel? DependsOnQueueJobStep { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user