Initial Commit

This commit is contained in:
Denis Urs Rudolph
2025-12-11 21:38:33 +01:00
commit 3d4dec79a9
19 changed files with 1121 additions and 0 deletions

View 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;
}