forked from ddrilling/AsbCloudServer
Add usage to ProcessMap
This commit is contained in:
parent
99687c495f
commit
14d8221917
@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace AsbCloudApp.Data.ProcessMap
|
||||
{
|
||||
@ -77,5 +78,15 @@ namespace AsbCloudApp.Data.ProcessMap
|
||||
/// Плановая механическая скорость, м/ч
|
||||
/// </summary>
|
||||
public double RopPlan { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Плановый процент использования АКБ
|
||||
/// </summary>
|
||||
public double UsageSaub { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Плановый процент использования spin master
|
||||
/// </summary>
|
||||
public double UsageSpin { get; set; }
|
||||
}
|
||||
}
|
||||
|
7818
AsbCloudDb/Migrations/20230321120948_Add_Usage_to_ProcessMap.Designer.cs
generated
Normal file
7818
AsbCloudDb/Migrations/20230321120948_Add_Usage_to_ProcessMap.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,39 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace AsbCloudDb.Migrations
|
||||
{
|
||||
public partial class Add_Usage_to_ProcessMap : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<double>(
|
||||
name: "usage_saub",
|
||||
table: "t_process_map",
|
||||
type: "double precision",
|
||||
nullable: false,
|
||||
defaultValue: 0.0,
|
||||
comment: "Плановый процент использования АКБ");
|
||||
|
||||
migrationBuilder.AddColumn<double>(
|
||||
name: "usage_spin",
|
||||
table: "t_process_map",
|
||||
type: "double precision",
|
||||
nullable: false,
|
||||
defaultValue: 0.0,
|
||||
comment: "Плановый процент использования spin master");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "usage_saub",
|
||||
table: "t_process_map");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "usage_spin",
|
||||
table: "t_process_map");
|
||||
}
|
||||
}
|
||||
}
|
@ -2025,6 +2025,16 @@ namespace AsbCloudDb.Migrations
|
||||
.HasColumnName("top_drive_torque_plan")
|
||||
.HasComment("Момент на ВСП, план");
|
||||
|
||||
b.Property<double>("UsageSaub")
|
||||
.HasColumnType("double precision")
|
||||
.HasColumnName("usage_saub")
|
||||
.HasComment("Плановый процент использования АКБ");
|
||||
|
||||
b.Property<double>("UsageSpin")
|
||||
.HasColumnType("double precision")
|
||||
.HasColumnName("usage_spin")
|
||||
.HasComment("Плановый процент использования spin master");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("IdWell");
|
||||
|
@ -67,6 +67,12 @@ namespace AsbCloudDb.Model
|
||||
[Column("rop_plan"), Comment("Плановая механическая скорость, м/ч")]
|
||||
public double RopPlan { get; set; }
|
||||
|
||||
[Column("usage_saub"), Comment("Плановый процент использования АКБ")]
|
||||
public double UsageSaub { get; set; }
|
||||
|
||||
[Column("usage_spin"), Comment("Плановый процент использования spin master")]
|
||||
public double UsageSpin { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
[ForeignKey(nameof(IdWell))]
|
||||
public virtual Well Well { get; set; } = null!;
|
||||
|
Loading…
Reference in New Issue
Block a user