feat(dal,api): добавлен индекс в таблицу UnitInValues. В api изменены респонсы Template и Unit.

This commit is contained in:
Mikhail Trubnikov
2025-11-21 10:56:30 +10:00
parent 240d292cee
commit ddbae48973
11 changed files with 4063 additions and 23 deletions

View File

@@ -13,7 +13,7 @@
public int? MaxValueRelationships { get; set; }
public bool? isParentRelationships { get; set; }
public bool? IsParentRelationships { get; set; }
public required string TemplateNameMask { get; set; }

View File

@@ -32,7 +32,8 @@
public bool IsAutoDistributionEnabled { get; set; }
public UnitResponse? Unit { get; set; }
//public UnitResponse? Unit { get; set; }
public UnitWithAttributesResponse? Unit { get; set; }
public JobResponse? Job { get; set; }

View File

@@ -16,7 +16,7 @@
/// <summary>
/// Response с всеми аттребутами и их значениями
/// Response со всеми аттребутами и их значениями
/// </summary>
public class UnitWithAttributesResponse : UnitResponse
{
@@ -24,6 +24,13 @@
public List<AttributeResponse>? Attributes { get; set; }
//public List<UnitResponse>? Parents { get; set; }
//public List<UnitResponse>? Childrens { get; set; }
}
public class UnitRelationshipsAndAttributesResponse : UnitWithAttributesResponse
{
public List<UnitResponse>? Parents { get; set; }
public List<UnitResponse>? Childrens { get; set; }