2019-02-23 23:06:56 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
2019-03-09 18:47:20 +00:00
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2019-02-23 23:06:56 +00:00
|
|
|
|
|
|
|
namespace api.Models
|
|
|
|
|
|
|
|
{
|
|
|
|
public class Team
|
|
|
|
{
|
2019-02-23 23:30:54 +00:00
|
|
|
public int Id{get;set;} //id
|
2019-02-23 23:06:56 +00:00
|
|
|
public int EventId{get;set;} //equipa para o evento ID
|
|
|
|
public string Nome{get;set;} //Nome da equipa
|
2019-03-09 18:47:20 +00:00
|
|
|
|
|
|
|
[ForeignKey("CapID")]
|
2019-02-23 23:06:56 +00:00
|
|
|
public User Cap{get;set;} //Capitao da equipa
|
|
|
|
public int NMembros {get;set;} //Numero de Membros na equipa
|
|
|
|
public int Pontos {get;set;} //Postos da equipa
|
|
|
|
}
|
|
|
|
}
|