Event Models and QRs
This commit is contained in:
parent
8a13765e8a
commit
4aeb53bf6d
|
@ -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…
Reference in New Issue