29 lines
730 B
C#
29 lines
730 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace FinlyticFundamentals.Entities;
|
|
|
|
/// <summary>
|
|
/// Relational executive board table linked to the main fundamentals entity by ISIN.
|
|
/// </summary>
|
|
public class CompanyExecutiveEntity
|
|
{
|
|
[Key]
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
|
|
[Required]
|
|
public string Isin { get; set; } = string.Empty;
|
|
|
|
[JsonIgnore]
|
|
public AssetFundamentalsEntity? AssetFundamentals { get; set; }
|
|
|
|
[Required]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string Title { get; set; } = string.Empty;
|
|
public int? Age { get; set; }
|
|
public decimal? Compensation { get; set; }
|
|
}
|