// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using Persistence.Database.Model; #nullable disable namespace Persistence.Database.Postgres.Migrations { [DbContext(typeof(PersistenceDbContext))] [Migration("20241122074646_InitialCreate")] partial class InitialCreate { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .UseCollation("Russian_Russia.1251") .HasAnnotation("ProductVersion", "8.0.10") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.HasPostgresExtension(modelBuilder, "adminpack"); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("Persistence.Database.Model.DataSaub", b => { b.Property("Date") .HasColumnType("timestamp with time zone") .HasColumnName("date"); b.Property("AxialLoad") .HasColumnType("double precision") .HasColumnName("axialLoad"); b.Property("BitDepth") .HasColumnType("double precision") .HasColumnName("bitDepth"); b.Property("BlockPosition") .HasColumnType("double precision") .HasColumnName("blockPosition"); b.Property("BlockSpeed") .HasColumnType("double precision") .HasColumnName("blockSpeed"); b.Property("Flow") .HasColumnType("double precision") .HasColumnName("flow"); b.Property("HookWeight") .HasColumnType("double precision") .HasColumnName("hookWeight"); b.Property("IdFeedRegulator") .HasColumnType("integer") .HasColumnName("idFeedRegulator"); b.Property("Mode") .HasColumnType("integer") .HasColumnName("mode"); b.Property("Mse") .HasColumnType("double precision") .HasColumnName("mse"); b.Property("MseState") .HasColumnType("smallint") .HasColumnName("mseState"); b.Property("Pressure") .HasColumnType("double precision") .HasColumnName("pressure"); b.Property("Pump0Flow") .HasColumnType("double precision") .HasColumnName("pump0Flow"); b.Property("Pump1Flow") .HasColumnType("double precision") .HasColumnName("pump1Flow"); b.Property("Pump2Flow") .HasColumnType("double precision") .HasColumnName("pump2Flow"); b.Property("RotorSpeed") .HasColumnType("double precision") .HasColumnName("rotorSpeed"); b.Property("RotorTorque") .HasColumnType("double precision") .HasColumnName("rotorTorque"); b.Property("User") .HasColumnType("text") .HasColumnName("user"); b.Property("WellDepth") .HasColumnType("double precision") .HasColumnName("wellDepth"); b.HasKey("Date"); b.ToTable("DataSaub"); }); #pragma warning restore 612, 618 } } }