36 lines
991 B
C#
36 lines
991 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace SQLVision.Core.Models;
|
|
|
|
public class ExecutionHistoryItem
|
|
{
|
|
[JsonPropertyName("id")]
|
|
public string Id { get; set; } = Guid.NewGuid().ToString();
|
|
|
|
[JsonPropertyName("scriptId")]
|
|
public string ScriptId { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("scriptName")]
|
|
public string ScriptName { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("executionTime")]
|
|
public DateTime ExecutionTime { get; set; }
|
|
|
|
[JsonPropertyName("duration")]
|
|
public TimeSpan Duration { get; set; }
|
|
|
|
[JsonPropertyName("success")]
|
|
public bool Success { get; set; }
|
|
|
|
[JsonPropertyName("parameters")]
|
|
public Dictionary<string, object> Parameters { get; set; } = new();
|
|
|
|
[JsonPropertyName("rowCount")]
|
|
public int RowCount { get; set; }
|
|
|
|
[JsonPropertyName("errorMessage")]
|
|
public string? ErrorMessage { get; set; }
|
|
|
|
[JsonPropertyName("executedSql")]
|
|
public string? ExecutedSql { get; set; }
|
|
} |