summaryrefslogtreecommitdiff
path: root/Forms/PrizeForm.cs
blob: bc955f8eab9e9c42f37dc54661e1570e88caf851 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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; }
        [Required]
        [UniqueTier]
        [Range(0, 53)]
        public int Tier { get; set; }
        [Required]
        public string? Category { get; set; }
    }
}