// using System; using System.Collections.Generic; 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("20241126071115_Add_ChangeLog")] partial class Add_ChangeLog { /// 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.ChangeLog", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid") .HasColumnName("Id"); b.Property("Creation") .HasColumnType("timestamp with time zone") .HasColumnName("Creation"); b.Property("DepthEnd") .HasColumnType("double precision") .HasColumnName("DepthEnd"); b.Property("DepthStart") .HasColumnType("double precision") .HasColumnName("DepthStart"); b.Property("IdAuthor") .HasColumnType("uuid") .HasColumnName("IdAuthor"); b.Property("IdDiscriminator") .HasColumnType("uuid") .HasColumnName("IdDiscriminator"); b.Property("IdEditor") .HasColumnType("uuid") .HasColumnName("IdEditor"); b.Property("IdNext") .HasColumnType("uuid") .HasColumnName("IdNext"); b.Property("IdSection") .HasColumnType("uuid") .HasColumnName("IdSection"); b.Property("Obsolete") .HasColumnType("timestamp with time zone") .HasColumnName("Obsolete"); b.Property>("Value") .IsRequired() .HasColumnType("jsonb") .HasColumnName("Value"); b.HasKey("Id"); b.ToTable("ChangeLog"); }); 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 } } }