3deca29f05
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
425 B
C#
17 lines
425 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace MoneyMap.Models;
|
|
|
|
public class Merchant
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(100)]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
public ICollection<Transaction> Transactions { get; set; } = new List<Transaction>();
|
|
public ICollection<CategoryMapping> CategoryMappings { get; set; } = new List<CategoryMapping>();
|
|
}
|