Extract the primary-key column descriptor for a schema.
Returns:
the literal property-key string for a single-column primary key
(e.g. 'id'),
a tuple of property-key strings for a composite primary key
(e.g. ['userId', 'roleId']),
or never if no primary key is declared.
Composite primary keys are detected via the COMPOSITE_PRIMARY_KEY_BRAND
placed on the object schema by .hasPrimaryKey([...] as const). Use
as const on the column tuple to preserve ordering at the type level.
Extract the primary-key column descriptor for a schema.
Returns:
'id'),['userId', 'roleId']),neverif no primary key is declared.Composite primary keys are detected via the
COMPOSITE_PRIMARY_KEY_BRANDplaced on the object schema by.hasPrimaryKey([...] as const). Useas conston the column tuple to preserve ordering at the type level.