using SqlSugar;
namespace AssetManager.Data;
///
/// Tiingo 股票代码字典表
///
[SugarTable("tiingo_tickers")]
public class TiingoTicker
{
///
/// 主键 ID
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
///
/// 标的代码(ticker)
///
[SugarColumn(ColumnDataType = "varchar(50)")]
public string? Ticker { get; set; }
///
/// 交易所(exchange)
///
[SugarColumn(ColumnDataType = "varchar(50)")]
public string? Exchange { get; set; }
///
/// 资产类型(assetType)
///
[SugarColumn(ColumnDataType = "varchar(50)")]
public string? AssetType { get; set; }
///
/// 计价货币(priceCurrency)
///
[SugarColumn(ColumnDataType = "varchar(10)")]
public string? PriceCurrency { get; set; }
///
/// 数据开始日期(startDate)
///
[SugarColumn(IsNullable = true)]
public DateTime? StartDate { get; set; }
///
/// 数据结束日期(endDate)
///
[SugarColumn(IsNullable = true)]
public DateTime? EndDate { get; set; }
///
/// 创建时间
///
public DateTime CreatedAt { get; set; } = DateTime.Now;
///
/// 更新时间
///
public DateTime UpdatedAt { get; set; } = DateTime.Now;
}