22 lines
536 B
C#
22 lines
536 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace FinlyticTechnicalAnalysis.Entities;
|
|
|
|
[Table("CachedAnalyses")]
|
|
public class CachedAnalysisEntity
|
|
{
|
|
[Key]
|
|
[MaxLength(20)]
|
|
public string Isin { get; set; } = string.Empty;
|
|
|
|
[MaxLength(20)]
|
|
public string Ticker { get; set; } = string.Empty;
|
|
|
|
[Column(TypeName = "jsonb")]
|
|
public string AnalysisJson { get; set; } = "{}";
|
|
|
|
public DateTime CalculatedAt { get; set; } = DateTime.UtcNow;
|
|
}
|