Files
jdescopingtool/OLD/WorkerService/Models/TableSpec.cs
T
Joseph Doherty 26ff8d9b4f Initial commit: JDE Scoping Tool migration project
Set up repository with legacy .NET Framework 4.8 source (OLD/),
new .NET 10 Blazor solution (NEW/), OpenSpec specifications,
documentation, and project configuration.
2026-01-02 07:43:29 -05:00

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>();
}
}
}