99e5cfb76b
Closes #41 - Add RequireKeywordInAnchor per-provider flag (default true); set false for ejobs.ro and bestjobs.eu so Stage 2 anchor-text filter is skipped — their search URL already filters by relevance server-side - Update AI system prompts (en + ro) to extract concise job-board-friendly keywords (role title + key tech, not abstract concepts) and candidate location - Propagate location through JobMatchResponse -> CreateJobSearchTokenRequest -> JobSearchTokenEntity -> JobSearchSessionEntity - Add {location} and {location-slug} substitution in HtmlJobSearcher - Update provider SearchUrlTemplates to include location: ejobs.ro: /locuri-de-munca/{location-slug}?q={keywords} bestjobs.eu: /ro/locuri-de-munca-in-{location-slug}?keywords={keywords} linkedin.com: ?keywords={keywords}&location={location} - Three new migrations: AddRequireKeywordInAnchorAndLocation, ImproveKeywordsAndAddLocation, AddLocationToProviders Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
244 lines
8.7 KiB
C#
244 lines
8.7 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using CvSearch.Data;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace CvSearch.Data.Migrations
|
|
{
|
|
[DbContext(typeof(CvSearchDbContext))]
|
|
[Migration("20260608124304_AddRequireKeywordInAnchorAndLocation")]
|
|
partial class AddRequireKeywordInAnchorAndLocation
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasDefaultSchema("cvSearch")
|
|
.HasAnnotation("ProductVersion", "10.0.7")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("CvSearch.Data.Entities.JobProviderEntity", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("DisplayOrder")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("InitialKeywordsJson")
|
|
.IsRequired()
|
|
.ValueGeneratedOnAdd()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("nvarchar(2000)")
|
|
.HasDefaultValue("[]");
|
|
|
|
b.Property<string>("JobLinkContains")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<int>("MaxResults")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(20);
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<bool>("RequireKeywordInAnchor")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("SearchUrlTemplate")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("nvarchar(1024)");
|
|
|
|
b.Property<bool>("UseHeadlessBrowser")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("JobProviders", "cvSearch");
|
|
});
|
|
|
|
modelBuilder.Entity("CvSearch.Data.Entities.JobSearchResultEntity", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("datetime2")
|
|
.HasDefaultValueSql("SYSUTCDATETIME()");
|
|
|
|
b.Property<string>("JobText")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("JobTitle")
|
|
.IsRequired()
|
|
.HasMaxLength(512)
|
|
.HasColumnType("nvarchar(512)");
|
|
|
|
b.Property<string>("JobUrl")
|
|
.IsRequired()
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("nvarchar(2048)");
|
|
|
|
b.Property<string>("ProviderName")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<string>("ResultJson")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("Score")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("SessionId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("SessionId");
|
|
|
|
b.ToTable("JobSearchResults", "cvSearch");
|
|
});
|
|
|
|
modelBuilder.Entity("CvSearch.Data.Entities.JobSearchSessionEntity", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("datetime2")
|
|
.HasDefaultValueSql("SYSUTCDATETIME()");
|
|
|
|
b.Property<string>("CvDocumentId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Email")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<string>("Keywords")
|
|
.IsRequired()
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<string>("Language")
|
|
.IsRequired()
|
|
.ValueGeneratedOnAdd()
|
|
.HasMaxLength(8)
|
|
.HasColumnType("nvarchar(8)")
|
|
.HasDefaultValue("en");
|
|
|
|
b.Property<string>("Location")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ProviderConfigJson")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("nvarchar(32)");
|
|
|
|
b.Property<string>("TokenId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Status");
|
|
|
|
b.ToTable("JobSearchSessions", "cvSearch");
|
|
});
|
|
|
|
modelBuilder.Entity("CvSearch.Data.Entities.JobSearchTokenEntity", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("datetime2")
|
|
.HasDefaultValueSql("SYSUTCDATETIME()");
|
|
|
|
b.Property<string>("CvDocumentId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Email")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<DateTime>("ExpiresAt")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Keywords")
|
|
.IsRequired()
|
|
.ValueGeneratedOnAdd()
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)")
|
|
.HasDefaultValue("");
|
|
|
|
b.Property<string>("Language")
|
|
.IsRequired()
|
|
.ValueGeneratedOnAdd()
|
|
.HasMaxLength(8)
|
|
.HasColumnType("nvarchar(8)")
|
|
.HasDefaultValue("en");
|
|
|
|
b.Property<string>("Location")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("Used")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("JobSearchTokens", "cvSearch");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|