Files
Chatbot-ElDia/ChatbotApi/Migrations/20251121141306_AddFuentesDeContextoTable.cs

38 lines
1.4 KiB
C#
Raw Normal View History

2025-11-21 11:20:44 -03:00
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ChatbotApi.Migrations
{
/// <inheritdoc />
public partial class AddFuentesDeContextoTable : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "FuentesDeContexto",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Nombre = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
Url = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
DescripcionParaIA = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: false),
Activo = table.Column<bool>(type: "bit", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_FuentesDeContexto", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "FuentesDeContexto");
}
}
}