Files
Budgeteer/BudgetApp.Data/Entities/Category.cs
T
2026-03-06 11:05:01 +00:00

24 lines
533 B
C#

using System.ComponentModel.DataAnnotations;
namespace BudgetApp.Data.Entities;
public class Category
{
public int Id { get; set; }
[Required, MaxLength(100)]
public string Name { get; set; } = string.Empty;
[MaxLength(10)]
public string Icon { get; set; } = string.Empty;
[Required]
public string UserId { get; set; } = string.Empty;
public ApplicationUser User { get; set; } = default!;
public bool IsDefault { get; set; }
public List<Transaction> Transactions { get; set; } = [];
}