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
20 lines
551 B
C#
20 lines
551 B
C#
namespace WorkTracker.Domain;
|
|
|
|
public sealed class WorkDayDocument
|
|
{
|
|
public string Id { get; set; } = string.Empty;
|
|
|
|
public DateOnly Date { get; set; }
|
|
|
|
public bool IsWeekend { get; set; }
|
|
|
|
public bool IsItalianFestivity { get; set; }
|
|
|
|
public List<WorkUnitDocument> WorkUnits { get; set; } = [];
|
|
|
|
public List<CalendarEventDocument> CalendarEvents { get; set; } = [];
|
|
|
|
public DateTimeOffset CreatedAtUtc { get; set; } = DateTimeOffset.UtcNow;
|
|
|
|
public DateTimeOffset UpdatedAtUtc { get; set; } = DateTimeOffset.UtcNow;
|
|
}
|