Refactoring Data entities to fit one standard convention

This commit is contained in:
rockstardev
2020-12-28 14:57:21 -06:00
parent 91cb9129ab
commit c9dc60be7b
28 changed files with 173 additions and 387 deletions

View File

@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Microsoft.EntityFrameworkCore;
namespace BTCPayServer.Data
@@ -18,13 +15,12 @@ namespace BTCPayServer.Data
public WebhookData Webhook { get; set; }
[Required]
public DateTimeOffset Timestamp
{
get; set;
}
public DateTimeOffset Timestamp { get; set; }
[Required]
public byte[] Blob { get; set; }
internal static void OnModelCreating(ModelBuilder builder)
{
builder.Entity<WebhookDeliveryData>()