Compare commits

..

No commits in common. "0a053906ef5400b9a8da6873d4e00a58bde9c006" and "0f7213cab8c558e674292007a81bee553aba308d" have entirely different histories.

2 changed files with 12 additions and 3 deletions

View File

@ -9,7 +9,7 @@ namespace AssetManager.Data;
public class TiingoTicker
{
/// <summary>
/// 主键 ID
/// 主键 ID(自增,导入时忽略此字段)
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
@ -38,5 +38,15 @@ public class TiingoTicker
[SugarColumn(ColumnDataType = "varchar(10)")]
public string? PriceCurrency { get; set; }
/// <summary>
/// 创建时间(导入时可空,数据库会自动设置)
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? CreatedAt { get; set; }
/// <summary>
/// 更新时间(导入时可空,数据库会自动设置)
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? UpdatedAt { get; set; }
}

View File

@ -1,4 +1,3 @@
using System.Net.Http.Json;
using System.Text.Json;
using AssetManager.Models.DTOs;
using Microsoft.Extensions.Logging;