18 lines
771 B
C#
18 lines
771 B
C#
using FreeSql.DataAnnotations;
|
|
|
|
namespace Store.Modules.CloudProduct.Entities;
|
|
|
|
/// <summary>跨用户复用的图片识别数据,仅存储成功识别结果。</summary>
|
|
[Table(Name = "image_analysis_cache")]
|
|
public sealed class ImageAnalysisCache
|
|
{
|
|
/// <summary>客户端指定的 MD5 缓存键,统一保存为 32 位小写十六进制。</summary>
|
|
[Column(IsPrimary = true, StringLength = 32)]
|
|
public string CacheKey { get; set; } = "";
|
|
/// <summary>模型识别结果的 JSON 字符串数组,空数组表示未识别到文字或品牌。</summary>
|
|
[Column(DbType = "longtext")]
|
|
public string RecognitionResult { get; set; } = "";
|
|
/// <summary>缓存最近更新时间,UTC。</summary>
|
|
public DateTime UpdatedAt { get; set; }
|
|
}
|