38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
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;
|
|
} |