✨ Social credit validation and recalculation
This commit is contained in:
		@@ -4,12 +4,19 @@ using NodaTime.Serialization.Protobuf;
 | 
			
		||||
 | 
			
		||||
namespace DysonNetwork.Shared.Models;
 | 
			
		||||
 | 
			
		||||
public enum SocialCreditRecordStatus
 | 
			
		||||
{
 | 
			
		||||
    Active,
 | 
			
		||||
    Expired
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
public class SnSocialCreditRecord : ModelBase
 | 
			
		||||
{
 | 
			
		||||
    public Guid Id { get; set; }
 | 
			
		||||
    [MaxLength(1024)] public string ReasonType { get; set; } = string.Empty;
 | 
			
		||||
    [MaxLength(1024)] public string Reason { get; set; } = string.Empty;
 | 
			
		||||
    public double Delta { get; set; }
 | 
			
		||||
    public SocialCreditRecordStatus Status { get; set; } = SocialCreditRecordStatus.Active;
 | 
			
		||||
    public Instant? ExpiredAt { get; set; }
 | 
			
		||||
    
 | 
			
		||||
    public Guid AccountId { get; set; }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user