Feat Gestion de Fuentes URLs
This commit is contained in:
22
ChatbotApi/Data/Models/FuenteContexto.cs
Normal file
22
ChatbotApi/Data/Models/FuenteContexto.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
// 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;
|
||||
}
|
||||
Reference in New Issue
Block a user