feat(data): add AppSettings entity, migration, and repository

This commit is contained in:
Mika Kuns
2026-04-21 15:55:29 +02:00
parent 4283c67d81
commit 62a1121571
7 changed files with 296 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
namespace ClaudeDo.Data.Models;
public sealed class AppSettingsEntity
{
public const int SingletonId = 1;
public int Id { get; set; } = SingletonId;
public string DefaultClaudeInstructions { get; set; } = string.Empty;
public string DefaultModel { get; set; } = "sonnet";
public int DefaultMaxTurns { get; set; } = 30;
public string DefaultPermissionMode { get; set; } = "bypassPermissions";
public string WorktreeStrategy { get; set; } = "sibling";
public string? CentralWorktreeRoot { get; set; }
public bool WorktreeAutoCleanupEnabled { get; set; }
public int WorktreeAutoCleanupDays { get; set; } = 7;
}