feat(data): add navigation properties to all entity models
This commit is contained in:
@@ -6,4 +6,7 @@ public sealed class ListConfigEntity
|
|||||||
public string? Model { get; set; }
|
public string? Model { get; set; }
|
||||||
public string? SystemPrompt { get; set; }
|
public string? SystemPrompt { get; set; }
|
||||||
public string? AgentPath { get; set; }
|
public string? AgentPath { get; set; }
|
||||||
|
|
||||||
|
// Navigation property
|
||||||
|
public ListEntity List { get; set; } = null!;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,4 +7,9 @@ public sealed class ListEntity
|
|||||||
public required DateTime CreatedAt { get; init; }
|
public required DateTime CreatedAt { get; init; }
|
||||||
public string? WorkingDir { get; set; }
|
public string? WorkingDir { get; set; }
|
||||||
public string DefaultCommitType { get; set; } = "chore";
|
public string DefaultCommitType { get; set; } = "chore";
|
||||||
|
|
||||||
|
// Navigation properties
|
||||||
|
public ListConfigEntity? Config { get; set; }
|
||||||
|
public ICollection<TaskEntity> Tasks { get; set; } = new List<TaskEntity>();
|
||||||
|
public ICollection<TagEntity> Tags { get; set; } = new List<TagEntity>();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,4 +8,7 @@ public sealed class SubtaskEntity
|
|||||||
public bool Completed { get; set; }
|
public bool Completed { get; set; }
|
||||||
public int OrderNum { get; set; }
|
public int OrderNum { get; set; }
|
||||||
public required DateTime CreatedAt { get; init; }
|
public required DateTime CreatedAt { get; init; }
|
||||||
|
|
||||||
|
// Navigation property
|
||||||
|
public TaskEntity Task { get; set; } = null!;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,4 +4,8 @@ public sealed class TagEntity
|
|||||||
{
|
{
|
||||||
public long Id { get; init; }
|
public long Id { get; init; }
|
||||||
public required string Name { get; set; }
|
public required string Name { get; set; }
|
||||||
|
|
||||||
|
// Navigation properties
|
||||||
|
public ICollection<ListEntity> Lists { get; set; } = new List<ListEntity>();
|
||||||
|
public ICollection<TaskEntity> Tasks { get; set; } = new List<TaskEntity>();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,4 +26,11 @@ public sealed class TaskEntity
|
|||||||
public string? Model { get; set; }
|
public string? Model { get; set; }
|
||||||
public string? SystemPrompt { get; set; }
|
public string? SystemPrompt { get; set; }
|
||||||
public string? AgentPath { get; set; }
|
public string? AgentPath { get; set; }
|
||||||
|
|
||||||
|
// Navigation properties
|
||||||
|
public ListEntity List { get; set; } = null!;
|
||||||
|
public WorktreeEntity? Worktree { get; set; }
|
||||||
|
public ICollection<TagEntity> Tags { get; set; } = new List<TagEntity>();
|
||||||
|
public ICollection<TaskRunEntity> Runs { get; set; } = new List<TaskRunEntity>();
|
||||||
|
public ICollection<SubtaskEntity> Subtasks { get; set; } = new List<SubtaskEntity>();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,4 +18,7 @@ public sealed class TaskRunEntity
|
|||||||
public string? LogPath { get; set; }
|
public string? LogPath { get; set; }
|
||||||
public DateTime? StartedAt { get; set; }
|
public DateTime? StartedAt { get; set; }
|
||||||
public DateTime? FinishedAt { get; set; }
|
public DateTime? FinishedAt { get; set; }
|
||||||
|
|
||||||
|
// Navigation property
|
||||||
|
public TaskEntity Task { get; set; } = null!;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,4 +18,7 @@ public sealed class WorktreeEntity
|
|||||||
public string? DiffStat { get; set; }
|
public string? DiffStat { get; set; }
|
||||||
public WorktreeState State { get; set; } = WorktreeState.Active;
|
public WorktreeState State { get; set; } = WorktreeState.Active;
|
||||||
public required DateTime CreatedAt { get; init; }
|
public required DateTime CreatedAt { get; init; }
|
||||||
|
|
||||||
|
// Navigation property
|
||||||
|
public TaskEntity Task { get; set; } = null!;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user