SplitPreset.cs
505 bytes
| 1 | using System.ComponentModel.DataAnnotations; |
|---|---|
| 2 | using App.Domain.Identity; |
| 3 | using Base.Domain; |
| 4 | |
| 5 | namespace App.Domain; |
| 6 | |
| 7 | public class SplitPreset : BaseEntity |
| 8 | { |
| 9 | public Guid TripId { get; set; } |
| 10 | public Trip? Trip { get; set; } |
| 11 | |
| 12 | [MaxLength(200)] |
| 13 | public string Name { get; set; } = default!; |
| 14 | |
| 15 | public ESplitMethod SplitMethod { get; set; } |
| 16 | |
| 17 | public Guid CreatedById { get; set; } |
| 18 | public AppUser? CreatedBy { get; set; } |
| 19 | |
| 20 | public ICollection<SplitPresetMember>? Members { get; set; } |
| 21 | } |
| 22 | |