Setu-TS
    Preparing search index...

    Interface DrizzleCompositeKeyOptions

    Per-entity overrides for the Drizzle adapter.

    The only override exercised today is DrizzleCompositeKeyOptions.primaryKey, which replaces the hardcoded 'id' column the adapter reads otherwise. A scalar name yields a single-column key; an array yields a composite-key predicate that ANDs every named column.

    0.2.0

    interface DrizzleCompositeKeyOptions {
        primaryKey?: string | readonly string[];
    }
    Index
    primaryKey?: string | readonly string[]

    Primary-key column(s) for this entity.

    Defaults to ['id'] when absent — the adapter's previous hardcoded path, so an unconfigured entity behaves exactly as it did before, including its refuse-by-name on an absent id column.

    Pass an array for a composite-key table that has no id column but carries a compound primary key (e.g. { tenantId, flag }).

    // Scalar key (default path).
    entities: { User: {} }

    // Composite key — replace the hardcoded 'id'.
    entities: {
    TenantFlag: { primaryKey: ['tenantId', 'flag'] },
    }

    0.2.0