using System.Collections.Generic;
namespace WorkerService.Models
{
///
/// Database table specification
///
public class TableSpec
{
///
/// Table name
///
public string Name { get; set; }
///
/// Data staging table name
///
public string StagingTableName => $"#Staging{Name}";
///
/// Temporary table name
///
public string TempTableName => $"#{Name}";
///
/// Table columns
///
public List Columns { get; set; }
///
/// Table columns that form the primary key
///
public List PrimaryKey { get; set; }
///
/// Constructor
///
public TableSpec()
{
Columns = new List();
PrimaryKey = new List();
}
}
}