Merge pull request #7 from henrydays/zmiguel

Zmiguel
This commit is contained in:
ZMiguel Alves 2018-12-12 16:48:17 +00:00 committed by GitHub
commit fcb48a4c3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 92 additions and 1 deletions

8
.gitignore vendored
View File

@ -80,4 +80,10 @@ typings/
#DynamoDB Local files
.dynamodb/
# dotNet core build
*/obj/
*/obj/*
api/obj
*/bin/
*/bin/*
api/bin

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