Добавил миграции

This commit is contained in:
2026-08-09 04:15:07 +03:00
parent 00ff083a76
commit f827d7a692
3 changed files with 151 additions and 0 deletions
@@ -0,0 +1,38 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace MonitorPanel.DataAccess.Migrations
{
/// <inheritdoc />
public partial class InitialCreate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Servers",
columns: table => new
{
Id = table.Column<Guid>(type: "uuid", nullable: false),
Name = table.Column<string>(type: "text", nullable: false),
IsHttps = table.Column<bool>(type: "boolean", nullable: false),
Address = table.Column<string>(type: "text", nullable: false),
Path = table.Column<string>(type: "text", nullable: true),
Port = table.Column<int>(type: "integer", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Servers", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Servers");
}
}
}