wip: doctor/cli/docs/api to vector db consolidation; api hardening for descriptions, tenant, and scopes; migrations and conversions of all DALs to EF v10

This commit is contained in:
master
2026-02-23 15:30:50 +02:00
parent bd8fee6ed8
commit e746577380
1424 changed files with 81225 additions and 25251 deletions

View File

@@ -1,7 +1,9 @@
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Npgsql;
using StellaOps.Infrastructure.Postgres.Connections;
using StellaOps.Infrastructure.Postgres.Options;
using StellaOps.Notify.Persistence.Postgres.Models;
namespace StellaOps.Notify.Persistence.Postgres;
@@ -27,6 +29,15 @@ public sealed class NotifyDataSource : DataSourceBase
/// <inheritdoc />
protected override string ModuleName => "Notify";
/// <inheritdoc />
protected override void ConfigureDataSourceBuilder(NpgsqlDataSourceBuilder builder)
{
// Register PostgreSQL enum type mappings so Npgsql sends enum values natively
// instead of text, matching the notify.channel_type and notify.delivery_status DB types.
builder.MapEnum<ChannelType>(DefaultSchemaName + ".channel_type");
builder.MapEnum<DeliveryStatus>(DefaultSchemaName + ".delivery_status");
}
private static PostgresOptions CreateOptions(PostgresOptions baseOptions)
{
if (string.IsNullOrWhiteSpace(baseOptions.SchemaName))