diff options
Diffstat (limited to 'Forms')
-rw-r--r-- | Forms/PrizeForm.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Forms/PrizeForm.cs b/Forms/PrizeForm.cs index 00666f5..bc955f8 100644 --- a/Forms/PrizeForm.cs +++ b/Forms/PrizeForm.cs @@ -1,9 +1,12 @@ using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; using BackendPIA.Validations; namespace BackendPIA.Forms { public class PrizeForm { [Required] + [ForeignKey("RaffleId")] + [IsNotClosed] public long RaffleId { get; set; } [Required] public string? Name { get; set; } |