forked from amkovkov/GranuSightSoftware2
feat: update amine content calibration db
This commit is contained in:
+7
-3
@@ -11,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||||||
namespace GSS2.Core.Analysis.AmineContent.Database.Calibration
|
namespace GSS2.Core.Analysis.AmineContent.Database.Calibration
|
||||||
{
|
{
|
||||||
[DbContext(typeof(AmineContentCalibrationContext))]
|
[DbContext(typeof(AmineContentCalibrationContext))]
|
||||||
[Migration("20260227093032_AmineContentCalibrationInitial")]
|
[Migration("20260303084152_AmineContentCalibrationInitial")]
|
||||||
partial class AmineContentCalibrationInitial
|
partial class AmineContentCalibrationInitial
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
@@ -42,9 +42,13 @@ namespace GSS2.Core.Analysis.AmineContent.Database.Calibration
|
|||||||
.HasColumnType("INTEGER")
|
.HasColumnType("INTEGER")
|
||||||
.HasComment("Уникальный идентификатор");
|
.HasComment("Уникальный идентификатор");
|
||||||
|
|
||||||
|
b.Property<double?>("MeasuredContent")
|
||||||
|
.HasColumnType("REAL")
|
||||||
|
.HasComment("Измеренное колличество масла (кг/т | гр/кг)");
|
||||||
|
|
||||||
b.Property<double?>("MixtureActualRate")
|
b.Property<double?>("MixtureActualRate")
|
||||||
.HasColumnType("REAL")
|
.HasColumnType("REAL")
|
||||||
.HasComment("Фактический расход кондиционирующей смеси (кг/т)");
|
.HasComment("Фактический расход кондиционирующей смеси (кг/т | гр/кг)");
|
||||||
|
|
||||||
b.Property<double?>("MixtureAmineContent")
|
b.Property<double?>("MixtureAmineContent")
|
||||||
.HasColumnType("REAL")
|
.HasColumnType("REAL")
|
||||||
@@ -57,7 +61,7 @@ namespace GSS2.Core.Analysis.AmineContent.Database.Calibration
|
|||||||
|
|
||||||
b.Property<double?>("MixtureNormalRate")
|
b.Property<double?>("MixtureNormalRate")
|
||||||
.HasColumnType("REAL")
|
.HasColumnType("REAL")
|
||||||
.HasComment("Норма расхода кондиционирующей смеси (кг/т)");
|
.HasComment("Норма расхода кондиционирующей смеси (кг/т | гр/кг)");
|
||||||
|
|
||||||
b.Property<string>("SampleBrand")
|
b.Property<string>("SampleBrand")
|
||||||
.HasMaxLength(512)
|
.HasMaxLength(512)
|
||||||
+3
-2
@@ -25,8 +25,9 @@ namespace GSS2.Core.Analysis.AmineContent.Database.Calibration
|
|||||||
SamplingPlace = table.Column<string>(type: "TEXT", maxLength: 512, nullable: true, comment: "Место отбора пробы"),
|
SamplingPlace = table.Column<string>(type: "TEXT", maxLength: 512, nullable: true, comment: "Место отбора пробы"),
|
||||||
MixtureName = table.Column<string>(type: "TEXT", maxLength: 512, nullable: true, comment: "Название используемой кондиционирующей смеси"),
|
MixtureName = table.Column<string>(type: "TEXT", maxLength: 512, nullable: true, comment: "Название используемой кондиционирующей смеси"),
|
||||||
MixtureAmineContent = table.Column<double>(type: "REAL", nullable: true, comment: "Содержание аминов в кондиционирующей смеси (%)"),
|
MixtureAmineContent = table.Column<double>(type: "REAL", nullable: true, comment: "Содержание аминов в кондиционирующей смеси (%)"),
|
||||||
MixtureNormalRate = table.Column<double>(type: "REAL", nullable: true, comment: "Норма расхода кондиционирующей смеси (кг/т)"),
|
MixtureNormalRate = table.Column<double>(type: "REAL", nullable: true, comment: "Норма расхода кондиционирующей смеси (кг/т | гр/кг)"),
|
||||||
MixtureActualRate = table.Column<double>(type: "REAL", nullable: true, comment: "Фактический расход кондиционирующей смеси (кг/т)")
|
MixtureActualRate = table.Column<double>(type: "REAL", nullable: true, comment: "Фактический расход кондиционирующей смеси (кг/т | гр/кг)"),
|
||||||
|
MeasuredContent = table.Column<double>(type: "REAL", nullable: true, comment: "Измеренное колличество масла (кг/т | гр/кг)")
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
+6
-2
@@ -39,9 +39,13 @@ namespace GSS2.Core.Analysis.AmineContent.Database.Calibration
|
|||||||
.HasColumnType("INTEGER")
|
.HasColumnType("INTEGER")
|
||||||
.HasComment("Уникальный идентификатор");
|
.HasComment("Уникальный идентификатор");
|
||||||
|
|
||||||
|
b.Property<double?>("MeasuredContent")
|
||||||
|
.HasColumnType("REAL")
|
||||||
|
.HasComment("Измеренное колличество масла (кг/т | гр/кг)");
|
||||||
|
|
||||||
b.Property<double?>("MixtureActualRate")
|
b.Property<double?>("MixtureActualRate")
|
||||||
.HasColumnType("REAL")
|
.HasColumnType("REAL")
|
||||||
.HasComment("Фактический расход кондиционирующей смеси (кг/т)");
|
.HasComment("Фактический расход кондиционирующей смеси (кг/т | гр/кг)");
|
||||||
|
|
||||||
b.Property<double?>("MixtureAmineContent")
|
b.Property<double?>("MixtureAmineContent")
|
||||||
.HasColumnType("REAL")
|
.HasColumnType("REAL")
|
||||||
@@ -54,7 +58,7 @@ namespace GSS2.Core.Analysis.AmineContent.Database.Calibration
|
|||||||
|
|
||||||
b.Property<double?>("MixtureNormalRate")
|
b.Property<double?>("MixtureNormalRate")
|
||||||
.HasColumnType("REAL")
|
.HasColumnType("REAL")
|
||||||
.HasComment("Норма расхода кондиционирующей смеси (кг/т)");
|
.HasComment("Норма расхода кондиционирующей смеси (кг/т | гр/кг)");
|
||||||
|
|
||||||
b.Property<string>("SampleBrand")
|
b.Property<string>("SampleBrand")
|
||||||
.HasMaxLength(512)
|
.HasMaxLength(512)
|
||||||
|
|||||||
@@ -7,27 +7,29 @@ public record CalibrationRecord
|
|||||||
[Comment("Уникальный идентификатор")]
|
[Comment("Уникальный идентификатор")]
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
[Comment("Название пробы")]
|
[Comment("Название пробы")]
|
||||||
public required string? SampleName { get; init; }
|
public required string? SampleName { get; set; }
|
||||||
[Comment("Дополнительная информация о пробе")]
|
[Comment("Дополнительная информация о пробе")]
|
||||||
public required string? SampleComment { get; init; }
|
public required string? SampleComment { get; set; }
|
||||||
[Comment("Марка пробы")]
|
[Comment("Марка пробы")]
|
||||||
public required string? SampleBrand { get; init; }
|
public required string? SampleBrand { get; set; }
|
||||||
[Comment("Масса пробы (кг)")]
|
[Comment("Масса пробы (кг)")]
|
||||||
public required double? SampleMass { get; init; }
|
public required double? SampleMass { get; set; }
|
||||||
[Comment("Дата и время отбора пробы")]
|
[Comment("Дата и время отбора пробы")]
|
||||||
public required DateTime? SamplingDateTime { get; init; }
|
public required DateTime? SamplingDateTime { get; set; }
|
||||||
[Comment("Место отбора пробы")]
|
[Comment("Место отбора пробы")]
|
||||||
public required string? SamplingPlace { get; init; }
|
public required string? SamplingPlace { get; set; }
|
||||||
[Comment("Название используемой кондиционирующей смеси")]
|
[Comment("Название используемой кондиционирующей смеси")]
|
||||||
public required string? MixtureName { get; init; }
|
public required string? MixtureName { get; set; }
|
||||||
[Comment("Содержание аминов в кондиционирующей смеси (%)")]
|
[Comment("Содержание аминов в кондиционирующей смеси (%)")]
|
||||||
public required double? MixtureAmineContent { get; init; }
|
public required double? MixtureAmineContent { get; set; }
|
||||||
[Comment("Норма расхода кондиционирующей смеси (кг/т)")]
|
[Comment("Норма расхода кондиционирующей смеси (кг/т | гр/кг)")]
|
||||||
public required double? MixtureNormalRate { get; init; }
|
public required double? MixtureNormalRate { get; set; }
|
||||||
[Comment("Фактический расход кондиционирующей смеси (кг/т)")]
|
[Comment("Фактический расход кондиционирующей смеси (кг/т | гр/кг)")]
|
||||||
public required double? MixtureActualRate { get; init; }
|
public required double? MixtureActualRate { get; set; }
|
||||||
|
[Comment("Измеренное колличество масла (кг/т | гр/кг)")]
|
||||||
|
public required double? MeasuredContent { get; set; }
|
||||||
[Comment("Изображения пробы")]
|
[Comment("Изображения пробы")]
|
||||||
public required List<ImageRecord> SampleImages { get; init; }
|
public required List<ImageRecord> SampleImages { get; set; }
|
||||||
[Comment("Изображения пустого сепаратора")]
|
[Comment("Изображения пустого сепаратора")]
|
||||||
public required List<ImageRecord> SeparatorImages { get; init; }
|
public required List<ImageRecord> SeparatorImages { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,13 +7,13 @@ public record ImageRecord
|
|||||||
[Comment("Уникальный идентификатор")]
|
[Comment("Уникальный идентификатор")]
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
[Comment("Интенсивность видимого света (0..1)")]
|
[Comment("Интенсивность видимого света (0..1)")]
|
||||||
public required double VisibleIntensity { get; init; }
|
public required double VisibleIntensity { get; set; }
|
||||||
[Comment("Интенсивность УФ излучения 365 нм (0..1)")]
|
[Comment("Интенсивность УФ излучения 365 нм (0..1)")]
|
||||||
public required double Uv365Intensity { get; init; }
|
public required double Uv365Intensity { get; set; }
|
||||||
[Comment("Интенсивность УФ излучения 254 нм (0..1)")]
|
[Comment("Интенсивность УФ излучения 254 нм (0..1)")]
|
||||||
public required double Uv254Intensity { get; init; }
|
public required double Uv254Intensity { get; set; }
|
||||||
[Comment("Путь к файлу изображения")]
|
[Comment("Путь к файлу изображения")]
|
||||||
public required string ImagePath { get; init; }
|
public required string ImagePath { get; set; }
|
||||||
|
|
||||||
// 1:N
|
// 1:N
|
||||||
public int? SeparatorRecordId { get; set; }
|
public int? SeparatorRecordId { get; set; }
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
using System.IO.Pipelines;
|
||||||
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace GSS2.Core.Analysis.AmineContent.Database.Calibration;
|
namespace GSS2.Core.Analysis.AmineContent.Database.Calibration;
|
||||||
@@ -7,9 +9,9 @@ public record SeparatorRecord
|
|||||||
[Comment("Уникальный идентификатор")]
|
[Comment("Уникальный идентификатор")]
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
[Comment("Тип сепаратора")]
|
[Comment("Тип сепаратора")]
|
||||||
public required string Type { get; init; }
|
public required string Type { get; set; }
|
||||||
[Comment("Партия сепаратора")]
|
[Comment("Партия сепаратора")]
|
||||||
public required string Batch { get; init; }
|
public required string Batch { get; set; }
|
||||||
[Comment("Изображения сепаратора")]
|
[Comment("Изображения сепаратора")]
|
||||||
public required List<ImageRecord> Images { get; init; }
|
public required List<ImageRecord> Images { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||||||
namespace GSS2.Core.Analysis.AmineContent.Database.Results
|
namespace GSS2.Core.Analysis.AmineContent.Database.Results
|
||||||
{
|
{
|
||||||
[DbContext(typeof(AmineContentResultsContext))]
|
[DbContext(typeof(AmineContentResultsContext))]
|
||||||
[Migration("20260227093041_AmineContentResultsInitial")]
|
[Migration("20260303084204_AmineContentResultsInitial")]
|
||||||
partial class AmineContentResultsInitial
|
partial class AmineContentResultsInitial
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
Reference in New Issue
Block a user