summaryrefslogtreecommitdiff
path: root/Forms/PrizeForm.cs
blob: 00666f5afc28a89b1807bd5baf0ca2d2cd181b52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System.ComponentModel.DataAnnotations;
using BackendPIA.Validations;

namespace BackendPIA.Forms {
    public class PrizeForm {
        [Required]
        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; }
    }
}