BudgetCategory.cs
770 bytes
| 1 | using System.ComponentModel.DataAnnotations; |
|---|---|
| 2 | using System.ComponentModel.DataAnnotations.Schema; |
| 3 | using SplitApp.Modules.Expenses.Domain.Entities; |
| 4 | using SplitApp.Shared.Kernel.Domain; |
| 5 | using SplitApp.Shared.Kernel.Localization; |
| 6 | |
| 7 | namespace SplitApp.Modules.Trips.Domain.Entities; |
| 8 | |
| 9 | public class BudgetCategory : BaseEntity |
| 10 | { |
| 11 | public Guid TripId { get; set; } |
| 12 | public Trip? Trip { get; set; } |
| 13 | |
| 14 | public LangStr Name { get; set; } = new(); |
| 15 | |
| 16 | [MaxLength(100)] |
| 17 | public string? IconName { get; set; } |
| 18 | |
| 19 | public decimal? PlannedAmount { get; set; } |
| 20 | |
| 21 | public int DisplayOrder { get; set; } |
| 22 | |
| 23 | /// <summary>Cross-module nav — populated by WebApp facade, never by EF (NotMapped).</summary> |
| 24 | [NotMapped] public ICollection<Expense>? Expenses { get; set; } |
| 25 | } |
| 26 | |