using System.ComponentModel.DataAnnotations;

namespace Domain.Entities
{
    public class EProduct
    {
        public int Id { get; set; }
        public int? BusinessunitsId { get; set; }
        [Required(ErrorMessage = "Debe ingresar un nombre.")]
        public string? Name { get; set; }
        [Required(ErrorMessage = "Debe ingresar una descripcion.")]
        public string Description { get; set; } = null!;

        public int? Categoryid { get; set; }

        public string? Origin { get; set; }

        public decimal Baseprice { get; set; }

        public string Currency { get; set; } = null!;

        public bool Isactive { get; set; }

        public virtual EBusinessUnit? Businessunits { get; set; }

        public virtual EProductCategory? Category { get; set; }
    }

}
