KoogleApp/Koogle.Domain/Entities/Day.cs

44 lines
952 B
C#

using Koogle.Domain.Entities;
using Koogle.Domain.Enums;
namespace Koogle.Domain.Entities;
/// <summary>
/// Represents a Game-Day with associated persons and club.
/// </summary>
public class Day : BaseEntity
{
// Stammdaten
/// <summary>
/// The day the event is posted for.
/// </summary>
public DateTime PostDate { get; set; }
/// <summary>
/// Day status indicating the current state of the day.
/// </summary>
public DayStatus Status { get; set; }
// Zuordnungen
/// <summary>
/// ID of the referenced Club.
/// </summary>
public Guid ClubId { get; set; }
// Navigation Properties
/// <summary>
/// reference to the associated Persons.
/// </summary>
public ICollection<DayPerson> DayPersons { get; set; } = new List<DayPerson>();
/// <summary>
/// reference to the associated Club.
/// </summary>
public Club Club { get; set; } = null!;
}