23 lines
573 B
C#
23 lines
573 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace FinlyticFundamentals.Entities;
|
|
|
|
public class AssetEventEntity
|
|
{
|
|
|
|
[Key]
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
|
|
public TickerEntity Ticker { get; set; } = new();
|
|
|
|
public string Type { get; set; } = string.Empty;
|
|
|
|
public DateTime Date { get; set; }
|
|
|
|
[Required]
|
|
public string AssetDataIsin { get; set; } = string.Empty;
|
|
|
|
[ForeignKey(nameof(AssetDataIsin))]
|
|
public AssetDataEntity AssetData { get; set; } = null!;
|
|
} |