Features: - Add UK institution recognition (170+ universities) - Add diploma mill detection (100+ blacklisted institutions) - Add education verification service with date plausibility checks - Add local file storage option (no Azure required) - Add default admin user seeding on startup - Enhance Serilog logging with file output Security fixes: - Fix path traversal vulnerability in LocalFileStorageService - Fix open redirect in login endpoint (use LocalRedirect) - Fix password validation message (12 chars, not 6) - Fix login to use HTTP POST endpoint (avoid Blazor cookie issues) Code improvements: - Add CancellationToken propagation to CV parser - Add shared helpers (JsonDefaults, DateHelpers, ScoreThresholds) - Add IUserContextService for user ID extraction - Parallelized company verification in ProcessCVCheckJob - Add 28 unit tests for education verification Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
35 lines
764 B
C#
35 lines
764 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using TrueCV.Domain.Enums;
|
|
|
|
namespace TrueCV.Domain.Entities;
|
|
|
|
public class CVCheck
|
|
{
|
|
[Key]
|
|
public Guid Id { get; set; }
|
|
|
|
public Guid UserId { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(512)]
|
|
public string OriginalFileName { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[MaxLength(2048)]
|
|
public string BlobUrl { get; set; } = string.Empty;
|
|
|
|
public CheckStatus Status { get; set; }
|
|
|
|
public string? ExtractedDataJson { get; set; }
|
|
|
|
public int? VeracityScore { get; set; }
|
|
|
|
public string? ReportJson { get; set; }
|
|
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
public DateTime? CompletedAt { get; set; }
|
|
|
|
public ICollection<CVFlag> Flags { get; set; } = new List<CVFlag>();
|
|
}
|