using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace  Back.Data.Models
{
    public class CODItem
    {
        public int ID { get; set; }
        public int UnitID { get; set; }
        [MaxLength(13)]
        public string? ItemTaxID { get; set; }
        public int CompanyID { get; set; }
        public string Title { get; set; }
        public int TaxRate { get; set; }
        public bool IsDeleted { get; set; }


        #region Navigation
        [ForeignKey("UnitID")]
        public virtual CODUnit CODUnit { get; set; }
        [ForeignKey("CompanyID")]
        public virtual Company Company { get; set; }
        public virtual ICollection<InvoiceItem> invoiceDetails { get; set; }
        #endregion
    }
}
