Skip to content

pgEntitlementsTable

function pgEntitlementsTable(name?, opts?): DrizzleKvTable;

Defined in: src/drizzle/pg.ts:59

Build the Drizzle pgTable for the entitlements KV store. Base columns are fixed — key text COLLATE "C" PRIMARY KEY, value jsonb NOT NULL — and required by createDrizzleStorage; schema/extraColumns/extraIndexes extend it. The table name defaults to "xtandard_entitlements_kv".

Parameter Type Default value
name? string "xtandard_entitlements_kv"
opts? PgKvTableOptions undefined

DrizzleKvTable