feat(data): model Prime schedule as weekday bitmask

This commit is contained in:
mika kuns
2026-06-02 16:09:32 +02:00
parent 13c3393e3a
commit eaf27e8b3a
3 changed files with 19 additions and 6 deletions

View File

@@ -3,10 +3,8 @@ namespace ClaudeDo.Data.Models;
public sealed class PrimeScheduleEntity
{
public Guid Id { get; set; } = Guid.NewGuid();
public DateOnly StartDate { get; set; }
public DateOnly EndDate { get; set; }
public PrimeDays Days { get; set; } = PrimeDays.Weekdays;
public TimeSpan TimeOfDay { get; set; }
public bool WorkdaysOnly { get; set; } = true;
public bool Enabled { get; set; } = true;
public DateTimeOffset? LastRunAt { get; set; }
public string? PromptOverride { get; set; }