asentrafin/backend/Entities/PlaidInvestmentTransaction.cs

29 lines
1.2 KiB
C#

namespace Asentrafin.Api.Entities;
public class PlaidInvestmentTransaction
{
public Guid Id { get; set; } = Guid.NewGuid();
public Guid PlaidItemId { get; set; }
public PlaidItem PlaidItem { get; set; } = null!;
public Guid? PlaidAccountId { get; set; }
public PlaidAccount? PlaidAccount { get; set; }
public Guid? PlaidSecurityId { get; set; }
public PlaidSecurity? PlaidSecurity { get; set; }
public string PlaidInvestmentTransactionId { get; set; } = string.Empty;
public string AccountPlaidId { get; set; } = string.Empty;
public string? SecurityPlaidId { get; set; }
public DateOnly Date { get; set; }
public string Name { get; set; } = string.Empty;
public decimal Quantity { get; set; }
public decimal Amount { get; set; }
public decimal? Price { get; set; }
public decimal? Fees { get; set; }
public string? Type { get; set; }
public string? Subtype { get; set; }
public string? IsoCurrencyCode { get; set; }
public string? UnofficialCurrencyCode { get; set; }
public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
public DateTimeOffset UpdatedAt { get; set; } = DateTimeOffset.UtcNow;
public string RawJson { get; set; } = "{}";
}