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