Create an immutable table identity for typed flat joins and projections. The schema is not modified, so it can be joined repeatedly under different names.
Source table schema, including mapped columns and read scopes.
Unique identifier within the query, checked by isSqlIdentifier().
If name is not a supported single SQL identifier.
const owner = alias(UserSchema, 'owner'); Copy
const owner = alias(UserSchema, 'owner');
Create an immutable table identity for typed flat joins and projections. The schema is not modified, so it can be joined repeatedly under different names.