asentrafin/backend/Entities/PlaidItem.cs

22 lines
1011 B
C#

namespace Asentrafin.Api.Entities;
public class PlaidItem
{
public Guid Id { get; set; } = Guid.NewGuid();
public string AccessToken { get; set; } = string.Empty;
public string? PlaidItemId { get; set; }
public string? InstitutionId { get; set; }
public string? InstitutionName { get; set; }
public string? TransactionsCursor { get; set; }
public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
public DateTimeOffset UpdatedAt { get; set; } = DateTimeOffset.UtcNow;
public DateTimeOffset? LastAccountsSyncedAt { get; set; }
public DateTimeOffset? LastTransactionsSyncedAt { get; set; }
public DateTimeOffset? LastInvestmentsSyncedAt { get; set; }
public ICollection<PlaidAccount> Accounts { get; set; } = [];
public ICollection<PlaidTransaction> Transactions { get; set; } = [];
public ICollection<PlaidHolding> Holdings { get; set; } = [];
public ICollection<PlaidInvestmentTransaction> InvestmentTransactions { get; set; } = [];
}