Compare commits

...

2 Commits

Author SHA1 Message Date
niannian zheng
0a053906ef Merge branch 'main' of https://git.jb18cm.plus/fanfpy/AssetManager.API
# Conflicts:
#	AssetManager.Data/TiingoTicker.cs
2026-03-06 17:42:08 +08:00
niannian zheng
95a29cf86a 删除股票字典表时间字段 2026-03-06 17:33:39 +08:00
2 changed files with 3 additions and 12 deletions

View File

@ -9,7 +9,7 @@ namespace AssetManager.Data;
public class TiingoTicker public class TiingoTicker
{ {
/// <summary> /// <summary>
/// 主键 ID(自增,导入时忽略此字段) /// 主键 ID
/// </summary> /// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)] [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; } public int Id { get; set; }
@ -38,15 +38,5 @@ public class TiingoTicker
[SugarColumn(ColumnDataType = "varchar(10)")] [SugarColumn(ColumnDataType = "varchar(10)")]
public string? PriceCurrency { get; set; } 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,3 +1,4 @@
using System.Net.Http.Json;
using System.Text.Json; using System.Text.Json;
using AssetManager.Models.DTOs; using AssetManager.Models.DTOs;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;