Initial Commit
This commit is contained in:
21
OtaFleet.Api/Data/Entities/Vehicle.cs
Normal file
21
OtaFleet.Api/Data/Entities/Vehicle.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user