using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using PSTW_CentralSystem.Models;
namespace PSTW_CentralSystem.Areas.Inventory.Models
{
    public class ProductModel
    {
        [Key]
        public int ProductId { get; set; }
        public required string ProductName {  get; set; }
        public required string ProductShortName { get; set; }
        public required int ManufacturerId { get; set; }
        public required string Category { get; set; }
        public required string ModelNo { get; set; }
        public int? QuantityProduct { get; set; }
        public required string ImageProduct { get; set; }
        [ForeignKey("ManufacturerId")]
        public virtual ManufacturerModel? Manufacturer { get; set; }
        public virtual ICollection<ItemModel>? Items { get; set; } // Navigation property>
    }
}
