This commit is contained in:
Adam 2024-01-12 20:45:26 +01:00
commit 7a68be09fa
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AyCode.Interfaces.Entities;
using AyCode.Interfaces.TimeStampInfo;
namespace TIAM.Entities.Drivers
{
public enum CarMotorType : byte
{
Gas = 5,
Diesel = 10,
Electric = 15,
}
public class Car : IEntityGuid, ITimeStampModified
{
public Guid Id { get; set; }
public string LicencePlate { get; set; }
public string Color { get; set; }
public string Manufacture{ get; set; }
public string Model { get; set; }
public int YearOfMake { get; set; }
public int SeetNumber { get; set; }
public CarMotorType CarMotorType { get; set; }
public DateTime Modified { get; set; }
public DateTime Created { get; set; }
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TIAM.Entities.Drivers;
namespace TIAM.Models.Drivers
{
public class DriverModel
{
public List<Car> Cars { get; set; }
}
}