26ff8d9b4f
Set up repository with legacy .NET Framework 4.8 source (OLD/), new .NET 10 Blazor solution (NEW/), OpenSpec specifications, documentation, and project configuration.
45 lines
1.1 KiB
C#
Executable File
45 lines
1.1 KiB
C#
Executable File
using System.Collections.Generic;
|
|
|
|
namespace WorkerService.Models
|
|
{
|
|
/// <summary>
|
|
/// Database table specification
|
|
/// </summary>
|
|
public class TableSpec
|
|
{
|
|
/// <summary>
|
|
/// Table name
|
|
/// </summary>
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Data staging table name
|
|
/// </summary>
|
|
public string StagingTableName => $"#Staging{Name}";
|
|
|
|
/// <summary>
|
|
/// Temporary table name
|
|
/// </summary>
|
|
public string TempTableName => $"#{Name}";
|
|
|
|
/// <summary>
|
|
/// Table columns
|
|
/// </summary>
|
|
public List<ColumnSpec> Columns { get; set; }
|
|
|
|
/// <summary>
|
|
/// Table columns that form the primary key
|
|
/// </summary>
|
|
public List<ColumnSpec> PrimaryKey { get; set; }
|
|
|
|
/// <summary>
|
|
/// Constructor
|
|
/// </summary>
|
|
public TableSpec()
|
|
{
|
|
Columns = new List<ColumnSpec>();
|
|
PrimaryKey = new List<ColumnSpec>();
|
|
}
|
|
}
|
|
}
|