Добавьте файлы проекта.
This commit is contained in:
38
SQLVision.Core/Models/OutputDefinition.cs
Normal file
38
SQLVision.Core/Models/OutputDefinition.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using SQLVision.Core.Enums;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SQLVision.Core.Models;
|
||||
|
||||
public class OutputDefinition
|
||||
{
|
||||
[JsonPropertyName("type")]
|
||||
public OutputType Type { get; set; } = OutputType.Table;
|
||||
|
||||
[JsonPropertyName("subType")]
|
||||
public string? SubType { get; set; }
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; } = "Result";
|
||||
|
||||
[JsonPropertyName("isPrimary")]
|
||||
public bool IsPrimary { get; set; } = false;
|
||||
|
||||
[JsonPropertyName("options")]
|
||||
public Dictionary<string, string> Options { get; set; } = new();
|
||||
|
||||
[JsonPropertyName("dataTableName")]
|
||||
public string? DataTableName { get; set; }
|
||||
|
||||
// Для графиков
|
||||
[JsonPropertyName("xAxisColumn")]
|
||||
public string? XAxisColumn { get; set; }
|
||||
|
||||
[JsonPropertyName("yAxisColumn")]
|
||||
public string? YAxisColumn { get; set; }
|
||||
|
||||
[JsonPropertyName("seriesColumn")]
|
||||
public string? SeriesColumn { get; set; }
|
||||
|
||||
[JsonPropertyName("chartType")]
|
||||
public ChartType ChartType { get; set; } = ChartType.Line;
|
||||
}
|
||||
Reference in New Issue
Block a user