15 lines
395 B
C#
15 lines
395 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using 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 int WarehouseId { get; set; }
|
|
[Required] public Warehouse? Warehouse { get; set; }
|
|
} |