fc6fe7a78b
- New Apis/myai-models project: MyAiDbContext (schema myAi), TemplateEntity, ITemplateService, DbTemplateService with 10-min in-memory cache - Seeds EN+RO variants for all user-facing templates (match email, job search results email, HTML status pages, AI system prompt) - Match result email now sent in user's UI language (en/ro) - Job search results email now respects session language - Language propagates: MatchJobRequest -> token -> session -> email - Add Language column to JobSearchTokens and JobSearchSessions (default 'en') - All three Dockerfiles updated to include myai-models in build context Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
23 lines
817 B
C#
23 lines
817 B
C#
namespace CvSearch.Models.Data.Entities;
|
|
|
|
public sealed class JobSearchSessionEntity
|
|
{
|
|
public string Id { get; set; } = string.Empty;
|
|
public string TokenId { get; set; } = string.Empty;
|
|
public string CvDocumentId { get; set; } = string.Empty;
|
|
public string Email { get; set; } = string.Empty;
|
|
public string Status { get; set; } = JobSearchStatus.Pending;
|
|
public string Keywords { get; set; } = string.Empty;
|
|
public string? ProviderConfigJson { get; set; }
|
|
public string Language { get; set; } = "en";
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
}
|
|
|
|
public static class JobSearchStatus
|
|
{
|
|
public const string Pending = "Pending";
|
|
public const string Processing = "Processing";
|
|
public const string Done = "Done";
|
|
public const string Failed = "Failed";
|
|
}
|