Implement identity verification feature with image upload and token management
All checks were successful
Build And Push Dev Docker Image / docker (push) Successful in 2m2s

This commit is contained in:
a.beging@eas-solutions.de
2026-04-20 15:54:17 +02:00
parent a93de45270
commit b3212acf6d
15 changed files with 1043 additions and 6 deletions

View File

@@ -63,6 +63,16 @@ namespace FoodsharingSiegen.Contracts.Entity
/// </summary>
public bool Warning { get; set; }
/// <summary>
/// Gets or sets a token string used to securely authorize upload logic.
/// </summary>
public Guid? VerificationToken { get; set; }
/// <summary>
/// Gets or sets uploaded identity verification images.
/// </summary>
public ICollection<ProspectImage>? Images { get; set; }
#endregion
}
}

View File

@@ -0,0 +1,28 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace FoodsharingSiegen.Contracts.Entity
{
/// <summary>
/// Represents an uploaded image for a prospect's verification.
/// </summary>
public class ProspectImage
{
[Key]
public Guid Id { get; set; }
public Guid ProspectId { get; set; }
[ForeignKey("ProspectId")]
public Prospect? Prospect { get; set; }
[Required]
public byte[] ImageData { get; set; } = [];
[Required]
[MaxLength(100)]
public string ContentType { get; set; } = string.Empty;
public DateTime Created { get; set; }
}
}