blob: a798bd61f3cb1e62ad6de97536a5ea68dda00db0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
using System.ComponentModel.DataAnnotations;
namespace BackendPIA.Models {
public class Raffle {
public long Id { get; set; }
[Required]
[StringLength(128)]
public string? Name { get; set; }
[Required]
[Range(1, 54, ErrorMessage = "Value for {0} must be between {1} and {2}.")]
public int Winners { get; set; }
public bool IsClosed { get; set; }
public ICollection<Ticket>? Tickets { get; set; }
public ICollection<Prize>? Prizes { get; set; }
}
}
|