20 lines
812 B
C#
20 lines
812 B
C#
namespace Asentrafin.Api.Entities;
|
|
|
|
public class TransactionCategory
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
public Guid? ParentId { get; set; }
|
|
public TransactionCategory? Parent { get; set; }
|
|
public string Name { get; set; } = string.Empty;
|
|
public string Slug { get; set; } = string.Empty;
|
|
public string? PlaidPrimary { get; set; }
|
|
public string? PlaidDetailed { get; set; }
|
|
public int SortOrder { get; set; }
|
|
public bool IsSystem { get; set; } = true;
|
|
public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
|
|
public DateTimeOffset UpdatedAt { get; set; } = DateTimeOffset.UtcNow;
|
|
|
|
public ICollection<TransactionCategory> Children { get; set; } = [];
|
|
public ICollection<TransactionClassification> Classifications { get; set; } = [];
|
|
}
|