Event Models and QRs

This commit is contained in:
José Valdiviesso 2018-12-12 16:43:20 +00:00
parent 8a13765e8a
commit 4aeb53bf6d
5 changed files with 85 additions and 0 deletions

12
api/Models/Event.cs Normal file
View File

@ -0,0 +1,12 @@
using System;
namespace api.Models
{
public class Event
{
public int Id{get;set;}
public string Nome{get;set;}
public string Desc{get;set;}
}
}

17
api/Models/EventLoc.cs Normal file
View File

@ -0,0 +1,17 @@
using System;
namespace api.Models
{
public class EventLoc
{
public int Id{get;set;}
public int Event{get;set;}
public string Nome{get;set;}
public double Lat{get;set;}
public double Long{get;set;}
public string Desc{get;set;}
public int PhotoId{get;set;}
}
}

View File

@ -0,0 +1,16 @@
using System;
namespace api.Models
{
public class EventLocVisited
{
public int Id{get;set;}
public int Event{get;set;}
public int TeamId{get;set;}
public int UserId{get;set;}
public int QRId{get;set;}
public DateTime Time{get;set;}
}
}

18
api/Models/EventQR.cs Normal file
View File

@ -0,0 +1,18 @@
using System;
namespace api.Models
{
public class EventQR
{
public int Id{get;set;}
public int Event{get;set;}
public int TeamId{get;set;}
public int EventLocId{get;set;}
public int Pontos{get;set;}
public DateTime TimeGen{get;set;}
public string QRData{get;set;}
}
}

22
api/Models/Team.cs Normal file
View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
namespace api.Models
{
public class Team
{
public int Id{get;set;}
public string Nome{get;set;}
public int Event{get;set;}
public ICollection<int> Users{get;set;}
public int NumMemb{get;set;}
public int VisitedNum{get;set;}
public int Pontos{get;set;}
public ICollection<EventQR> QRs{get;set;}
}
}