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