31 lines
1020 B
C#
31 lines
1020 B
C#
namespace MinAttest.Domain.Entities;
|
|
|
|
public class Attest
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid PersonId { get; set; }
|
|
public Person Person { get; set; } = null!;
|
|
|
|
public Guid? EmployerId { get; set; }
|
|
public Employer? Employer { get; set; }
|
|
|
|
public string Title { get; set; } = string.Empty;
|
|
public DateOnly From { get; set; }
|
|
public DateOnly To { get; set; }
|
|
public string? Summary { get; set; }
|
|
|
|
public string BlobPath { get; set; } = string.Empty;
|
|
public string? BlobHash { get; set; }
|
|
|
|
// Temporary in-DB storage (to be replaced by Azure Blob)
|
|
public byte[]? Content { get; set; }
|
|
public string? ContentType { get; set; }
|
|
public long? ContentLength { get; set; }
|
|
|
|
public AttestStatus Status { get; set; } = AttestStatus.Unverified;
|
|
public DateTimeOffset IssuedAt { get; set; } = DateTimeOffset.UtcNow;
|
|
public string? IssuedBy { get; set; }
|
|
|
|
public ICollection<ShareLink> ShareLinks { get; set; } = [];
|
|
}
|