forked from sanchezvem/PyroFetes
15 lines
394 B
C#
15 lines
394 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace API.Models;
|
|
|
|
[PrimaryKey(nameof(ProductId), nameof(EffectId))]
|
|
public class ProductEffect
|
|
{
|
|
[Required] public Product? Product { get; set; }
|
|
[Required] public int ProductId { get; set; }
|
|
|
|
[Required] public Effect? Effect { get; set; }
|
|
[Required] public int EffectId { get; set; }
|
|
|
|
} |