TripPollOption.cs
429 bytes
| 1 | using System.ComponentModel.DataAnnotations; |
|---|---|
| 2 | using SplitApp.Shared.Kernel.Domain; |
| 3 | |
| 4 | namespace SplitApp.Modules.Trips.Domain.Entities; |
| 5 | |
| 6 | public class TripPollOption : BaseEntity |
| 7 | { |
| 8 | public Guid PollId { get; set; } |
| 9 | public TripPoll? Poll { get; set; } |
| 10 | |
| 11 | [MaxLength(300)] |
| 12 | public string Text { get; set; } = default!; |
| 13 | |
| 14 | public int DisplayOrder { get; set; } |
| 15 | |
| 16 | public ICollection<TripPollVote>? Votes { get; set; } |
| 17 | } |
| 18 | |