KoogleApp/Koogle.Domain/Entities/Game.cs

35 lines
889 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Koogle.Domain.Entities
{
/// <summary>
/// Represents a game entity with its associated data.
/// </summary>
public class Game : BaseEntity
{
/// <summary>
/// Json data representing the game state.
/// </summary>
public string GameData { get; set; } = "{}";
/// <summary>
/// ID of the associated day.
/// </summary>
public Guid DayId { get; set; }
/// <summary>
/// associated Day entity.
/// </summary>
public Day Day { get; set; } = null!;
/// <summary>
/// reference to the participating Persons.
/// </summary>
public ICollection<GamePerson> GamePersons { get; set; } = new List<GamePerson>();
}
}