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
All checks were successful
Build And Push Dev Docker Image / docker (push) Successful in 2m2s
This commit is contained in:
28
FoodsharingSiegen.Contracts/Entity/ProspectImage.cs
Normal file
28
FoodsharingSiegen.Contracts/Entity/ProspectImage.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user