Merge branch 'worktree-agent-a9d8edbd439109a45'

This commit is contained in:
2026-06-22 22:53:33 +02:00
15 changed files with 2071 additions and 14 deletions

View File

@@ -10,6 +10,22 @@ namespace GerbilManagerWebAPI.Models
public required string Name { get; set; }
public string? Notes { get; set; }
// Reinigungszyklus (aus RennmausPro becken_tb: _SIZE/_MENGE/_CLEANED/_CYCLUS).
/// <summary>Maße als Freitext (z. B. "120×50 cm").</summary>
public string? Size { get; set; }
/// <summary>Empfohlene/maximale Tieranzahl.</summary>
public int? Capacity { get; set; }
/// <summary>Datum der letzten Reinigung.</summary>
public DateOnly? LastCleanedDate { get; set; }
/// <summary>Reinigungsintervall in Tagen.</summary>
public int? CleaningCycleDays { get; set; }
/// <summary>Nächste fällige Reinigung = LastCleanedDate + CleaningCycleDays (berechnet, nicht persistiert).</summary>
public DateOnly? NextCleaningDate =>
LastCleanedDate is { } last && CleaningCycleDays is { } cycle and > 0
? last.AddDays(cycle)
: null;
public ICollection<Gerbil> Gerbils { get; } = new List<Gerbil>();
}
}