Proyecto ChatBot Con Gemini

This commit is contained in:
2025-11-18 14:34:26 -03:00
commit 83a48e16da
60 changed files with 13078 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
// ChatbotApi/Data/Models/AppContexto.cs
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
namespace ChatbotApi.Data.Models
{
public class AppContexto : IdentityDbContext
{
public AppContexto(DbContextOptions<AppContexto> options) : base(options) { }
public DbSet<ContextoItem> ContextoItems { get; set; } = null!;
public DbSet<ConversacionLog> ConversacionLogs { get; set; } = null!;
}
}

View File

@@ -0,0 +1,25 @@
// Data/Models/ContextoItem.cs
using System;
using System.ComponentModel.DataAnnotations;
namespace ChatbotApi.Data.Models
{
public class ContextoItem
{
[Key]
public int Id { get; set; }
[Required]
[MaxLength(100)]
public string Clave { get; set; } = null!;
[Required]
[MaxLength(2000)]
public string Valor { get; set; } = null!;
[MaxLength(500)]
public string? Descripcion { get; set; }
public DateTime FechaActualizacion { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using System.ComponentModel.DataAnnotations;
namespace ChatbotApi.Data.Models
{
public class ConversacionLog
{
[Key]
public int Id { get; set; }
[Required]
public string UsuarioMensaje { get; set; } = null!;
[Required]
public string BotRespuesta { get; set; } = null!;
public DateTime Fecha { get; set; }
}
}