Event Models and QRs

henrique
José Valdiviesso 4 years ago
parent 8a13765e8a
commit 4aeb53bf6d
  1. 12
      api/Models/Event.cs
  2. 17
      api/Models/EventLoc.cs
  3. 16
      api/Models/EventLocVisited.cs
  4. 18
      api/Models/EventQR.cs
  5. 22
      api/Models/Team.cs

@ -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;}
}
}

@ -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;}
}
}

@ -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;}
}
}

@ -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;}
}
}

@ -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;}
}
}
Loading…
Cancel
Save