diff --git a/api/Models/Event.cs b/api/Models/Event.cs new file mode 100644 index 00000000..9f305738 --- /dev/null +++ b/api/Models/Event.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;} + } +} \ No newline at end of file diff --git a/api/Models/EventLoc.cs b/api/Models/EventLoc.cs new file mode 100644 index 00000000..10423f0b --- /dev/null +++ b/api/Models/EventLoc.cs @@ -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;} + } +} \ No newline at end of file diff --git a/api/Models/EventLocVisited.cs b/api/Models/EventLocVisited.cs new file mode 100644 index 00000000..5bb8f0e4 --- /dev/null +++ b/api/Models/EventLocVisited.cs @@ -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;} + } +} \ No newline at end of file diff --git a/api/Models/EventQR.cs b/api/Models/EventQR.cs new file mode 100644 index 00000000..f9646c3c --- /dev/null +++ b/api/Models/EventQR.cs @@ -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;} + } +} \ No newline at end of file diff --git a/api/Models/Team.cs b/api/Models/Team.cs new file mode 100644 index 00000000..e31cb2b0 --- /dev/null +++ b/api/Models/Team.cs @@ -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 Users{get;set;} + public int NumMemb{get;set;} + + public int VisitedNum{get;set;} + public int Pontos{get;set;} + + public ICollection QRs{get;set;} + } +} \ No newline at end of file