Module: Hecks::Adapters::Postgres::SchemaBuilder

Included in:
Hecks::Adapters::Postgres
Defined in:
lib/hecks/adapters/driven/postgres/schema_builder.rb

Overview

The DDL: one table per aggregate, a real column per attribute (a jsonb column per nested/list attribute), an append-only entry table beside it, the shared events/saga tables — and the automatic indexing this adapter carries that PostgresEra does not (see docs/implemented/postgres-era-adapter-split-plan.md, governing principle 3: every field a declared query filters or sorts on is safe to index directly here, since there is no head_view reduction to route around the way PostgresEra's own cache-table story exists for).