using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Wallet.Data; [Table("Items")] public record ItemEntry { [Key] public Guid Id { get; set; } public required string Name { get; set; } public string? Description { get; set; } public int State { get; set; } = 0; public Guid? ImageId { get; set; } public BlobEntry? Image { get; set; } public required string Category { get; set; } public ICollection Tags { get; set; } = new List(); public ICollection Blobs { get; set; } = new List(); }