Correcting errors on Entities

This commit is contained in:
2025-10-03 14:35:31 +01:00
parent 9da75d53b9
commit 4cb501fe04
14 changed files with 40 additions and 77 deletions

View File

@@ -1,15 +1,15 @@
using System.ComponentModel.DataAnnotations;
using API.Class;
using API.Models;
namespace API.Models;
namespace PyroFetes.Models;
public class WarehouseProduct
{
[Key] public int Quantity { get; set; }
[Required] public int ProductId { get; set; }
[Required] public Product Product { get; set; }
[Required] public Product? Product { get; set; }
[Required] public int WarehouseId { get; set; }
[Required] public Warehouse Warehouse { get; set; }
[Required] public Warehouse? Warehouse { get; set; }
}