// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using MoonlightServers.Api.Infrastructure.Database; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace MoonlightServers.Api.Infrastructure.Database.Migrations { [DbContext(typeof(DataContext))] [Migration("20260305104238_AddedBasicNodeEntity")] partial class AddedBasicNodeEntity { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("servers") .HasAnnotation("ProductVersion", "10.0.1") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("MoonlightServers.Api.Infrastructure.Database.Entities.Node", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("HttpEndpointUrl") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Name") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("Token") .IsRequired() .HasMaxLength(64) .HasColumnType("character varying(64)"); b.Property("TokenId") .IsRequired() .HasMaxLength(10) .HasColumnType("character varying(10)"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.ToTable("Nodes", "servers"); }); #pragma warning restore 612, 618 } } }