Initial Commit
This commit is contained in:
21
OtaFleet.Api/Data/Entities/Deployment.cs
Normal file
21
OtaFleet.Api/Data/Entities/Deployment.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace OtaFleet.Api.Data.Entities;
|
||||
|
||||
public class Deployment
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public int UpdateId { get; set; }
|
||||
|
||||
[ForeignKey("UpdateId")]
|
||||
public FirmwareUpdate Update { get; set; } = null!;
|
||||
|
||||
public string? TargetVin { get; set; }
|
||||
|
||||
public int? TargetGroupId { get; set; }
|
||||
|
||||
public string Status { get; set; } = "Pending"; // Pending, InProgress, Completed, Failed
|
||||
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
Reference in New Issue
Block a user