Update dependencies.

This commit is contained in:
2020-12-20 16:12:51 +00:00
parent 977294ed8d
commit 5880d93368
29 changed files with 9281 additions and 537 deletions

View File

@@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Marechai.Database.Models
{
@@ -8,12 +8,16 @@ namespace Marechai.Database.Models
{
public AuditType Type { get; set; }
[Required]
public string UserId { get; set; }
public string Table { get; set; }
public JsonObject<Dictionary<string, object>> Keys { get; set; }
public JsonObject<Dictionary<string, object>> OldValues { get; set; }
public JsonObject<Dictionary<string, object>> NewValues { get; set; }
public JsonObject<List<string>> AffectedColumns { get; set; }
public string UserId { get; set; }
public string Table { get; set; }
[Column(TypeName = "json")]
public Dictionary<string, object> Keys { get; set; }
[Column(TypeName = "json")]
public Dictionary<string, object> OldValues { get; set; }
[Column(TypeName = "json")]
public Dictionary<string, object> NewValues { get; set; }
[Column(TypeName = "json")]
public List<string> AffectedColumns { get; set; }
[Required]
public virtual ApplicationUser User { get; set; }