22 lines
499 B
C#
22 lines
499 B
C#
// 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;
|
|
} |