profileShare

rasmusjy / splitapp-backend-modular-monolith

Read-only snapshot

No repository description.

main default branch 418 files Expires Sep 13, 2026, 9:06 AM
TripPoll.cs 727 bytes
1 using System.ComponentModel.DataAnnotations;
2 using System.ComponentModel.DataAnnotations.Schema;
3 using SplitApp.Modules.Users.Domain.Entities;
4 using SplitApp.Shared.Kernel.Domain;
5
6 namespace SplitApp.Modules.Trips.Domain.Entities;
7
8 public class TripPoll : BaseEntity
9 {
10 public Guid TripId { get; set; }
11 public Trip? Trip { get; set; }
12
13 public Guid CreatedByUserId { get; set; }
14 [NotMapped] public AppUser? CreatedByUser { get; set; }
15
16 [MaxLength(500)]
17 public string Question { get; set; } = default!;
18
19 public bool AllowMultipleVotes { get; set; }
20
21 public bool IsAnonymous { get; set; }
22
23 public DateTime? ClosedAt { get; set; }
24
25 public ICollection<TripPollOption>? Options { get; set; }
26 }
27