using Lada.Framework.Data.Enums;
using Lada.Framework.DTO;
using Lada.Framework.Infrastructures.Helpers;
using System.ComponentModel.DataAnnotations;

namespace Ladaer.BackEnd.Infrastructures.DTO.Items.Trucks
{
    public class TruckSpecificationItem : BaseItem<int>
    {
        public int TruckId { get; set; }
        [MaxLength(2048)]
        public string Note { get; set; }
        public int LifeCycleByDay { get; set; }
        public int LifeCycleByKm { get; set; }
        public decimal UnitPrice { get; set; }
        public float Quantity { get; set; }
        public Units TruckUnit { get; set; }
        public int TruckAttributeId { get; set; }
        public string TruckUnitStr => TruckUnit.GetDescription();
    }
}
