// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using Persistence.Database.Model; #nullable disable namespace Persistence.Database.Postgres.Migrations { [DbContext(typeof(PersistenceDbContext))] partial class PersistenceDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(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"); }); modelBuilder.Entity("Persistence.Database.Model.Setpoint", b => { b.Property("Key") .HasColumnType("uuid") .HasComment("Ключ"); b.Property("Created") .HasColumnType("timestamp with time zone") .HasComment("Дата изменения уставки"); b.Property("IdUser") .HasColumnType("integer") .HasComment("Id автора последнего изменения"); b.Property("Value") .IsRequired() .HasColumnType("jsonb") .HasComment("Значение уставки"); b.HasKey("Key", "Created"); b.ToTable("Setpoint"); }); #pragma warning restore 612, 618 } } }