Changes
Build and Push Docker Images / build (push) Failing after 1s

This commit is contained in:
2026-05-07 17:09:24 +03:00
parent 898f4987a5
commit fe3dbc37ad
16 changed files with 939 additions and 212 deletions
+8 -2
View File
@@ -3,8 +3,12 @@ using Microsoft.EntityFrameworkCore;
namespace Api.Data;
public sealed class CvMatcherDbContext : DbContext
{
public const string SchemaName = "cvMatcher";
public const string MigrationTableName = "_Migrations";
public CvMatcherDbContext(DbContextOptions<CvMatcherDbContext> options) : base(options)
{
}
@@ -14,9 +18,11 @@ public sealed class CvMatcherDbContext : DbContext
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.HasDefaultSchema(SchemaName);
modelBuilder.Entity<CvMatchResultEntity>(entity =>
{
entity.ToTable("CvMatchResults");
entity.ToTable("Results");
entity.HasKey(x => x.Id);
entity.Property(x => x.Id).HasMaxLength(64);
entity.Property(x => x.CvDocumentId).HasMaxLength(64).IsRequired();
@@ -28,7 +34,7 @@ public sealed class CvMatcherDbContext : DbContext
modelBuilder.Entity<CvMatcherChatCacheEntity>(entity =>
{
entity.ToTable("CvMatcherChatCache");
entity.ToTable("ChatCache");
entity.HasKey(x => x.CacheKey);
entity.Property(x => x.CacheKey).HasMaxLength(64);
entity.Property(x => x.Model).HasMaxLength(120).IsRequired();
@@ -21,7 +21,7 @@ public sealed class EfMatcherRepository : IMatcherRepository
public async Task InitializeAsync(CancellationToken ct)
{
_logger.LogInformation("Ensuring CV matcher database schema exists using EF Core");
await _db.Database.EnsureCreatedAsync(ct);
//await _db.Database.EnsureCreatedAsync(ct);
}
public async Task<JobMatchResponse?> GetMatchAsync(string cvDocumentId, string jobDocumentId, CancellationToken ct)