Refactor AppSettingsDocument and CoeffSnapshotDocument: Remove LunchBreakHours property
Add CalendarEventDocument and CalendarEventType enum for event management Update WorkDayDocument to include WorkUnitDocument and CalendarEventDocument lists Enhance CouchbaseLiteWorkDayService with methods for managing WorkUnit and CalendarEvent Revise MonthlySummaryModel to track preview worked hours and counted work units Improve CSS for calendar view, including responsive design and new item styles
This commit is contained in:
parent
08e573d63c
commit
cab549ab3a
22 changed files with 1725 additions and 356 deletions
20
Domain/CalendarEventDocument.cs
Normal file
20
Domain/CalendarEventDocument.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
namespace WorkTracker.Domain;
|
||||
|
||||
public sealed class CalendarEventDocument
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
|
||||
public CalendarEventType EventType { get; set; } = CalendarEventType.Generic;
|
||||
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
public TimeOnly? StartTime { get; set; }
|
||||
|
||||
public TimeOnly? EndTime { get; set; }
|
||||
|
||||
public decimal? DurationHours { get; set; }
|
||||
|
||||
public DateTimeOffset CreatedAtUtc { get; set; } = DateTimeOffset.UtcNow;
|
||||
|
||||
public DateTimeOffset UpdatedAtUtc { get; set; } = DateTimeOffset.UtcNow;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue