TripWishlistItem.cs
1,083 bytes
| 1 | using System.ComponentModel.DataAnnotations; |
|---|---|
| 2 | using System.ComponentModel.DataAnnotations.Schema; |
| 3 | using SplitApp.Modules.Trips.Domain.Enums; |
| 4 | using SplitApp.Shared.Contracts.Users; |
| 5 | using SplitApp.Shared.Kernel.Domain; |
| 6 | |
| 7 | namespace SplitApp.Modules.Trips.Domain.Entities; |
| 8 | |
| 9 | public class TripWishlistItem : BaseEntity |
| 10 | { |
| 11 | public Guid TripId { get; set; } |
| 12 | public Trip? Trip { get; set; } |
| 13 | |
| 14 | public Guid AddedByUserId { get; set; } |
| 15 | [NotMapped] public UserDto? AddedByUser { get; set; } |
| 16 | |
| 17 | [MaxLength(200)] |
| 18 | public string Title { get; set; } = default!; |
| 19 | |
| 20 | public string? Description { get; set; } |
| 21 | |
| 22 | public EWishlistCategory Category { get; set; } |
| 23 | |
| 24 | public EWishlistPriority Priority { get; set; } |
| 25 | |
| 26 | public decimal? EstimatedCost { get; set; } |
| 27 | |
| 28 | [MaxLength(500)] |
| 29 | public string? Url { get; set; } |
| 30 | |
| 31 | [MaxLength(300)] |
| 32 | public string? Location { get; set; } |
| 33 | |
| 34 | public bool IsCompleted { get; set; } |
| 35 | public DateTime? CompletedAt { get; set; } |
| 36 | |
| 37 | public int DisplayOrder { get; set; } |
| 38 | |
| 39 | public ICollection<TripWishlistVote>? Votes { get; set; } |
| 40 | } |
| 41 | |