diff --git a/Backend/MonitorPanel/MonitorPanel.DataAccess/Migrations/20260809010527_InitialCreate.Designer.cs b/Backend/MonitorPanel/MonitorPanel.DataAccess/Migrations/20260809010527_InitialCreate.Designer.cs new file mode 100644 index 0000000..70826f3 --- /dev/null +++ b/Backend/MonitorPanel/MonitorPanel.DataAccess/Migrations/20260809010527_InitialCreate.Designer.cs @@ -0,0 +1,58 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using MonitorPanel.DataAccess; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; + +#nullable disable + +namespace MonitorPanel.DataAccess.Migrations +{ + [DbContext(typeof(MonitorPanelDbContext))] + [Migration("20260809010527_InitialCreate")] + partial class InitialCreate + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "10.0.10") + .HasAnnotation("Relational:MaxIdentifierLength", 63); + + NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); + + modelBuilder.Entity("MonitorPanel.DataAccess.Entities.ServerEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid"); + + b.Property("Address") + .IsRequired() + .HasColumnType("text"); + + b.Property("IsHttps") + .HasColumnType("boolean"); + + b.Property("Name") + .IsRequired() + .HasColumnType("text"); + + b.Property("Path") + .HasColumnType("text"); + + b.Property("Port") + .HasColumnType("integer"); + + b.HasKey("Id"); + + b.ToTable("Servers"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/Backend/MonitorPanel/MonitorPanel.DataAccess/Migrations/20260809010527_InitialCreate.cs b/Backend/MonitorPanel/MonitorPanel.DataAccess/Migrations/20260809010527_InitialCreate.cs new file mode 100644 index 0000000..83f44a0 --- /dev/null +++ b/Backend/MonitorPanel/MonitorPanel.DataAccess/Migrations/20260809010527_InitialCreate.cs @@ -0,0 +1,38 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace MonitorPanel.DataAccess.Migrations +{ + /// + public partial class InitialCreate : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "Servers", + columns: table => new + { + Id = table.Column(type: "uuid", nullable: false), + Name = table.Column(type: "text", nullable: false), + IsHttps = table.Column(type: "boolean", nullable: false), + Address = table.Column(type: "text", nullable: false), + Path = table.Column(type: "text", nullable: true), + Port = table.Column(type: "integer", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Servers", x => x.Id); + }); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "Servers"); + } + } +} diff --git a/Backend/MonitorPanel/MonitorPanel.DataAccess/Migrations/MonitorPanelDbContextModelSnapshot.cs b/Backend/MonitorPanel/MonitorPanel.DataAccess/Migrations/MonitorPanelDbContextModelSnapshot.cs new file mode 100644 index 0000000..61b0eab --- /dev/null +++ b/Backend/MonitorPanel/MonitorPanel.DataAccess/Migrations/MonitorPanelDbContextModelSnapshot.cs @@ -0,0 +1,55 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using MonitorPanel.DataAccess; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; + +#nullable disable + +namespace MonitorPanel.DataAccess.Migrations +{ + [DbContext(typeof(MonitorPanelDbContext))] + partial class MonitorPanelDbContextModelSnapshot : ModelSnapshot + { + protected override void BuildModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "10.0.10") + .HasAnnotation("Relational:MaxIdentifierLength", 63); + + NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); + + modelBuilder.Entity("MonitorPanel.DataAccess.Entities.ServerEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uuid"); + + b.Property("Address") + .IsRequired() + .HasColumnType("text"); + + b.Property("IsHttps") + .HasColumnType("boolean"); + + b.Property("Name") + .IsRequired() + .HasColumnType("text"); + + b.Property("Path") + .HasColumnType("text"); + + b.Property("Port") + .HasColumnType("integer"); + + b.HasKey("Id"); + + b.ToTable("Servers"); + }); +#pragma warning restore 612, 618 + } + } +}