Files
LehrerApp/LehrerApp.Core/Models/SeatingPlan.cs
T

26 lines
817 B
C#

namespace LehrerApp.Core.Models;
/// <summary>
/// Ein Sitzplan einer Lerngruppe. Eine Gruppe kann mehrere Pläne besitzen,
/// beispielsweise für unterschiedliche Unterrichtsräume.
/// </summary>
public class SeatingPlan
{
public Guid Id { get; set; } = Guid.NewGuid();
public Guid GroupId { get; set; }
public string Name { get; set; } = "";
public string Room { get; set; } = "";
public int Rows { get; set; } = 4;
public int Columns { get; set; } = 4;
public List<SeatAssignment> Assignments { get; set; } = [];
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}
public class SeatAssignment
{
public int Row { get; set; }
public int Column { get; set; }
public Guid StudentId { get; set; }
}