Proyecto ChatBot Con Gemini
This commit is contained in:
38
ChatbotApi/Migrations/20251117132337_InitialCreate.cs
Normal file
38
ChatbotApi/Migrations/20251117132337_InitialCreate.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace ChatbotApi.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class InitialCreate : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "ContextoItems",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
Clave = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||
Valor = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||
Descripcion = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
FechaActualizacion = table.Column<DateTime>(type: "datetime2", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_ContextoItems", x => x.Id);
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "ContextoItems");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user