Setu-TS
    Preparing search index...

    Interface D1AdapterOptions

    Options for D1Adapter.

    0.2.0

    interface D1AdapterOptions {
        tables?: Readonly<Record<string, D1EntityMapping>>;
    }
    Index
    tables?: Readonly<Record<string, D1EntityMapping>>

    Per-entity table and primary-key overrides, keyed by the entity name passed to getRepository().

    An entity with no entry uses its own name as the table and 'id' as the key, which is why the zero-config path works for a schema whose table names already match.

    new D1Adapter(env.DB as ID1Database, {
    tables: { User: { table: 'users', primaryKey: 'user_id' } },
    });