Files
ServerMonitor/Backend/MonitorPanel/MonitorPanel.DataAccess/Migrations/20260809010527_InitialCreate.cs
T
2026-08-09 04:15:07 +03:00

39 lines
1.3 KiB
C#

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");
}
}
}