Get items stored and retrieved from the db
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user