Finished Settings page
This commit is contained in:
21
WorkTime.Models/TimeEntry.cs
Normal file
21
WorkTime.Models/TimeEntry.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WorkTime.Models;
|
||||
|
||||
public sealed class TimeEntry {
|
||||
[Key]
|
||||
public Guid Id { get; init; } = Guid.CreateVersion7();
|
||||
|
||||
public required EntryType Type { get; init; }
|
||||
|
||||
public required DateTime Timestamp { get; set; }
|
||||
}
|
||||
|
||||
public enum EntryType {
|
||||
Login,
|
||||
LoginTrip,
|
||||
LoginHome,
|
||||
Logout,
|
||||
LogoutTrip,
|
||||
LogoutHome
|
||||
}
|
||||
Reference in New Issue
Block a user