96 lines
3.2 KiB
C#
96 lines
3.2 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Api.Data;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace Api.Migrations
|
|
{
|
|
[DbContext(typeof(CvMatcherDbContext))]
|
|
[Migration("20260507140442_InitialCvMatcherSchema")]
|
|
partial class InitialCvMatcherSchema
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasDefaultSchema("cvMatcher")
|
|
.HasAnnotation("ProductVersion", "10.0.7")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("Api.Data.Entities.CvMatchResultEntity", 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>("JobDocumentId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ResultJson")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("Score")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CvDocumentId", "JobDocumentId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Results", "cvMatcher");
|
|
});
|
|
|
|
modelBuilder.Entity("Api.Data.Entities.CvMatcherChatCacheEntity", b =>
|
|
{
|
|
b.Property<string>("CacheKey")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("datetime2")
|
|
.HasDefaultValueSql("SYSUTCDATETIME()");
|
|
|
|
b.Property<string>("Model")
|
|
.IsRequired()
|
|
.HasMaxLength(120)
|
|
.HasColumnType("nvarchar(120)");
|
|
|
|
b.Property<string>("ResponseText")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("Temperature")
|
|
.HasColumnType("decimal(4,2)");
|
|
|
|
b.HasKey("CacheKey");
|
|
|
|
b.ToTable("ChatCache", "cvMatcher");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|