Add validation
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Wallet.Data;
|
||||
|
||||
[Table("Blobs")]
|
||||
public record BlobEntity
|
||||
{
|
||||
public byte[]? Data { get; set; }
|
||||
|
||||
public int Type { get; set; }
|
||||
|
||||
[Key]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public DateTime DateTime { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user