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

26 lines
635 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 string winner { get; set; }
public string loser { get; set; }
public int scoreWinner { get; set; }
public int scoreLoser { get; set; }
[ForeignKey("winner")]
public Player PlayerWinner { get; set; }
[ForeignKey("loser")]
public Player PlayerLoser { get; set; }
}
}