using AyCode.Interfaces.Entities;
using AyCode.Interfaces.TimeStampInfo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

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<CarModel> 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;
        }

    }
}
