Feat: System Prompts

- Se añade un sistema de prompts de gerarquía máxima para molder el asistente.
- Se añade control del sistema de prompts mediante el panel de administración.
This commit is contained in:
2025-12-05 13:02:23 -03:00
parent 67e179441d
commit a87550b890
9 changed files with 883 additions and 8 deletions

View File

@@ -0,0 +1,25 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace ChatbotApi.Data.Models
{
[Table("SystemPrompts")]
public class SystemPrompt
{
[Key]
public int Id { get; set; }
[Required]
[MaxLength(100)]
public string Name { get; set; } = string.Empty;
[Required]
public string Content { get; set; } = string.Empty;
public bool IsActive { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}
}