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