blob: ebd8e8b78aeb6b6f811a4fda0b287412d145b617 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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; }
}
}
|