Initial import

This commit is contained in:
Stein Helge Riise
2025-11-17 08:32:46 +01:00
commit ede31fbb7e
129 changed files with 9514 additions and 0 deletions
@@ -0,0 +1,30 @@
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; } = [];
}