a scoring model
This commit is contained in:
parent
bdfc8d4671
commit
8a46341755
17 changed files with 832 additions and 3 deletions
26
src/Yavsc.Server/Models/Kyc/ModerationAction.cs
Normal file
26
src/Yavsc.Server/Models/Kyc/ModerationAction.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
// Yavsc.Models.Kyc/ModerationLog.cs
|
||||
namespace Yavsc.Models.Kyc
|
||||
{
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
public enum ModerationAction { Approved, Rejected, Redacted }
|
||||
|
||||
/// <summary>
|
||||
/// Trace immuable de chaque décision de modération.
|
||||
/// Pseudonymisée : ModeratorId est l'Id ASP.NET Identity, pas un nom.
|
||||
/// </summary>
|
||||
public class ModerationLog
|
||||
{
|
||||
[Key]
|
||||
public long Id { get; set; }
|
||||
|
||||
public long DeclarationId { get; set; }
|
||||
public virtual TrustDeclaration Declaration { get; set; }
|
||||
|
||||
public string ModeratorId { get; set; } // ASP.NET Identity UserId
|
||||
public ModerationAction Action { get; set; }
|
||||
public int ScoreDelta { get; set; }
|
||||
public DateTime Timestamp { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue