PSTW_CentralizeSystem/Areas/Inventory/Models/ProductModel.cs
2024-11-26 16:26:56 +08:00

21 lines
748 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PSTW_CentralSystem.Areas.Inventory.Models
{
public class ProductModel
{
[Key]
public int ProductId { get; set; }
public required string ProductName { get; set; }
public required string Manufacturer { get; set; }
public required string Category { get; set; }
public required string ModelNo { get; set; }
public required int QuantityProduct { get; set; }
public required string ImageProduct { get; set; }
public required int CompanyId { get; set; }
[ForeignKey("CompanyId")]
public required virtual CompanyModel Company { get; set; }
}
}