Get items stored and retrieved from the db

This commit is contained in:
TheXamlGuy
2024-05-12 14:50:10 +01:00
parent fd1c7e01be
commit c5c2756c5b
15 changed files with 84 additions and 90 deletions
+20
View File
@@ -0,0 +1,20 @@
using Bitvault.Data;
using System.ComponentModel.DataAnnotations;
namespace Bitvault.Data;
public record Item
{
[Key]
public int Id { get; set; }
public string? Name { get; set; }
public string? Description { get; set; }
public int State { get; set; } = 0;
public ICollection<Tag>? Tags { get; }
public ICollection<Document>? Documents { get; }
}