parent
478a27a39f
commit
0f0aa1436b
12 changed files with 633 additions and 3 deletions
@ -0,0 +1,14 @@ |
||||
using System; |
||||
using System.Collections.Generic; |
||||
|
||||
namespace api.Models |
||||
|
||||
{ |
||||
public class Event |
||||
{ |
||||
public int Id{get;set;} //id |
||||
public String Nome{get;set;} //nome |
||||
public String Desc{get;set;} //descrição |
||||
|
||||
} |
||||
} |
@ -0,0 +1,18 @@ |
||||
using System; |
||||
using System.Collections.Generic; |
||||
|
||||
namespace api.Models |
||||
|
||||
{ |
||||
public class EventLoc |
||||
{ |
||||
public int Id{get;set;} //id |
||||
public int EventId{get;set;} //Event ID |
||||
public float Lat{get;set;} //latitude |
||||
public float Long{get;set;} //longitude |
||||
public String Nome{get;set;} //Nome da localização |
||||
public String Desc{get;set;} //Descrição |
||||
public Photo Img{get;set;} //Foto da localização |
||||
|
||||
} |
||||
} |
@ -0,0 +1,14 @@ |
||||
using System; |
||||
using System.Collections.Generic; |
||||
|
||||
namespace api.Models |
||||
|
||||
{ |
||||
public class EventLocVisited |
||||
{ |
||||
public int Id{get;set;} //id |
||||
public Team Team{get;set;} //teamQRID |
||||
public EventLoc Location{get;set;} //location |
||||
public DateTime timestamp{get;set;} //time |
||||
} |
||||
} |
@ -0,0 +1,17 @@ |
||||
using System; |
||||
using System.Collections.Generic; |
||||
|
||||
namespace api.Models |
||||
|
||||
{ |
||||
public class Team |
||||
{ |
||||
public string QRcode{get;set;} //QR ID code |
||||
public int EventId{get;set;} //equipa para o evento ID |
||||
public string Nome{get;set;} //Nome da equipa |
||||
public User Cap{get;set;} //Capitao da equipa |
||||
public ICollection<User> Membros {get;set;} //Membros da equipa |
||||
public int NMembros {get;set;} //Numero de Membros na equipa |
||||
public int Pontos {get;set;} //Postos da equipa |
||||
} |
||||
} |
Binary file not shown.
Loading…
Reference in new issue