Files
xAiModels/Configurations/Entities/XAiVectorEntityConfiguration.cs
T
2026-10-27 05:55:53 +03:30

27 lines
783 B
C#

using System;
using xAiModels.Constants;
using xDataService.Providers;
using xAiModels.Models.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace xAiModels.Configurations.Entities
{
public class XAiVectorEntityConfiguration : XBaseEntityTypeConfiguration<XAiVector, Guid>
{
public override void Configure(EntityTypeBuilder<XAiVector> builder)
{
//
builder.ToTable(XAiModelsConstants.XAiVectorTable);
//
builder.Property(x => x.Type).HasMaxLength(100);
//
// Indexes for Prefix Scoped Search and Type Filtering ...
builder.HasIndex(x => x.Identifier);
builder.HasIndex(x => x.Type);
}
}
}