Files
PF3-fork/PyroFetes/Models/ProductEffect.cs
2025-10-02 14:30:54 +02:00

15 lines
372 B
C#

using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;
namespace API.Models;
[PrimaryKey(nameof(ProductId), nameof(EffectId))]
public class ProductEffect
{
public Product? Product { get; set; }
[Required] public int ProductId { get; set; }
public Effect? Effect { get; set; }
[Required] public int EffectId { get; set; }
}