2024-11-15 16:29:15 +05:00
|
|
|
|
// <auto-generated />
|
|
|
|
|
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))]
|
2024-11-18 14:22:09 +05:00
|
|
|
|
[Migration("20241118091712_InitialCreate")]
|
2024-11-15 16:29:15 +05:00
|
|
|
|
partial class InitialCreate
|
|
|
|
|
{
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
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<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("integer")
|
|
|
|
|
.HasColumnName("id");
|
|
|
|
|
|
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
|
|
|
|
|
|
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");
|
|
|
|
|
|
2024-11-18 14:22:09 +05:00
|
|
|
|
b.Property<DateTimeOffset>("Date")
|
|
|
|
|
.HasColumnType("timestamp with time zone")
|
|
|
|
|
.HasColumnName("date");
|
|
|
|
|
|
2024-11-15 16:29:15 +05:00
|
|
|
|
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");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.ToTable("DataSaub");
|
|
|
|
|
});
|
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|