Files
backend/OtaFleet.Api/Data/Entities/Vehicle.cs

22 lines
547 B
C#
Raw Normal View History

2025-12-11 21:38:33 +01:00
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; }
}