Files
Chatbot-ElDia/ChatbotApi/Migrations/20251118140720_AddConversacionLogTable.cs

38 lines
1.2 KiB
C#
Raw Normal View History

2025-11-18 14:34:26 -03:00
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ChatbotApi.Migrations
{
/// <inheritdoc />
public partial class AddConversacionLogTable : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "ConversacionLogs",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
UsuarioMensaje = table.Column<string>(type: "nvarchar(max)", nullable: false),
BotRespuesta = table.Column<string>(type: "nvarchar(max)", nullable: false),
Fecha = table.Column<DateTime>(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_ConversacionLogs", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ConversacionLogs");
}
}
}