Refactor code structure for improved readability and maintainability
This commit is contained in:
30
Models/DeploymentJobTargetModel.cs
Normal file
30
Models/DeploymentJobTargetModel.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Models
|
||||
{
|
||||
public class QueueJobTargetModel : BaseModel
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public Guid QueueJobId { get; set; }
|
||||
|
||||
[Column(Order = 2)]
|
||||
public Guid VirtualMachineId { get; set; }
|
||||
|
||||
[Column(Order = 3)]
|
||||
public Guid DeploymentGroupId { get; set; }
|
||||
|
||||
[Column(Order = 4)]
|
||||
public Guid TemplateId { get; set; }
|
||||
|
||||
[Column(Order = 5)]
|
||||
public string Status { get; set; } = QueueJobStatus.Pending;
|
||||
|
||||
[Column(Order = 6)]
|
||||
public int Attempts { get; set; }
|
||||
|
||||
[Column(Order = 7)]
|
||||
public string? ErrorMessage { get; set; }
|
||||
|
||||
public QueueJobModel QueueJob { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user