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;
using System.ComponentModel.DataAnnotations.Schema;
namespace OtaFleet.Api.Data.Entities;
public class Vehicle
{
[Key]
public string Vin { get; set; } = string.Empty;
public string Status { get; set; } = "Offline"; // Online, Offline, Updating
public string CurrentVersion { get; set; } = "1.0.0";
public DateTime LastHeartbeat { get; set; }
public int? GroupId { get; set; }
[ForeignKey("GroupId")]
public VehicleGroup? Group { get; set; }
}