using System;
using System.Collections.Generic;
using Dpz.Core.Infrastructure;
using Dpz.Core.Infrastructure.Entity;
namespace Dpz.Core.Public.Entity;
[Backup]
public class UserHistory:BaseEntity
{
public required string Account { get; set; }
[BsonDateTimeOptions(Kind = DateTimeKind.Local)]
public DateTime ChangeTime { get; set; }
public List<ChangeDetail> Changes { get; set; } = [];
}
public class ChangeDetail
{
public string? Field { get; set; }
public object? OldValue { get; set; }
public object? NewValue { get; set; }
}