Files
Chatbot-ElDia/ChatbotApi/Data/Models/FuenteContexto.cs

22 lines
499 B
C#
Raw Normal View History

2025-11-21 11:20:44 -03:00
// Data/Models/FuenteContexto.cs
using System.ComponentModel.DataAnnotations;
public class FuenteContexto
{
[Key]
public int Id { get; set; }
[Required]
[MaxLength(100)]
public string Nombre { get; set; } = null!; // Ej: "FAQs de Suscripción"
[Required]
[MaxLength(1000)]
public string Url { get; set; } = null!;
[Required]
[MaxLength(500)]
public string DescripcionParaIA { get; set; } = null!; // ¡La parte más importante!
public bool Activo { get; set; } = true;
}