mirror of
https://github.com/marcominerva/SqlDatabaseVectorSearch.git
synced 2026-08-04 09:48:57 +00:00
dba2fb1c41
Updated `ProductVersion` in `ApplicationDbContextModelSnapshot.cs` to target the stable release version `10.0.0`. Added `TinyHelpers.AspNetCore.OpenApi` to `Program.cs` and enabled OpenAPI options by uncommenting `RemoveServerList` and `AddDefaultProblemDetailsResponse`. These changes improve API documentation and error handling.
97 lines
3.3 KiB
C#
97 lines
3.3 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.Data.SqlTypes;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using SqlDatabaseVectorSearch.Data;
|
|
|
|
#nullable disable
|
|
|
|
namespace SqlDatabaseVectorSearch.Migrations
|
|
{
|
|
[DbContext(typeof(ApplicationDbContext))]
|
|
partial class ApplicationDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "10.0.0")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("SqlDatabaseVectorSearch.Data.Entities.Document", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTimeOffset>("CreationDate")
|
|
.HasColumnType("datetimeoffset");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Documents", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("SqlDatabaseVectorSearch.Data.Entities.DocumentChunk", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Content")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid>("DocumentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<SqlVector<float>>("Embedding")
|
|
.HasColumnType("vector(1536)");
|
|
|
|
b.Property<int>("Index")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("IndexOnPage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("PageNumber")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("DocumentId");
|
|
|
|
b.ToTable("DocumentChunks", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("SqlDatabaseVectorSearch.Data.Entities.DocumentChunk", b =>
|
|
{
|
|
b.HasOne("SqlDatabaseVectorSearch.Data.Entities.Document", "Document")
|
|
.WithMany("Chunks")
|
|
.HasForeignKey("DocumentId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired()
|
|
.HasConstraintName("FK_DocumentChunks_Documents");
|
|
|
|
b.Navigation("Document");
|
|
});
|
|
|
|
modelBuilder.Entity("SqlDatabaseVectorSearch.Data.Entities.Document", b =>
|
|
{
|
|
b.Navigation("Chunks");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|