Files
PF3-fork/PyroFetes/Models/Price.cs
2025-10-02 14:43:34 +02:00

17 lines
464 B
C#

using System.ComponentModel.DataAnnotations;
using API.Class;
using Microsoft.EntityFrameworkCore;
namespace API.Models;
[PrimaryKey(nameof(SupplierId), nameof(ProductId))]
public class Price
{
[Required] public decimal Label { get; set; }
[Required] public int SupplierId { get; set; }
[Required] public Supplier Supplier { get; set; }
[Required] public int ProductId { get; set; }
[Required] public Product Product { get; set; }
}