22 lines
549 B
C#
22 lines
549 B
C#
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;
|
|
}
|