diff --git a/DataCenter_Windows/WindowsDataCenter/Interfaces/TimeLog.cs b/DataCenter_Windows/WindowsDataCenter/Interfaces/TimeLog.cs index e144834..416fb4a 100644 --- a/DataCenter_Windows/WindowsDataCenter/Interfaces/TimeLog.cs +++ b/DataCenter_Windows/WindowsDataCenter/Interfaces/TimeLog.cs @@ -4,8 +4,19 @@ namespace Interfaces { public class TimeLog { - public DateTimeOffset EventTime { get; set; } + public int Id { get; set; } public int UserId { get; set; } - public bool Direction { get; set; } + public int IdentifierId { get; set; } + public LogDirection Direction { get; set; } + public DateTimeOffset EventTime { get; set; } + public int CalendarWeek { get; set; } + public int Year { get; set; } + } + + public enum LogDirection + { + UNKNOWN = 0, + IN = 1, + OUT = 2 } } \ No newline at end of file diff --git a/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/TimeLog.cs b/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/TimeLog.cs index 50bf9a1..f2b0777 100644 --- a/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/TimeLog.cs +++ b/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/TimeLog.cs @@ -3,13 +3,22 @@ using SQLite.Net.Attributes; namespace SQLiteRepository { - public sealed class TimeLog + public sealed class TimeLogDB { [PrimaryKey, AutoIncrement] public int Id { get; set; } public int UserId_FK { get; set; } public int IdentifierId { get; set; } - public bool InOut { get; set; } + public LogDirectionDB Direction { get; set; } public DateTimeOffset SwipeEventDateTime { get; set; } + public int CalendarWeek { get; set; } + public int Year { get; set; } + } + + public enum LogDirectionDB + { + UNKNOWN = 0, + IN = 1, + OUT = 2 } } \ No newline at end of file