All checks were successful
Build And Push Dev Docker Image / docker (push) Successful in 2m2s
29 lines
708 B
C#
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; }
|
|
}
|
|
}
|