You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
leap-hit-server/code/server/DataBase/Entity/Game.cs

22 lines
538 B

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DataBase.Entity
{
public class Game
{
public int gameId { get; set; }
public int durationGame { get; set; }
public int nbMaxEchanges { get; set; }
public int winner { get; set; }
public int loser { get; set; }
[ForeignKey("winner")]
public Player PlayerWinner { get; set; }
[ForeignKey("loser")]
public Player PlayerLoser { get; set; }
}
}