- Neues Backend-Projekt mit Entity Framework Core (PostgreSQL) und geteilten Modellen/DTOs angelegt - Datenbankstruktur und Migrations implementiert (User, Game, Player, Phrase, PlayerCard, GameRound, SlipChallenge) - SignalR-Hub für Spielkommunikation (Lobby, Spielstart, Kartenvergabe, Slip/Challenge) hinzugefügt - Spiellogik und DB-Zugriffe im GameService gekapselt - JWT-Authentifizierung und CORS für Entwicklung konfiguriert - Projektdateien, NuGet-Abhängigkeiten und .gitignore aktualisiert - Startkonfiguration und Umgebungsdateien angepasst
17 lines
491 B
C#
17 lines
491 B
C#
namespace SlipItIn.Shared.Models;
|
|
|
|
public class PlayerCard
|
|
{
|
|
public int Id { get; set; }
|
|
public int PlayerId { get; set; }
|
|
public int PhraseId { get; set; }
|
|
public int GameRoundId { get; set; }
|
|
public bool IsUsed { get; set; } = false;
|
|
public DateTime AssignedAt { get; set; } = DateTime.UtcNow;
|
|
|
|
// Navigation
|
|
public Player Player { get; set; } = null!;
|
|
public Phrase Phrase { get; set; } = null!;
|
|
public GameRound GameRound { get; set; } = null!;
|
|
}
|