mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 11:04:25 +00:00
25 lines
845 B
C#
25 lines
845 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Marechai.Database.Models
|
|
{
|
|
public class Audit : BaseModel<long>
|
|
{
|
|
public AuditType Type { get; set; }
|
|
[Required]
|
|
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; }
|
|
}
|
|
} |