Add Conversation + Turn entities and migration

This commit is contained in:
2026-06-11 21:09:52 +00:00
parent 58b8a446b1
commit 99cfe60a2c
6 changed files with 686 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
namespace backend.Conversations;
public enum TurnRole
{
User = 0,
Assistant = 1,
Tool = 2,
}
public class Turn
{
public Guid Id { get; set; } = Guid.NewGuid();
public Guid ConversationId { get; set; }
public int Index { get; set; }
public TurnRole Role { get; set; }
public string? Text { get; set; }
public string? ToolName { get; set; }
public string? ToolArgsJson { get; set; }
public string? ToolResultJson { get; set; }
public DateTimeOffset CreatedAt { get; set; }
}