PostgreSQL database management for Sorcha's distributed ledger platform. This project uses PostgreSQL 17 with Npgsql 8.0+ and Entity Framework Core 10, featuring dedicated schemas (wallet, public), JSONB columns for metadata, and .NET Aspire service discovery for connection management.
| Schema isolation | Separate domains | modelBuilder.HasDefaultSchema("wallet") | | JSONB columns | Flexible metadata | HasColumnType("jsonb") | | Soft deletes | Query filters | HasQueryFilter(e => e.DeletedAt == null) | | Row versioning | Concurrency | Property(e => e.RowVersion).IsRowVersion() |
| Composite indexes | Query performance | HasIndex(e => new { e.Owner, e.Tenant }) | | UUID generation | Primary keys | HasDefaultValueSql("genrandomuuid()") |
Gestisce i database PostgreSQL e l'integrazione di Entity Framework Core. Da utilizzare durante: la configurazione di connessioni al database, la scrittura di migrazioni, la creazione di classi DbContext, l'ottimizzazione delle query o l'integrazione con .NET Aspire. Fonte: stuartf303/sorcha.