using AyCode.Interfaces.Entities; using AyCode.Interfaces.TimeStampInfo; namespace TIAMWebApp.Shared.Application.Models { public class DriverModel : IEntityGuid, ITimeStampInfo { public Guid Id { get; set; } public Guid UserId { get; set; } public Guid ProductId { get; set; } public string Name { get; set; } public List Cars { get; set; } = new(); public DateTime Created { get; set; } public DateTime Modified { get; set; } public DriverModel() { } public DriverModel(Guid userId, Guid productId, string name) : this(Guid.NewGuid(), userId, productId, name) { } public DriverModel(Guid id, Guid userId, Guid productId, string name) { Id = id; UserId = userId; ProductId = productId; Name = name; } } }