40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Hushian.Persistence.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class newtable : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "AIAs",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<int>(type: "int", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
Cdatetime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
CompanyID = table.Column<int>(type: "int", nullable: false),
|
|
UserID = table.Column<int>(type: "int", nullable: false),
|
|
Request = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
|
Response = table.Column<string>(type: "nvarchar(max)", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_AIAs", x => x.ID);
|
|
});
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "AIAs");
|
|
}
|
|
}
|
|
}
|