FlexitimeTracker/DataCenter/DataCenterService/DataObjects.cs
chris.watts90@outlook.com ed5162b9e7 Initial commit of data center code to receive HTTP Posts from remote card readers and write them into the database.
Also supports Get request for /api/users and /api/users?userId=x and /api/timelogs?userId=x and /api/stats

stats needs fleshing out.
also logic behind when someone is checking in/out..
2017-01-25 22:47:02 +00:00

30 lines
703 B
C#

using SQLite.Net.Attributes;
using System;
namespace WebSocketService
{
public sealed class CardDataPostDto
{
public string CardUId { get; set; }
}
public sealed class UserIdentity
{
[PrimaryKey, AutoIncrement]
public int Id { get; set; }
public string CardUId { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public float HoursPerWeek { get; set; }
}
public sealed class TimeLog
{
[PrimaryKey, AutoIncrement]
public int Id { get; set; }
public int UserId_FK { get; set; }
public DateTimeOffset SwipeEventDateTime { get; set; }
}
}