Files
fs-onboarding/FoodsharingSiegen.Contracts/Entity/ProspectImage.cs
a.beging@eas-solutions.de b3212acf6d
All checks were successful
Build And Push Dev Docker Image / docker (push) Successful in 2m2s
Implement identity verification feature with image upload and token management
2026-04-20 15:54:17 +02:00

29 lines
708 B
C#

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; }
}
}