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..
30 lines
703 B
C#
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; }
|
|
}
|
|
}
|