2024-11-15 16:29:15 +05:00
|
|
|
|
// <auto-generated />
|
|
|
|
|
using System;
|
2024-11-26 14:19:16 +05:00
|
|
|
|
using System.Collections.Generic;
|
2024-11-15 16:29:15 +05:00
|
|
|
|
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);
|
|
|
|
|
|
2024-11-25 10:05:23 +05:00
|
|
|
|
modelBuilder.Entity("Persistence.Database.Model.ChangeLog", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("uuid")
|
|
|
|
|
.HasColumnName("Id");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("Creation")
|
|
|
|
|
.HasColumnType("timestamp with time zone")
|
|
|
|
|
.HasColumnName("Creation");
|
|
|
|
|
|
2024-11-26 14:19:16 +05:00
|
|
|
|
b.Property<double>("DepthEnd")
|
|
|
|
|
.HasColumnType("double precision")
|
|
|
|
|
.HasColumnName("DepthEnd");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("DepthStart")
|
|
|
|
|
.HasColumnType("double precision")
|
|
|
|
|
.HasColumnName("DepthStart");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("IdAuthor")
|
|
|
|
|
.HasColumnType("uuid")
|
2024-11-25 10:05:23 +05:00
|
|
|
|
.HasColumnName("IdAuthor");
|
|
|
|
|
|
2024-11-26 14:19:16 +05:00
|
|
|
|
b.Property<Guid>("IdDiscriminator")
|
|
|
|
|
.HasColumnType("uuid")
|
|
|
|
|
.HasColumnName("IdDiscriminator");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("IdEditor")
|
|
|
|
|
.HasColumnType("uuid")
|
2024-11-25 10:05:23 +05:00
|
|
|
|
.HasColumnName("IdEditor");
|
|
|
|
|
|
2024-11-26 14:19:16 +05:00
|
|
|
|
b.Property<Guid?>("IdNext")
|
|
|
|
|
.HasColumnType("uuid")
|
2024-11-25 10:05:23 +05:00
|
|
|
|
.HasColumnName("IdNext");
|
|
|
|
|
|
2024-11-26 14:19:16 +05:00
|
|
|
|
b.Property<Guid>("IdSection")
|
|
|
|
|
.HasColumnType("uuid")
|
|
|
|
|
.HasColumnName("IdSection");
|
|
|
|
|
|
2024-11-25 10:05:23 +05:00
|
|
|
|
b.Property<DateTimeOffset?>("Obsolete")
|
|
|
|
|
.HasColumnType("timestamp with time zone")
|
|
|
|
|
.HasColumnName("Obsolete");
|
|
|
|
|
|
2024-11-26 14:19:16 +05:00
|
|
|
|
b.Property<IDictionary<string, object>>("Value")
|
2024-11-25 10:05:23 +05:00
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("jsonb")
|
|
|
|
|
.HasColumnName("Value");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.ToTable("ChangeLog");
|
|
|
|
|
});
|
|
|
|
|
|
2024-11-15 16:29:15 +05:00
|
|
|
|
modelBuilder.Entity("Persistence.Database.Model.DataSaub", b =>
|
|
|
|
|
{
|
2024-11-22 15:47:00 +05:00
|
|
|
|
b.Property<DateTimeOffset>("Date")
|
|
|
|
|
.HasColumnType("timestamp with time zone")
|
|
|
|
|
.HasColumnName("date");
|
2024-11-15 16:29:15 +05:00
|
|
|
|
|
|
|
|
|
b.Property<double?>("AxialLoad")
|
|
|
|
|
.HasColumnType("double precision")
|
|
|
|
|
.HasColumnName("axialLoad");
|
|
|
|
|
|
|
|
|
|
b.Property<double?>("BitDepth")
|
|
|
|
|
.HasColumnType("double precision")
|
|
|
|
|
.HasColumnName("bitDepth");
|
|
|
|
|
|
|
|
|
|
b.Property<double?>("BlockPosition")
|
|
|
|
|
.HasColumnType("double precision")
|
|
|
|
|
.HasColumnName("blockPosition");
|
|
|
|
|
|
|
|
|
|
b.Property<double?>("BlockSpeed")
|
|
|
|
|
.HasColumnType("double precision")
|
|
|
|
|
.HasColumnName("blockSpeed");
|
|
|
|
|
|
|
|
|
|
b.Property<double?>("Flow")
|
|
|
|
|
.HasColumnType("double precision")
|
|
|
|
|
.HasColumnName("flow");
|
|
|
|
|
|
|
|
|
|
b.Property<double?>("HookWeight")
|
|
|
|
|
.HasColumnType("double precision")
|
|
|
|
|
.HasColumnName("hookWeight");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("IdFeedRegulator")
|
|
|
|
|
.HasColumnType("integer")
|
|
|
|
|
.HasColumnName("idFeedRegulator");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("Mode")
|
|
|
|
|
.HasColumnType("integer")
|
|
|
|
|
.HasColumnName("mode");
|
|
|
|
|
|
|
|
|
|
b.Property<double?>("Mse")
|
|
|
|
|
.HasColumnType("double precision")
|
|
|
|
|
.HasColumnName("mse");
|
|
|
|
|
|
|
|
|
|
b.Property<short>("MseState")
|
|
|
|
|
.HasColumnType("smallint")
|
|
|
|
|
.HasColumnName("mseState");
|
|
|
|
|
|
|
|
|
|
b.Property<double?>("Pressure")
|
|
|
|
|
.HasColumnType("double precision")
|
|
|
|
|
.HasColumnName("pressure");
|
|
|
|
|
|
|
|
|
|
b.Property<double?>("Pump0Flow")
|
|
|
|
|
.HasColumnType("double precision")
|
|
|
|
|
.HasColumnName("pump0Flow");
|
|
|
|
|
|
|
|
|
|
b.Property<double?>("Pump1Flow")
|
|
|
|
|
.HasColumnType("double precision")
|
|
|
|
|
.HasColumnName("pump1Flow");
|
|
|
|
|
|
|
|
|
|
b.Property<double?>("Pump2Flow")
|
|
|
|
|
.HasColumnType("double precision")
|
|
|
|
|
.HasColumnName("pump2Flow");
|
|
|
|
|
|
|
|
|
|
b.Property<double?>("RotorSpeed")
|
|
|
|
|
.HasColumnType("double precision")
|
|
|
|
|
.HasColumnName("rotorSpeed");
|
|
|
|
|
|
|
|
|
|
b.Property<double?>("RotorTorque")
|
|
|
|
|
.HasColumnType("double precision")
|
|
|
|
|
.HasColumnName("rotorTorque");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("User")
|
|
|
|
|
.HasColumnType("text")
|
|
|
|
|
.HasColumnName("user");
|
|
|
|
|
|
|
|
|
|
b.Property<double?>("WellDepth")
|
|
|
|
|
.HasColumnType("double precision")
|
|
|
|
|
.HasColumnName("wellDepth");
|
|
|
|
|
|
2024-11-22 15:47:00 +05:00
|
|
|
|
b.HasKey("Date");
|
2024-11-15 16:29:15 +05:00
|
|
|
|
|
|
|
|
|
b.ToTable("DataSaub");
|
|
|
|
|
});
|
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|