feat: update amine content calibration db

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