AssetManager.API/AssetManager.Data/TiingoTicker.cs

65 lines
1.7 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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