import { t as SupabaseRole } from "./roles-B4kRmZCy-CCes-zCM.mjs"; import { NamespacedNativeEnums, PostgresQueryMembers, PostgresRuntime, PostgresRuntimeImpl, PostgresTransactionContext } from "@prisma/orm-postgres/runtime"; import { CollectionClasses, NoCollectionClasses, orm } from "@prisma/orm-family-sql/orm-client"; import { ActivitySourceTarget, ExecutionContext, Log, RuntimeConnection, RuntimeMode, RuntimeQueryable, SqlExecutionStackWithDriver, SqlMiddleware, SqlRuntimeExtensionDescriptor, ToSqlMember, VerifyMarkerOption } from "@prisma/orm-family-sql/runtime"; import { PreparedStatementExecuteTarget, PreparedStatementQueryTarget } from "@prisma/orm-family-sql/runtime/internal/prepared-query"; import { Pool } from "pg"; import { AsyncIterableResult, RuntimeExecuteOptions } from "@prisma/orm-framework/components/runtime"; import { CodecTypes, ParameterizedOutputTypesForTypeParams } from "@prisma/orm-target-postgres/target/codec-types"; import { QueryOperationTypes } from "@prisma/orm-target-postgres/target/operation-types"; import { ColumnTypesFromStorage, ContractWithTypeMaps, SqlStorage, TypeMaps } from "@prisma/orm-family-sql/contract/types"; import { Contract, FieldTypesFromDomain, NamespaceId, ProfileHashBase, StorageHashBase } from "@prisma/orm-framework/contract/types"; import { NamespacedEnums } from "@prisma/orm-framework/contract/enum-accessor"; import { Db } from "@prisma/orm-family-sql/builder/types"; import { SqlStatementStats } from "@prisma/orm-family-sql/relational-core/ast"; import { SqlExecutionPlan, SqlQueryPlan } from "@prisma/orm-family-sql/relational-core/plan"; //#region ../../../3-extensions/supabase/dist/runtime.d.mts //#region src/runtime/descriptor.d.ts /** * Tells the runtime that the Supabase pack's runtime component is available. * * When a contract declares the Supabase pack, the runtime checks that a * matching descriptor has been registered. Without this, loading a Supabase * contract errors with "pack runtime component missing". The `supabase()` * factory registers this descriptor automatically — app code never needs to * reference it directly. */ declare const supabaseRuntimeDescriptor: SqlRuntimeExtensionDescriptor<'postgres'>; //#endregion //#region src/contract/contract.d.ts type StorageHash = StorageHashBase<'110ad99e1e466691bdb0a4349a17365561e76ad017f58beb272f4496b05b8e9e'>; type ProfileHash = ProfileHashBase<'3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2'>; type CodecTypes$1 = CodecTypes; type QueryOperationTypes$1 = QueryOperationTypes; type AggregateTypes = { readonly avg: { readonly byCodec: { readonly 'pg/float@1': { readonly output: 'pg/float8@1'; readonly nullable: true; }; readonly 'pg/float4@1': { readonly output: 'pg/float8@1'; readonly nullable: true; }; readonly 'pg/float8@1': { readonly output: 'pg/float8@1'; readonly nullable: true; }; readonly 'pg/int@1': { readonly output: 'pg/float8@1'; readonly nullable: true; }; readonly 'pg/int2@1': { readonly output: 'pg/float8@1'; readonly nullable: true; }; readonly 'pg/int4@1': { readonly output: 'pg/float8@1'; readonly nullable: true; }; readonly 'pg/int8@1': { readonly output: 'pg/float8@1'; readonly nullable: true; }; readonly 'pg/int8number@1': { readonly output: 'pg/float8@1'; readonly nullable: true; }; readonly 'pg/interval@1': { readonly output: 'pg/interval@1'; readonly nullable: true; }; readonly 'pg/numeric@1': { readonly output: 'pg/numeric@1'; readonly nullable: true; }; readonly 'pg/time-string@1': { readonly output: 'pg/interval@1'; readonly nullable: true; }; readonly 'pg/time-temporal@1': { readonly output: 'pg/interval@1'; readonly nullable: true; }; readonly 'pg/unboundedint@1': { readonly output: 'pg/float8@1'; readonly nullable: true; }; readonly 'sql/float@1': { readonly output: 'pg/float8@1'; readonly nullable: true; }; readonly 'sql/int@1': { readonly output: 'pg/float8@1'; readonly nullable: true; }; }; }; readonly avgDecimal: { readonly byCodec: { readonly 'pg/int@1': { readonly output: 'pg/numeric@1'; readonly nullable: true; }; readonly 'pg/int2@1': { readonly output: 'pg/numeric@1'; readonly nullable: true; }; readonly 'pg/int4@1': { readonly output: 'pg/numeric@1'; readonly nullable: true; }; readonly 'pg/int8@1': { readonly output: 'pg/numeric@1'; readonly nullable: true; }; readonly 'pg/int8number@1': { readonly output: 'pg/numeric@1'; readonly nullable: true; }; readonly 'pg/numeric@1': { readonly output: 'pg/numeric@1'; readonly nullable: true; }; readonly 'pg/unboundedint@1': { readonly output: 'pg/numeric@1'; readonly nullable: true; }; readonly 'sql/int@1': { readonly output: 'pg/numeric@1'; readonly nullable: true; }; }; }; readonly count: { readonly byCodec: {}; readonly withoutInput: { readonly output: 'pg/int8number@1'; readonly nullable: false; }; readonly anyInput: { readonly output: 'pg/int8number@1'; readonly nullable: false; }; }; readonly countBigInt: { readonly byCodec: {}; readonly withoutInput: { readonly output: 'pg/int8@1'; readonly nullable: false; }; readonly anyInput: { readonly output: 'pg/int8@1'; readonly nullable: false; }; }; readonly max: { readonly byCodec: { readonly 'pg/char@1': { readonly output: 'pg/char@1'; readonly nullable: true; }; readonly 'pg/date-string@1': { readonly output: 'pg/date-string@1'; readonly nullable: true; }; readonly 'pg/date-temporal@1': { readonly output: 'pg/date-temporal@1'; readonly nullable: true; }; readonly 'pg/enum@1': { readonly output: 'pg/enum@1'; readonly nullable: true; }; readonly 'pg/float@1': { readonly output: 'pg/float@1'; readonly nullable: true; }; readonly 'pg/float4@1': { readonly output: 'pg/float4@1'; readonly nullable: true; }; readonly 'pg/float8@1': { readonly output: 'pg/float8@1'; readonly nullable: true; }; readonly 'pg/inet@1': { readonly output: 'pg/inet@1'; readonly nullable: true; }; readonly 'pg/int@1': { readonly output: 'pg/int@1'; readonly nullable: true; }; readonly 'pg/int2@1': { readonly output: 'pg/int2@1'; readonly nullable: true; }; readonly 'pg/int4@1': { readonly output: 'pg/int4@1'; readonly nullable: true; }; readonly 'pg/int8@1': { readonly output: 'pg/int8@1'; readonly nullable: true; }; readonly 'pg/int8number@1': { readonly output: 'pg/int8number@1'; readonly nullable: true; }; readonly 'pg/interval@1': { readonly output: 'pg/interval@1'; readonly nullable: true; }; readonly 'pg/numeric@1': { readonly output: 'pg/numeric@1'; readonly nullable: true; }; readonly 'pg/text-array@1': { readonly output: 'pg/text-array@1'; readonly nullable: true; }; readonly 'pg/text@1': { readonly output: 'pg/text@1'; readonly nullable: true; }; readonly 'pg/time-string@1': { readonly output: 'pg/time-string@1'; readonly nullable: true; }; readonly 'pg/time-temporal@1': { readonly output: 'pg/time-temporal@1'; readonly nullable: true; }; readonly 'pg/timestamp-string@1': { readonly output: 'pg/timestamp-string@1'; readonly nullable: true; }; readonly 'pg/timestamp-temporal@1': { readonly output: 'pg/timestamp-temporal@1'; readonly nullable: true; }; readonly 'pg/timestamptz-date@1': { readonly output: 'pg/timestamptz-date@1'; readonly nullable: true; }; readonly 'pg/timestamptz-string@1': { readonly output: 'pg/timestamptz-string@1'; readonly nullable: true; }; readonly 'pg/timestamptz-temporal@1': { readonly output: 'pg/timestamptz-temporal@1'; readonly nullable: true; }; readonly 'pg/timetz@1': { readonly output: 'pg/timetz@1'; readonly nullable: true; }; readonly 'pg/unboundedint@1': { readonly output: 'pg/unboundedint@1'; readonly nullable: true; }; readonly 'pg/varchar@1': { readonly output: 'pg/text@1'; readonly nullable: true; }; readonly 'sql/char@1': { readonly output: 'sql/char@1'; readonly nullable: true; }; readonly 'sql/float@1': { readonly output: 'sql/float@1'; readonly nullable: true; }; readonly 'sql/int@1': { readonly output: 'sql/int@1'; readonly nullable: true; }; readonly 'sql/text@1': { readonly output: 'sql/text@1'; readonly nullable: true; }; readonly 'sql/varchar@1': { readonly output: 'pg/text@1'; readonly nullable: true; }; }; }; readonly min: { readonly byCodec: { readonly 'pg/char@1': { readonly output: 'pg/char@1'; readonly nullable: true; }; readonly 'pg/date-string@1': { readonly output: 'pg/date-string@1'; readonly nullable: true; }; readonly 'pg/date-temporal@1': { readonly output: 'pg/date-temporal@1'; readonly nullable: true; }; readonly 'pg/enum@1': { readonly output: 'pg/enum@1'; readonly nullable: true; }; readonly 'pg/float@1': { readonly output: 'pg/float@1'; readonly nullable: true; }; readonly 'pg/float4@1': { readonly output: 'pg/float4@1'; readonly nullable: true; }; readonly 'pg/float8@1': { readonly output: 'pg/float8@1'; readonly nullable: true; }; readonly 'pg/inet@1': { readonly output: 'pg/inet@1'; readonly nullable: true; }; readonly 'pg/int@1': { readonly output: 'pg/int@1'; readonly nullable: true; }; readonly 'pg/int2@1': { readonly output: 'pg/int2@1'; readonly nullable: true; }; readonly 'pg/int4@1': { readonly output: 'pg/int4@1'; readonly nullable: true; }; readonly 'pg/int8@1': { readonly output: 'pg/int8@1'; readonly nullable: true; }; readonly 'pg/int8number@1': { readonly output: 'pg/int8number@1'; readonly nullable: true; }; readonly 'pg/interval@1': { readonly output: 'pg/interval@1'; readonly nullable: true; }; readonly 'pg/numeric@1': { readonly output: 'pg/numeric@1'; readonly nullable: true; }; readonly 'pg/text-array@1': { readonly output: 'pg/text-array@1'; readonly nullable: true; }; readonly 'pg/text@1': { readonly output: 'pg/text@1'; readonly nullable: true; }; readonly 'pg/time-string@1': { readonly output: 'pg/time-string@1'; readonly nullable: true; }; readonly 'pg/time-temporal@1': { readonly output: 'pg/time-temporal@1'; readonly nullable: true; }; readonly 'pg/timestamp-string@1': { readonly output: 'pg/timestamp-string@1'; readonly nullable: true; }; readonly 'pg/timestamp-temporal@1': { readonly output: 'pg/timestamp-temporal@1'; readonly nullable: true; }; readonly 'pg/timestamptz-date@1': { readonly output: 'pg/timestamptz-date@1'; readonly nullable: true; }; readonly 'pg/timestamptz-string@1': { readonly output: 'pg/timestamptz-string@1'; readonly nullable: true; }; readonly 'pg/timestamptz-temporal@1': { readonly output: 'pg/timestamptz-temporal@1'; readonly nullable: true; }; readonly 'pg/timetz@1': { readonly output: 'pg/timetz@1'; readonly nullable: true; }; readonly 'pg/unboundedint@1': { readonly output: 'pg/unboundedint@1'; readonly nullable: true; }; readonly 'pg/varchar@1': { readonly output: 'pg/text@1'; readonly nullable: true; }; readonly 'sql/char@1': { readonly output: 'sql/char@1'; readonly nullable: true; }; readonly 'sql/float@1': { readonly output: 'sql/float@1'; readonly nullable: true; }; readonly 'sql/int@1': { readonly output: 'sql/int@1'; readonly nullable: true; }; readonly 'sql/text@1': { readonly output: 'sql/text@1'; readonly nullable: true; }; readonly 'sql/varchar@1': { readonly output: 'pg/text@1'; readonly nullable: true; }; }; }; readonly sum: { readonly byCodec: { readonly 'pg/float@1': { readonly output: 'pg/float8@1'; readonly nullable: true; }; readonly 'pg/float4@1': { readonly output: 'pg/float4@1'; readonly nullable: true; }; readonly 'pg/float8@1': { readonly output: 'pg/float8@1'; readonly nullable: true; }; readonly 'pg/int@1': { readonly output: 'pg/int8number@1'; readonly nullable: true; }; readonly 'pg/int2@1': { readonly output: 'pg/int8number@1'; readonly nullable: true; }; readonly 'pg/int4@1': { readonly output: 'pg/int8number@1'; readonly nullable: true; }; readonly 'pg/int8@1': { readonly output: 'pg/int8number@1'; readonly nullable: true; }; readonly 'pg/int8number@1': { readonly output: 'pg/int8number@1'; readonly nullable: true; }; readonly 'pg/interval@1': { readonly output: 'pg/interval@1'; readonly nullable: true; }; readonly 'pg/numeric@1': { readonly output: 'pg/numeric@1'; readonly nullable: true; }; readonly 'pg/time-string@1': { readonly output: 'pg/interval@1'; readonly nullable: true; }; readonly 'pg/time-temporal@1': { readonly output: 'pg/interval@1'; readonly nullable: true; }; readonly 'pg/unboundedint@1': { readonly output: 'pg/unboundedint@1'; readonly nullable: true; }; readonly 'sql/float@1': { readonly output: 'pg/float8@1'; readonly nullable: true; }; readonly 'sql/int@1': { readonly output: 'pg/int8number@1'; readonly nullable: true; }; }; }; readonly sumBigInt: { readonly byCodec: { readonly 'pg/int@1': { readonly output: 'pg/int8@1'; readonly nullable: true; }; readonly 'pg/int2@1': { readonly output: 'pg/int8@1'; readonly nullable: true; }; readonly 'pg/int4@1': { readonly output: 'pg/int8@1'; readonly nullable: true; }; readonly 'pg/int8@1': { readonly output: 'pg/unboundedint@1'; readonly nullable: true; }; readonly 'pg/int8number@1': { readonly output: 'pg/unboundedint@1'; readonly nullable: true; }; readonly 'pg/unboundedint@1': { readonly output: 'pg/unboundedint@1'; readonly nullable: true; }; readonly 'sql/int@1': { readonly output: 'pg/int8@1'; readonly nullable: true; }; }; }; }; type DefaultLiteralValue = CodecId extends keyof CodecTypes$1 ? Encoded extends CodecTypes$1[CodecId]['json'] ? Encoded : CodecTypes$1[CodecId]['json'] : Encoded; type ParameterizedOutputTypeFunctions = ParameterizedOutputTypesForTypeParams; type FieldTypeOverrides = { readonly auth: { readonly models: { readonly AuthSession: { readonly aal: { readonly output: 'aal1' | 'aal2' | 'aal3'; readonly input: 'aal1' | 'aal2' | 'aal3'; }; }; readonly FlowState: { readonly codeChallengeMethod: { readonly output: 's256' | 'plain'; readonly input: 's256' | 'plain'; }; }; readonly MfaFactors: { readonly factorType: { readonly output: 'totp' | 'webauthn' | 'phone'; readonly input: 'totp' | 'webauthn' | 'phone'; }; readonly status: { readonly output: 'unverified' | 'verified'; readonly input: 'unverified' | 'verified'; }; }; readonly OauthAuthorizations: { readonly codeChallengeMethod: { readonly output: 's256' | 'plain'; readonly input: 's256' | 'plain'; }; readonly responseType: { readonly output: 'code'; readonly input: 'code'; }; readonly status: { readonly output: 'pending' | 'approved' | 'denied' | 'expired'; readonly input: 'pending' | 'approved' | 'denied' | 'expired'; }; }; readonly OauthClients: { readonly clientType: { readonly output: 'public' | 'confidential'; readonly input: 'public' | 'confidential'; }; readonly registrationType: { readonly output: 'dynamic' | 'manual'; readonly input: 'dynamic' | 'manual'; }; }; readonly OneTimeTokens: { readonly tokenType: { readonly output: 'confirmation_token' | 'reauthentication_token' | 'recovery_token' | 'email_change_token_new' | 'email_change_token_current' | 'phone_change_token'; readonly input: 'confirmation_token' | 'reauthentication_token' | 'recovery_token' | 'email_change_token_new' | 'email_change_token_current' | 'phone_change_token'; }; }; }; }; readonly storage: { readonly models: { readonly BucketsAnalytics: { readonly _type: { readonly output: 'STANDARD' | 'ANALYTICS' | 'VECTOR'; readonly input: 'STANDARD' | 'ANALYTICS' | 'VECTOR'; }; }; readonly BucketsVectors: { readonly _type: { readonly output: 'STANDARD' | 'ANALYTICS' | 'VECTOR'; readonly input: 'STANDARD' | 'ANALYTICS' | 'VECTOR'; }; }; readonly StorageBucket: { readonly _type: { readonly output: 'STANDARD' | 'ANALYTICS' | 'VECTOR'; readonly input: 'STANDARD' | 'ANALYTICS' | 'VECTOR'; }; }; }; }; }; type FieldOutputTypes = FieldTypesFromDomain; type FieldInputTypes = FieldTypesFromDomain; type ColumnTypeOverrides = { readonly auth: { readonly flow_state: { readonly code_challenge_method: { readonly output: 's256' | 'plain'; readonly input: 's256' | 'plain'; }; }; readonly mfa_factors: { readonly factor_type: { readonly output: 'totp' | 'webauthn' | 'phone'; readonly input: 'totp' | 'webauthn' | 'phone'; }; readonly status: { readonly output: 'unverified' | 'verified'; readonly input: 'unverified' | 'verified'; }; }; readonly oauth_authorizations: { readonly code_challenge_method: { readonly output: 's256' | 'plain'; readonly input: 's256' | 'plain'; }; readonly response_type: { readonly output: 'code'; readonly input: 'code'; }; readonly status: { readonly output: 'pending' | 'approved' | 'denied' | 'expired'; readonly input: 'pending' | 'approved' | 'denied' | 'expired'; }; }; readonly oauth_clients: { readonly client_type: { readonly output: 'public' | 'confidential'; readonly input: 'public' | 'confidential'; }; readonly registration_type: { readonly output: 'dynamic' | 'manual'; readonly input: 'dynamic' | 'manual'; }; }; readonly one_time_tokens: { readonly token_type: { readonly output: 'confirmation_token' | 'reauthentication_token' | 'recovery_token' | 'email_change_token_new' | 'email_change_token_current' | 'phone_change_token'; readonly input: 'confirmation_token' | 'reauthentication_token' | 'recovery_token' | 'email_change_token_new' | 'email_change_token_current' | 'phone_change_token'; }; }; readonly sessions: { readonly aal: { readonly output: 'aal1' | 'aal2' | 'aal3'; readonly input: 'aal1' | 'aal2' | 'aal3'; }; }; }; readonly storage: { readonly buckets: { readonly type: { readonly output: 'STANDARD' | 'ANALYTICS' | 'VECTOR'; readonly input: 'STANDARD' | 'ANALYTICS' | 'VECTOR'; }; }; readonly buckets_analytics: { readonly type: { readonly output: 'STANDARD' | 'ANALYTICS' | 'VECTOR'; readonly input: 'STANDARD' | 'ANALYTICS' | 'VECTOR'; }; }; readonly buckets_vectors: { readonly type: { readonly output: 'STANDARD' | 'ANALYTICS' | 'VECTOR'; readonly input: 'STANDARD' | 'ANALYTICS' | 'VECTOR'; }; }; }; }; type StorageColumnTypes = ColumnTypesFromStorage; type StorageColumnInputTypes = ColumnTypesFromStorage; type TypeMaps$1 = TypeMaps; type ContractBase = Omit; }; readonly typeParams: { readonly length: 64; }; readonly many: false; }; readonly payload: { readonly dataType: 'pg/json'; readonly codecId: 'pg/json@1'; readonly nullable: true; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'audit_log_entries_pkey'; }; uniques: readonly []; indexes: readonly [{ readonly name: 'audit_logs_instance_id_idx'; readonly columns: readonly ['instance_id']; readonly unique: false; }]; foreignKeys: readonly []; }; readonly custom_oauth_providers: { columns: { readonly acceptable_client_ids: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/text@1', readonly []>; }; readonly many: { readonly elementNullable: true; }; }; readonly attribute_mapping: { readonly dataType: 'pg/jsonb'; readonly codecId: 'pg/jsonb@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/jsonb@1', {}>; }; readonly many: false; }; readonly authorization_params: { readonly dataType: 'pg/jsonb'; readonly codecId: 'pg/jsonb@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/jsonb@1', {}>; }; readonly many: false; }; readonly authorization_url: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly cached_discovery: { readonly dataType: 'pg/jsonb'; readonly codecId: 'pg/jsonb@1'; readonly nullable: true; readonly many: false; }; readonly client_id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly client_secret: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly discovery_cached_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly discovery_url: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly email_optional: { readonly dataType: 'pg/bool'; readonly codecId: 'pg/bool@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/bool@1', false>; }; readonly many: false; }; readonly enabled: { readonly dataType: 'pg/bool'; readonly codecId: 'pg/bool@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/bool@1', true>; }; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'gen_random_uuid()'; }; readonly many: false; }; readonly identifier: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly issuer: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly jwks_uri: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly name: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly pkce_enabled: { readonly dataType: 'pg/bool'; readonly codecId: 'pg/bool@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/bool@1', true>; }; readonly many: false; }; readonly provider_type: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly scopes: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/text@1', readonly []>; }; readonly many: { readonly elementNullable: true; }; }; readonly skip_nonce_check: { readonly dataType: 'pg/bool'; readonly codecId: 'pg/bool@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/bool@1', false>; }; readonly many: false; }; readonly token_url: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly userinfo_url: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'custom_oauth_providers_pkey'; }; uniques: readonly [{ readonly columns: readonly ['identifier']; readonly name: 'custom_oauth_providers_identifier_key'; }]; indexes: readonly [{ readonly name: 'custom_oauth_providers_created_at_idx'; readonly columns: readonly ['created_at']; readonly unique: false; }, { readonly name: 'custom_oauth_providers_enabled_idx'; readonly columns: readonly ['enabled']; readonly unique: false; }, { readonly name: 'custom_oauth_providers_identifier_idx'; readonly columns: readonly ['identifier']; readonly unique: false; }, { readonly name: 'custom_oauth_providers_provider_type_idx'; readonly columns: readonly ['provider_type']; readonly unique: false; }]; foreignKeys: readonly []; }; readonly flow_state: { columns: { readonly auth_code: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly auth_code_issued_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly authentication_method: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly code_challenge: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly code_challenge_method: { readonly dataType: 'pg/enum'; readonly codecId: 'pg/enum@1'; readonly nullable: true; readonly typeParams: { readonly typeName: 'auth.code_challenge_method'; }; readonly many: false; }; readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly email_optional: { readonly dataType: 'pg/bool'; readonly codecId: 'pg/bool@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/bool@1', false>; }; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly invite_token: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly linking_target_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: true; readonly many: false; }; readonly oauth_client_state_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: true; readonly many: false; }; readonly provider_access_token: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly provider_refresh_token: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly provider_type: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly referrer: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly user_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: true; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'flow_state_pkey'; }; uniques: readonly []; indexes: readonly [{ readonly name: 'flow_state_created_at_idx'; readonly columns: readonly ['created_at']; readonly unique: false; }, { readonly name: 'idx_auth_code'; readonly columns: readonly ['auth_code']; readonly unique: false; }, { readonly name: 'idx_user_id_auth_method'; readonly columns: readonly ['user_id', 'authentication_method']; readonly unique: false; }]; foreignKeys: readonly []; }; readonly identities: { columns: { readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly email: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'gen_random_uuid()'; }; readonly many: false; }; readonly identity_data: { readonly dataType: 'pg/jsonb'; readonly codecId: 'pg/jsonb@1'; readonly nullable: false; readonly many: false; }; readonly last_sign_in_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly provider: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly provider_id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly user_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'identities_pkey'; }; uniques: readonly [{ readonly columns: readonly ['provider_id', 'provider']; readonly name: 'identities_provider_id_provider_unique'; }]; indexes: readonly [{ readonly name: 'identities_email_idx'; readonly columns: readonly ['email']; readonly unique: false; }, { readonly name: 'identities_user_id_idx'; readonly columns: readonly ['user_id']; readonly unique: false; }]; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'identities'; readonly columns: readonly ['user_id']; }; readonly target: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'users'; readonly columns: readonly ['id']; }; readonly name: 'identities_user_id_fkey'; }]; }; readonly instances: { columns: { readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly raw_base_config: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly uuid: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: true; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'instances_pkey'; }; uniques: readonly []; indexes: readonly []; foreignKeys: readonly []; }; readonly mfa_amr_claims: { columns: { readonly authentication_method: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly session_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'amr_id_pk'; }; uniques: readonly [{ readonly columns: readonly ['session_id', 'authentication_method']; readonly name: 'mfa_amr_claims_session_id_authentication_method_pkey'; }]; indexes: readonly []; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'mfa_amr_claims'; readonly columns: readonly ['session_id']; }; readonly target: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'sessions'; readonly columns: readonly ['id']; }; readonly name: 'mfa_amr_claims_session_id_fkey'; }]; }; readonly mfa_challenges: { columns: { readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly many: false; }; readonly factor_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly ip_address: { readonly dataType: 'pg/inet'; readonly codecId: 'pg/inet@1'; readonly nullable: false; readonly many: false; }; readonly otp_code: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly verified_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly web_authn_session_data: { readonly dataType: 'pg/jsonb'; readonly codecId: 'pg/jsonb@1'; readonly nullable: true; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'mfa_challenges_pkey'; }; uniques: readonly []; indexes: readonly [{ readonly name: 'mfa_challenge_created_at_idx'; readonly columns: readonly ['created_at']; readonly unique: false; }]; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'mfa_challenges'; readonly columns: readonly ['factor_id']; }; readonly target: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'mfa_factors'; readonly columns: readonly ['id']; }; readonly name: 'mfa_challenges_auth_factor_id_fkey'; }]; }; readonly mfa_factors: { columns: { readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly many: false; }; readonly factor_type: { readonly dataType: 'pg/enum'; readonly codecId: 'pg/enum@1'; readonly nullable: false; readonly typeParams: { readonly typeName: 'auth.factor_type'; }; readonly many: false; }; readonly friendly_name: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly last_challenged_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly last_webauthn_challenge_data: { readonly dataType: 'pg/jsonb'; readonly codecId: 'pg/jsonb@1'; readonly nullable: true; readonly many: false; }; readonly phone: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly secret: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly status: { readonly dataType: 'pg/enum'; readonly codecId: 'pg/enum@1'; readonly nullable: false; readonly typeParams: { readonly typeName: 'auth.factor_status'; }; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly many: false; }; readonly user_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly web_authn_aaguid: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: true; readonly many: false; }; readonly web_authn_credential: { readonly dataType: 'pg/jsonb'; readonly codecId: 'pg/jsonb@1'; readonly nullable: true; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'mfa_factors_pkey'; }; uniques: readonly [{ readonly columns: readonly ['last_challenged_at']; readonly name: 'mfa_factors_last_challenged_at_key'; }]; indexes: readonly [{ readonly name: 'factor_id_created_at_idx'; readonly columns: readonly ['user_id', 'created_at']; readonly unique: false; }, { readonly name: 'mfa_factors_user_friendly_name_unique'; readonly columns: readonly ['friendly_name', 'user_id']; readonly where: "(TRIM(BOTH FROM friendly_name) <> ''::text)"; readonly unique: true; }, { readonly name: 'mfa_factors_user_id_idx'; readonly columns: readonly ['user_id']; readonly unique: false; }, { readonly name: 'unique_phone_factor_per_user'; readonly columns: readonly ['user_id', 'phone']; readonly unique: true; }]; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'mfa_factors'; readonly columns: readonly ['user_id']; }; readonly target: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'users'; readonly columns: readonly ['id']; }; readonly name: 'mfa_factors_user_id_fkey'; }]; }; readonly oauth_authorizations: { columns: { readonly approved_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly authorization_code: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly authorization_id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly client_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly code_challenge: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly code_challenge_method: { readonly dataType: 'pg/enum'; readonly codecId: 'pg/enum@1'; readonly nullable: true; readonly typeParams: { readonly typeName: 'auth.code_challenge_method'; }; readonly many: false; }; readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly expires_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: "(now() + '00:03:00'::interval)"; }; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly nonce: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly redirect_uri: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly resource: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly response_type: { readonly dataType: 'pg/enum'; readonly codecId: 'pg/enum@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/enum@1', 'code'>; }; readonly typeParams: { readonly typeName: 'auth.oauth_response_type'; }; readonly many: false; }; readonly scope: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly state: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly status: { readonly dataType: 'pg/enum'; readonly codecId: 'pg/enum@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/enum@1', 'pending'>; }; readonly typeParams: { readonly typeName: 'auth.oauth_authorization_status'; }; readonly many: false; }; readonly user_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: true; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'oauth_authorizations_pkey'; }; uniques: readonly [{ readonly columns: readonly ['authorization_code']; readonly name: 'oauth_authorizations_authorization_code_key'; }, { readonly columns: readonly ['authorization_id']; readonly name: 'oauth_authorizations_authorization_id_key'; }]; indexes: readonly [{ readonly name: 'oauth_auth_pending_exp_idx'; readonly columns: readonly ['expires_at']; readonly where: "(status = 'pending'::auth.oauth_authorization_status)"; readonly unique: false; }]; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'oauth_authorizations'; readonly columns: readonly ['client_id']; }; readonly target: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'oauth_clients'; readonly columns: readonly ['id']; }; readonly name: 'oauth_authorizations_client_id_fkey'; }, { readonly source: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'oauth_authorizations'; readonly columns: readonly ['user_id']; }; readonly target: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'users'; readonly columns: readonly ['id']; }; readonly name: 'oauth_authorizations_user_id_fkey'; }]; }; readonly oauth_client_states: { columns: { readonly code_verifier: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly provider_type: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'oauth_client_states_pkey'; }; uniques: readonly []; indexes: readonly [{ readonly name: 'idx_oauth_client_states_created_at'; readonly columns: readonly ['created_at']; readonly unique: false; }]; foreignKeys: readonly []; }; readonly oauth_clients: { columns: { readonly client_name: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly client_secret_hash: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly client_type: { readonly dataType: 'pg/enum'; readonly codecId: 'pg/enum@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/enum@1', 'confidential'>; }; readonly typeParams: { readonly typeName: 'auth.oauth_client_type'; }; readonly many: false; }; readonly client_uri: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly deleted_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly grant_types: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly logo_uri: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly redirect_uris: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly registration_type: { readonly dataType: 'pg/enum'; readonly codecId: 'pg/enum@1'; readonly nullable: false; readonly typeParams: { readonly typeName: 'auth.oauth_registration_type'; }; readonly many: false; }; readonly token_endpoint_auth_method: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'oauth_clients_pkey'; }; uniques: readonly []; indexes: readonly [{ readonly name: 'oauth_clients_deleted_at_idx'; readonly columns: readonly ['deleted_at']; readonly unique: false; }]; foreignKeys: readonly []; }; readonly oauth_consents: { columns: { readonly client_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly granted_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly revoked_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly scopes: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly user_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'oauth_consents_pkey'; }; uniques: readonly [{ readonly columns: readonly ['user_id', 'client_id']; readonly name: 'oauth_consents_user_client_unique'; }]; indexes: readonly [{ readonly name: 'oauth_consents_active_client_idx'; readonly columns: readonly ['client_id']; readonly where: '(revoked_at IS NULL)'; readonly unique: false; }, { readonly name: 'oauth_consents_active_user_client_idx'; readonly columns: readonly ['user_id', 'client_id']; readonly where: '(revoked_at IS NULL)'; readonly unique: false; }, { readonly name: 'oauth_consents_user_order_idx'; readonly columns: readonly ['user_id', 'granted_at']; readonly unique: false; }]; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'oauth_consents'; readonly columns: readonly ['client_id']; }; readonly target: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'oauth_clients'; readonly columns: readonly ['id']; }; readonly name: 'oauth_consents_client_id_fkey'; }, { readonly source: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'oauth_consents'; readonly columns: readonly ['user_id']; }; readonly target: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'users'; readonly columns: readonly ['id']; }; readonly name: 'oauth_consents_user_id_fkey'; }]; }; readonly one_time_tokens: { columns: { readonly created_at: { readonly dataType: 'pg/timestamp'; readonly codecId: 'pg/timestamp-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly relates_to: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly token_hash: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly token_type: { readonly dataType: 'pg/enum'; readonly codecId: 'pg/enum@1'; readonly nullable: false; readonly typeParams: { readonly typeName: 'auth.one_time_token_type'; }; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamp'; readonly codecId: 'pg/timestamp-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly user_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'one_time_tokens_pkey'; }; uniques: readonly []; indexes: readonly [{ readonly name: 'one_time_tokens_relates_to_hash_idx'; readonly columns: readonly ['relates_to']; readonly unique: false; readonly type: 'hash'; }, { readonly name: 'one_time_tokens_token_hash_hash_idx'; readonly columns: readonly ['token_hash']; readonly unique: false; readonly type: 'hash'; }, { readonly name: 'one_time_tokens_user_id_token_type_key'; readonly columns: readonly ['user_id', 'token_type']; readonly unique: true; }]; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'one_time_tokens'; readonly columns: readonly ['user_id']; }; readonly target: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'users'; readonly columns: readonly ['id']; }; readonly name: 'one_time_tokens_user_id_fkey'; }]; }; readonly refresh_tokens: { columns: { readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly id: { readonly dataType: 'pg/int8'; readonly codecId: 'pg/int8@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'autoincrement()'; }; readonly many: false; }; readonly instance_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: true; readonly many: false; }; readonly parent: { readonly dataType: 'pg/varchar'; readonly codecId: 'sql/varchar@1'; readonly nullable: true; readonly typeParams: { readonly length: 255; }; readonly many: false; }; readonly revoked: { readonly dataType: 'pg/bool'; readonly codecId: 'pg/bool@1'; readonly nullable: true; readonly many: false; }; readonly session_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: true; readonly many: false; }; readonly token: { readonly dataType: 'pg/varchar'; readonly codecId: 'sql/varchar@1'; readonly nullable: true; readonly typeParams: { readonly length: 255; }; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly user_id: { readonly dataType: 'pg/varchar'; readonly codecId: 'sql/varchar@1'; readonly nullable: true; readonly typeParams: { readonly length: 255; }; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'refresh_tokens_pkey'; }; uniques: readonly [{ readonly columns: readonly ['token']; readonly name: 'refresh_tokens_token_unique'; }]; indexes: readonly [{ readonly name: 'refresh_tokens_instance_id_idx'; readonly columns: readonly ['instance_id']; readonly unique: false; }, { readonly name: 'refresh_tokens_instance_id_user_id_idx'; readonly columns: readonly ['instance_id', 'user_id']; readonly unique: false; }, { readonly name: 'refresh_tokens_parent_idx'; readonly columns: readonly ['parent']; readonly unique: false; }, { readonly name: 'refresh_tokens_session_id_revoked_idx'; readonly columns: readonly ['session_id', 'revoked']; readonly unique: false; }, { readonly name: 'refresh_tokens_updated_at_idx'; readonly columns: readonly ['updated_at']; readonly unique: false; }]; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'refresh_tokens'; readonly columns: readonly ['session_id']; }; readonly target: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'sessions'; readonly columns: readonly ['id']; }; readonly name: 'refresh_tokens_session_id_fkey'; }]; }; readonly saml_providers: { columns: { readonly attribute_mapping: { readonly dataType: 'pg/jsonb'; readonly codecId: 'pg/jsonb@1'; readonly nullable: true; readonly many: false; }; readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly entity_id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly metadata_url: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly metadata_xml: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly name_id_format: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly sso_provider_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'saml_providers_pkey'; }; uniques: readonly [{ readonly columns: readonly ['entity_id']; readonly name: 'saml_providers_entity_id_key'; }]; indexes: readonly [{ readonly name: 'saml_providers_sso_provider_id_idx'; readonly columns: readonly ['sso_provider_id']; readonly unique: false; }]; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'saml_providers'; readonly columns: readonly ['sso_provider_id']; }; readonly target: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'sso_providers'; readonly columns: readonly ['id']; }; readonly name: 'saml_providers_sso_provider_id_fkey'; }]; }; readonly saml_relay_states: { columns: { readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly flow_state_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: true; readonly many: false; }; readonly for_email: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly redirect_to: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly request_id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly sso_provider_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'saml_relay_states_pkey'; }; uniques: readonly []; indexes: readonly [{ readonly name: 'saml_relay_states_created_at_idx'; readonly columns: readonly ['created_at']; readonly unique: false; }, { readonly name: 'saml_relay_states_for_email_idx'; readonly columns: readonly ['for_email']; readonly unique: false; }, { readonly name: 'saml_relay_states_sso_provider_id_idx'; readonly columns: readonly ['sso_provider_id']; readonly unique: false; }]; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'saml_relay_states'; readonly columns: readonly ['flow_state_id']; }; readonly target: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'flow_state'; readonly columns: readonly ['id']; }; readonly name: 'saml_relay_states_flow_state_id_fkey'; }, { readonly source: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'saml_relay_states'; readonly columns: readonly ['sso_provider_id']; }; readonly target: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'sso_providers'; readonly columns: readonly ['id']; }; readonly name: 'saml_relay_states_sso_provider_id_fkey'; }]; }; readonly schema_migrations: { columns: { readonly version: { readonly dataType: 'pg/varchar'; readonly codecId: 'sql/varchar@1'; readonly nullable: false; readonly typeParams: { readonly length: 255; }; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['version']; readonly name: 'schema_migrations_pkey'; }; uniques: readonly []; indexes: readonly []; foreignKeys: readonly []; }; readonly sessions: { columns: { readonly aal: { readonly dataType: 'pg/enum'; readonly codecId: 'pg/enum@1'; readonly nullable: true; readonly typeParams: { readonly typeName: 'auth.aal_level'; }; readonly many: false; }; readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly factor_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: true; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly ip: { readonly dataType: 'pg/inet'; readonly codecId: 'pg/inet@1'; readonly nullable: true; readonly many: false; }; readonly not_after: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly oauth_client_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: true; readonly many: false; }; readonly refresh_token_counter: { readonly dataType: 'pg/int8'; readonly codecId: 'pg/int8@1'; readonly nullable: true; readonly many: false; }; readonly refresh_token_hmac_key: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly refreshed_at: { readonly dataType: 'pg/timestamp'; readonly codecId: 'pg/timestamp-temporal@1'; readonly nullable: true; readonly many: false; }; readonly scopes: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly tag: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly user_agent: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly user_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'sessions_pkey'; }; uniques: readonly []; indexes: readonly [{ readonly name: 'sessions_not_after_idx'; readonly columns: readonly ['not_after']; readonly unique: false; }, { readonly name: 'sessions_oauth_client_id_idx'; readonly columns: readonly ['oauth_client_id']; readonly unique: false; }, { readonly name: 'sessions_user_id_idx'; readonly columns: readonly ['user_id']; readonly unique: false; }, { readonly name: 'user_id_created_at_idx'; readonly columns: readonly ['user_id', 'created_at']; readonly unique: false; }]; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'sessions'; readonly columns: readonly ['oauth_client_id']; }; readonly target: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'oauth_clients'; readonly columns: readonly ['id']; }; readonly name: 'sessions_oauth_client_id_fkey'; }, { readonly source: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'sessions'; readonly columns: readonly ['user_id']; }; readonly target: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'users'; readonly columns: readonly ['id']; }; readonly name: 'sessions_user_id_fkey'; }]; }; readonly sso_domains: { columns: { readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly domain: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly sso_provider_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'sso_domains_pkey'; }; uniques: readonly []; indexes: readonly [{ readonly name: 'sso_domains_domain_idx'; readonly expression: 'lower(domain)'; readonly unique: true; }, { readonly name: 'sso_domains_sso_provider_id_idx'; readonly columns: readonly ['sso_provider_id']; readonly unique: false; }]; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'sso_domains'; readonly columns: readonly ['sso_provider_id']; }; readonly target: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'sso_providers'; readonly columns: readonly ['id']; }; readonly name: 'sso_domains_sso_provider_id_fkey'; }]; }; readonly sso_providers: { columns: { readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly disabled: { readonly dataType: 'pg/bool'; readonly codecId: 'pg/bool@1'; readonly nullable: true; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly resource_id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'sso_providers_pkey'; }; uniques: readonly []; indexes: readonly [{ readonly name: 'sso_providers_resource_id_idx'; readonly expression: 'lower(resource_id)'; readonly unique: true; }, { readonly name: 'sso_providers_resource_id_pattern_idx'; readonly columns: readonly ['resource_id']; readonly unique: false; }]; foreignKeys: readonly []; }; readonly users: { columns: { readonly aud: { readonly dataType: 'pg/varchar'; readonly codecId: 'sql/varchar@1'; readonly nullable: true; readonly typeParams: { readonly length: 255; }; readonly many: false; }; readonly banned_until: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly confirmation_sent_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly confirmation_token: { readonly dataType: 'pg/varchar'; readonly codecId: 'sql/varchar@1'; readonly nullable: true; readonly typeParams: { readonly length: 255; }; readonly many: false; }; readonly confirmed_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly deleted_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly email: { readonly dataType: 'pg/varchar'; readonly codecId: 'sql/varchar@1'; readonly nullable: true; readonly typeParams: { readonly length: 255; }; readonly many: false; }; readonly email_change: { readonly dataType: 'pg/varchar'; readonly codecId: 'sql/varchar@1'; readonly nullable: true; readonly typeParams: { readonly length: 255; }; readonly many: false; }; readonly email_change_confirm_status: { readonly dataType: 'pg/int2'; readonly codecId: 'pg/int2@1'; readonly nullable: true; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/int2@1', 0>; }; readonly many: false; }; readonly email_change_sent_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly email_change_token_current: { readonly dataType: 'pg/varchar'; readonly codecId: 'sql/varchar@1'; readonly nullable: true; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'sql/varchar@1', ''>; }; readonly typeParams: { readonly length: 255; }; readonly many: false; }; readonly email_change_token_new: { readonly dataType: 'pg/varchar'; readonly codecId: 'sql/varchar@1'; readonly nullable: true; readonly typeParams: { readonly length: 255; }; readonly many: false; }; readonly email_confirmed_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly encrypted_password: { readonly dataType: 'pg/varchar'; readonly codecId: 'sql/varchar@1'; readonly nullable: true; readonly typeParams: { readonly length: 255; }; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly instance_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: true; readonly many: false; }; readonly invited_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly is_anonymous: { readonly dataType: 'pg/bool'; readonly codecId: 'pg/bool@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/bool@1', false>; }; readonly many: false; }; readonly is_sso_user: { readonly dataType: 'pg/bool'; readonly codecId: 'pg/bool@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/bool@1', false>; }; readonly many: false; }; readonly is_super_admin: { readonly dataType: 'pg/bool'; readonly codecId: 'pg/bool@1'; readonly nullable: true; readonly many: false; }; readonly last_sign_in_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly phone: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly phone_change: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/text@1', ''>; }; readonly many: false; }; readonly phone_change_sent_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly phone_change_token: { readonly dataType: 'pg/varchar'; readonly codecId: 'sql/varchar@1'; readonly nullable: true; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'sql/varchar@1', ''>; }; readonly typeParams: { readonly length: 255; }; readonly many: false; }; readonly phone_confirmed_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly raw_app_meta_data: { readonly dataType: 'pg/jsonb'; readonly codecId: 'pg/jsonb@1'; readonly nullable: true; readonly many: false; }; readonly raw_user_meta_data: { readonly dataType: 'pg/jsonb'; readonly codecId: 'pg/jsonb@1'; readonly nullable: true; readonly many: false; }; readonly reauthentication_sent_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly reauthentication_token: { readonly dataType: 'pg/varchar'; readonly codecId: 'sql/varchar@1'; readonly nullable: true; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'sql/varchar@1', ''>; }; readonly typeParams: { readonly length: 255; }; readonly many: false; }; readonly recovery_sent_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly recovery_token: { readonly dataType: 'pg/varchar'; readonly codecId: 'sql/varchar@1'; readonly nullable: true; readonly typeParams: { readonly length: 255; }; readonly many: false; }; readonly role: { readonly dataType: 'pg/varchar'; readonly codecId: 'sql/varchar@1'; readonly nullable: true; readonly typeParams: { readonly length: 255; }; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'users_pkey'; }; uniques: readonly [{ readonly columns: readonly ['phone']; readonly name: 'users_phone_key'; }]; indexes: readonly [{ readonly name: 'confirmation_token_idx'; readonly columns: readonly ['confirmation_token']; readonly where: "((confirmation_token)::text !~ '^[0-9 ]*$'::text)"; readonly unique: true; }, { readonly name: 'email_change_token_current_idx'; readonly columns: readonly ['email_change_token_current']; readonly where: "((email_change_token_current)::text !~ '^[0-9 ]*$'::text)"; readonly unique: true; }, { readonly name: 'email_change_token_new_idx'; readonly columns: readonly ['email_change_token_new']; readonly where: "((email_change_token_new)::text !~ '^[0-9 ]*$'::text)"; readonly unique: true; }, { readonly name: 'reauthentication_token_idx'; readonly columns: readonly ['reauthentication_token']; readonly where: "((reauthentication_token)::text !~ '^[0-9 ]*$'::text)"; readonly unique: true; }, { readonly name: 'recovery_token_idx'; readonly columns: readonly ['recovery_token']; readonly where: "((recovery_token)::text !~ '^[0-9 ]*$'::text)"; readonly unique: true; }, { readonly name: 'users_email_partial_key'; readonly columns: readonly ['email']; readonly where: '(is_sso_user = false)'; readonly unique: true; }, { readonly name: 'users_instance_id_email_idx'; readonly expression: 'instance_id, lower(email::text)'; readonly unique: false; }, { readonly name: 'users_instance_id_idx'; readonly columns: readonly ['instance_id']; readonly unique: false; }, { readonly name: 'users_is_anonymous_idx'; readonly columns: readonly ['is_anonymous']; readonly unique: false; }]; foreignKeys: readonly []; }; readonly webauthn_challenges: { columns: { readonly challenge_type: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly expires_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'gen_random_uuid()'; }; readonly many: false; }; readonly session_data: { readonly dataType: 'pg/jsonb'; readonly codecId: 'pg/jsonb@1'; readonly nullable: false; readonly many: false; }; readonly user_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: true; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'webauthn_challenges_pkey'; }; uniques: readonly []; indexes: readonly [{ readonly name: 'webauthn_challenges_expires_at_idx'; readonly columns: readonly ['expires_at']; readonly unique: false; }, { readonly name: 'webauthn_challenges_user_id_idx'; readonly columns: readonly ['user_id']; readonly unique: false; }]; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'webauthn_challenges'; readonly columns: readonly ['user_id']; }; readonly target: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'users'; readonly columns: readonly ['id']; }; readonly name: 'webauthn_challenges_user_id_fkey'; }]; }; readonly webauthn_credentials: { columns: { readonly aaguid: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: true; readonly many: false; }; readonly attestation_type: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/text@1', ''>; }; readonly many: false; }; readonly backed_up: { readonly dataType: 'pg/bool'; readonly codecId: 'pg/bool@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/bool@1', false>; }; readonly many: false; }; readonly backup_eligible: { readonly dataType: 'pg/bool'; readonly codecId: 'pg/bool@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/bool@1', false>; }; readonly many: false; }; readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly credential_id: { readonly dataType: 'pg/bytea'; readonly codecId: 'pg/bytea@1'; readonly nullable: false; readonly many: false; }; readonly friendly_name: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/text@1', ''>; }; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'gen_random_uuid()'; }; readonly many: false; }; readonly last_used_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly public_key: { readonly dataType: 'pg/bytea'; readonly codecId: 'pg/bytea@1'; readonly nullable: false; readonly many: false; }; readonly sign_count: { readonly dataType: 'pg/int8'; readonly codecId: 'pg/int8@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/int8@1', '0'>; }; readonly many: false; }; readonly transports: { readonly dataType: 'pg/jsonb'; readonly codecId: 'pg/jsonb@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/jsonb@1', readonly []>; }; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly user_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'webauthn_credentials_pkey'; }; uniques: readonly []; indexes: readonly [{ readonly name: 'webauthn_credentials_credential_id_key'; readonly columns: readonly ['credential_id']; readonly unique: true; }, { readonly name: 'webauthn_credentials_user_id_idx'; readonly columns: readonly ['user_id']; readonly unique: false; }]; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'webauthn_credentials'; readonly columns: readonly ['user_id']; }; readonly target: { readonly namespaceId: 'auth' & NamespaceId; readonly tableName: 'users'; readonly columns: readonly ['id']; }; readonly name: 'webauthn_credentials_user_id_fkey'; }]; }; }; readonly valueSet: { readonly AalLevel: { readonly kind: 'valueSet'; readonly values: readonly ['aal1', 'aal2', 'aal3']; }; readonly CodeChallengeMethod: { readonly kind: 'valueSet'; readonly values: readonly ['s256', 'plain']; }; readonly FactorStatus: { readonly kind: 'valueSet'; readonly values: readonly ['unverified', 'verified']; }; readonly FactorType: { readonly kind: 'valueSet'; readonly values: readonly ['totp', 'webauthn', 'phone']; }; readonly OauthAuthorizationStatus: { readonly kind: 'valueSet'; readonly values: readonly ['pending', 'approved', 'denied', 'expired']; }; readonly OauthClientType: { readonly kind: 'valueSet'; readonly values: readonly ['public', 'confidential']; }; readonly OauthRegistrationType: { readonly kind: 'valueSet'; readonly values: readonly ['dynamic', 'manual']; }; readonly OauthResponseType: { readonly kind: 'valueSet'; readonly values: readonly ['code']; }; readonly OneTimeTokenType: { readonly kind: 'valueSet'; readonly values: readonly ['confirmation_token', 'reauthentication_token', 'recovery_token', 'email_change_token_new', 'email_change_token_current', 'phone_change_token']; }; }; }; }; readonly public: { readonly id: 'public'; readonly kind: 'postgres-schema'; readonly entries: { readonly table: {}; }; }; readonly storage: { readonly id: 'storage'; readonly kind: 'postgres-schema'; readonly entries: { readonly table: { readonly buckets: { columns: { readonly allowed_mime_types: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: { readonly elementNullable: true; }; }; readonly avif_autodetection: { readonly dataType: 'pg/bool'; readonly codecId: 'pg/bool@1'; readonly nullable: true; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/bool@1', false>; }; readonly many: false; }; readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly file_size_limit: { readonly dataType: 'pg/int8'; readonly codecId: 'pg/int8@1'; readonly nullable: true; readonly many: false; }; readonly id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly name: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly owner: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: true; readonly many: false; }; readonly owner_id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly public: { readonly dataType: 'pg/bool'; readonly codecId: 'pg/bool@1'; readonly nullable: true; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/bool@1', false>; }; readonly many: false; }; readonly type: { readonly dataType: 'pg/enum'; readonly codecId: 'pg/enum@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/enum@1', 'STANDARD'>; }; readonly typeParams: { readonly typeName: 'storage.buckettype'; }; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'buckets_pkey'; }; uniques: readonly []; indexes: readonly [{ readonly name: 'bname'; readonly columns: readonly ['name']; readonly unique: true; }]; foreignKeys: readonly []; }; readonly buckets_analytics: { columns: { readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly deleted_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly many: false; }; readonly format: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/text@1', 'ICEBERG'>; }; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'gen_random_uuid()'; }; readonly many: false; }; readonly name: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly type: { readonly dataType: 'pg/enum'; readonly codecId: 'pg/enum@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/enum@1', 'ANALYTICS'>; }; readonly typeParams: { readonly typeName: 'storage.buckettype'; }; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'buckets_analytics_pkey'; }; uniques: readonly []; indexes: readonly [{ readonly name: 'buckets_analytics_unique_name_idx'; readonly columns: readonly ['name']; readonly where: '(deleted_at IS NULL)'; readonly unique: true; }]; foreignKeys: readonly []; }; readonly buckets_vectors: { columns: { readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly type: { readonly dataType: 'pg/enum'; readonly codecId: 'pg/enum@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/enum@1', 'VECTOR'>; }; readonly typeParams: { readonly typeName: 'storage.buckettype'; }; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'buckets_vectors_pkey'; }; uniques: readonly []; indexes: readonly []; foreignKeys: readonly []; }; readonly iceberg_namespaces: { columns: { readonly bucket_name: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly catalog_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'gen_random_uuid()'; }; readonly many: false; }; readonly metadata: { readonly dataType: 'pg/jsonb'; readonly codecId: 'pg/jsonb@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/jsonb@1', {}>; }; readonly many: false; }; readonly name: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'iceberg_namespaces_pkey'; }; uniques: readonly []; indexes: readonly [{ readonly name: 'idx_iceberg_namespaces_bucket_id'; readonly columns: readonly ['catalog_id', 'name']; readonly unique: true; }]; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'storage' & NamespaceId; readonly tableName: 'iceberg_namespaces'; readonly columns: readonly ['catalog_id']; }; readonly target: { readonly namespaceId: 'storage' & NamespaceId; readonly tableName: 'buckets_analytics'; readonly columns: readonly ['id']; }; readonly name: 'iceberg_namespaces_catalog_id_fkey'; }]; }; readonly iceberg_tables: { columns: { readonly bucket_name: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly catalog_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'gen_random_uuid()'; }; readonly many: false; }; readonly location: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly name: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly namespace_id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly many: false; }; readonly remote_table_id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly shard_id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly shard_key: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'iceberg_tables_pkey'; }; uniques: readonly []; indexes: readonly [{ readonly name: 'idx_iceberg_tables_location'; readonly columns: readonly ['location']; readonly unique: true; }, { readonly name: 'idx_iceberg_tables_namespace_id'; readonly columns: readonly ['catalog_id', 'namespace_id', 'name']; readonly unique: true; }]; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'storage' & NamespaceId; readonly tableName: 'iceberg_tables'; readonly columns: readonly ['catalog_id']; }; readonly target: { readonly namespaceId: 'storage' & NamespaceId; readonly tableName: 'buckets_analytics'; readonly columns: readonly ['id']; }; readonly name: 'iceberg_tables_catalog_id_fkey'; }, { readonly source: { readonly namespaceId: 'storage' & NamespaceId; readonly tableName: 'iceberg_tables'; readonly columns: readonly ['namespace_id']; }; readonly target: { readonly namespaceId: 'storage' & NamespaceId; readonly tableName: 'iceberg_namespaces'; readonly columns: readonly ['id']; }; readonly name: 'iceberg_tables_namespace_id_fkey'; }]; }; readonly migrations: { columns: { readonly executed_at: { readonly dataType: 'pg/timestamp'; readonly codecId: 'pg/timestamp-temporal@1'; readonly nullable: true; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly hash: { readonly dataType: 'pg/varchar'; readonly codecId: 'sql/varchar@1'; readonly nullable: false; readonly typeParams: { readonly length: 40; }; readonly many: false; }; readonly id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: false; readonly many: false; }; readonly name: { readonly dataType: 'pg/varchar'; readonly codecId: 'sql/varchar@1'; readonly nullable: false; readonly typeParams: { readonly length: 100; }; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'migrations_pkey'; }; uniques: readonly [{ readonly columns: readonly ['name']; readonly name: 'migrations_name_key'; }]; indexes: readonly []; foreignKeys: readonly []; }; readonly objects: { columns: { readonly bucket_id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'gen_random_uuid()'; }; readonly many: false; }; readonly last_accessed_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly metadata: { readonly dataType: 'pg/jsonb'; readonly codecId: 'pg/jsonb@1'; readonly nullable: true; readonly many: false; }; readonly name: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly owner: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: true; readonly many: false; }; readonly owner_id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly path_tokens: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: { readonly elementNullable: true; }; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: true; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly user_metadata: { readonly dataType: 'pg/jsonb'; readonly codecId: 'pg/jsonb@1'; readonly nullable: true; readonly many: false; }; readonly version: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'objects_pkey'; }; uniques: readonly []; indexes: readonly [{ readonly name: 'bucketid_objname'; readonly columns: readonly ['bucket_id', 'name']; readonly unique: true; }, { readonly name: 'idx_objects_bucket_id_name'; readonly columns: readonly ['bucket_id', 'name']; readonly unique: false; }, { readonly name: 'idx_objects_bucket_id_name_lower'; readonly expression: 'bucket_id, lower(name)'; readonly unique: false; }, { readonly name: 'name_prefix_search'; readonly columns: readonly ['name']; readonly unique: false; }]; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'storage' & NamespaceId; readonly tableName: 'objects'; readonly columns: readonly ['bucket_id']; }; readonly target: { readonly namespaceId: 'storage' & NamespaceId; readonly tableName: 'buckets'; readonly columns: readonly ['id']; }; readonly name: 'objects_bucketId_fkey'; }]; }; readonly s3_multipart_uploads: { columns: { readonly bucket_id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly in_progress_size: { readonly dataType: 'pg/int8'; readonly codecId: 'pg/int8@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/int8@1', '0'>; }; readonly many: false; }; readonly key: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly metadata: { readonly dataType: 'pg/jsonb'; readonly codecId: 'pg/jsonb@1'; readonly nullable: true; readonly many: false; }; readonly owner_id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly upload_signature: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly user_metadata: { readonly dataType: 'pg/jsonb'; readonly codecId: 'pg/jsonb@1'; readonly nullable: true; readonly many: false; }; readonly version: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 's3_multipart_uploads_pkey'; }; uniques: readonly []; indexes: readonly [{ readonly name: 'idx_multipart_uploads_list'; readonly columns: readonly ['bucket_id', 'key', 'created_at']; readonly unique: false; }]; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'storage' & NamespaceId; readonly tableName: 's3_multipart_uploads'; readonly columns: readonly ['bucket_id']; }; readonly target: { readonly namespaceId: 'storage' & NamespaceId; readonly tableName: 'buckets'; readonly columns: readonly ['id']; }; readonly name: 's3_multipart_uploads_bucket_id_fkey'; }]; }; readonly s3_multipart_uploads_parts: { columns: { readonly bucket_id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly etag: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly id: { readonly dataType: 'pg/uuid'; readonly codecId: 'pg/uuid@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'gen_random_uuid()'; }; readonly many: false; }; readonly key: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly owner_id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly part_number: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: false; readonly many: false; }; readonly size: { readonly dataType: 'pg/int8'; readonly codecId: 'pg/int8@1'; readonly nullable: false; readonly default: { readonly kind: 'literal'; readonly value: DefaultLiteralValue<'pg/int8@1', '0'>; }; readonly many: false; }; readonly upload_id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly version: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 's3_multipart_uploads_parts_pkey'; }; uniques: readonly []; indexes: readonly []; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'storage' & NamespaceId; readonly tableName: 's3_multipart_uploads_parts'; readonly columns: readonly ['bucket_id']; }; readonly target: { readonly namespaceId: 'storage' & NamespaceId; readonly tableName: 'buckets'; readonly columns: readonly ['id']; }; readonly name: 's3_multipart_uploads_parts_bucket_id_fkey'; }, { readonly source: { readonly namespaceId: 'storage' & NamespaceId; readonly tableName: 's3_multipart_uploads_parts'; readonly columns: readonly ['upload_id']; }; readonly target: { readonly namespaceId: 'storage' & NamespaceId; readonly tableName: 's3_multipart_uploads'; readonly columns: readonly ['id']; }; readonly name: 's3_multipart_uploads_parts_upload_id_fkey'; }]; }; readonly vector_indexes: { columns: { readonly bucket_id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly created_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; readonly data_type: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly dimension: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: false; readonly many: false; }; readonly distance_metric: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly id: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'gen_random_uuid()'; }; readonly many: false; }; readonly metadata_configuration: { readonly dataType: 'pg/jsonb'; readonly codecId: 'pg/jsonb@1'; readonly nullable: true; readonly many: false; }; readonly name: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly updated_at: { readonly dataType: 'pg/timestamptz'; readonly codecId: 'pg/timestamptz-temporal@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'now()'; }; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id']; readonly name: 'vector_indexes_pkey'; }; uniques: readonly []; indexes: readonly [{ readonly name: 'vector_indexes_name_bucket_id_idx'; readonly columns: readonly ['name', 'bucket_id']; readonly unique: true; }]; foreignKeys: readonly [{ readonly source: { readonly namespaceId: 'storage' & NamespaceId; readonly tableName: 'vector_indexes'; readonly columns: readonly ['bucket_id']; }; readonly target: { readonly namespaceId: 'storage' & NamespaceId; readonly tableName: 'buckets_vectors'; readonly columns: readonly ['id']; }; readonly name: 'vector_indexes_bucket_id_fkey'; }]; }; }; readonly valueSet: { readonly Buckettype: { readonly kind: 'valueSet'; readonly values: readonly ['STANDARD', 'ANALYTICS', 'VECTOR']; }; }; }; }; }; readonly storageHash: StorageHash; }>, 'roots' | 'domain'> & { readonly target: 'postgres'; readonly targetFamily: 'sql'; readonly roots: { readonly audit_log_entries: { readonly namespace: 'auth' & NamespaceId; readonly model: 'AuditLogEntries'; }; readonly buckets: { readonly namespace: 'storage' & NamespaceId; readonly model: 'StorageBucket'; }; readonly buckets_analytics: { readonly namespace: 'storage' & NamespaceId; readonly model: 'BucketsAnalytics'; }; readonly buckets_vectors: { readonly namespace: 'storage' & NamespaceId; readonly model: 'BucketsVectors'; }; readonly custom_oauth_providers: { readonly namespace: 'auth' & NamespaceId; readonly model: 'CustomOauthProviders'; }; readonly flow_state: { readonly namespace: 'auth' & NamespaceId; readonly model: 'FlowState'; }; readonly iceberg_namespaces: { readonly namespace: 'storage' & NamespaceId; readonly model: 'IcebergNamespaces'; }; readonly iceberg_tables: { readonly namespace: 'storage' & NamespaceId; readonly model: 'IcebergTables'; }; readonly identities: { readonly namespace: 'auth' & NamespaceId; readonly model: 'AuthIdentity'; }; readonly instances: { readonly namespace: 'auth' & NamespaceId; readonly model: 'Instances'; }; readonly mfa_amr_claims: { readonly namespace: 'auth' & NamespaceId; readonly model: 'MfaAmrClaims'; }; readonly mfa_challenges: { readonly namespace: 'auth' & NamespaceId; readonly model: 'MfaChallenges'; }; readonly mfa_factors: { readonly namespace: 'auth' & NamespaceId; readonly model: 'MfaFactors'; }; readonly migrations: { readonly namespace: 'storage' & NamespaceId; readonly model: 'Migrations'; }; readonly oauth_authorizations: { readonly namespace: 'auth' & NamespaceId; readonly model: 'OauthAuthorizations'; }; readonly oauth_client_states: { readonly namespace: 'auth' & NamespaceId; readonly model: 'OauthClientStates'; }; readonly oauth_clients: { readonly namespace: 'auth' & NamespaceId; readonly model: 'OauthClients'; }; readonly oauth_consents: { readonly namespace: 'auth' & NamespaceId; readonly model: 'OauthConsents'; }; readonly objects: { readonly namespace: 'storage' & NamespaceId; readonly model: 'StorageObject'; }; readonly one_time_tokens: { readonly namespace: 'auth' & NamespaceId; readonly model: 'OneTimeTokens'; }; readonly refresh_tokens: { readonly namespace: 'auth' & NamespaceId; readonly model: 'RefreshTokens'; }; readonly s3_multipart_uploads: { readonly namespace: 'storage' & NamespaceId; readonly model: 'S3MultipartUploads'; }; readonly s3_multipart_uploads_parts: { readonly namespace: 'storage' & NamespaceId; readonly model: 'S3MultipartUploadsParts'; }; readonly saml_providers: { readonly namespace: 'auth' & NamespaceId; readonly model: 'SamlProviders'; }; readonly saml_relay_states: { readonly namespace: 'auth' & NamespaceId; readonly model: 'SamlRelayStates'; }; readonly schema_migrations: { readonly namespace: 'auth' & NamespaceId; readonly model: 'SchemaMigrations'; }; readonly sessions: { readonly namespace: 'auth' & NamespaceId; readonly model: 'AuthSession'; }; readonly sso_domains: { readonly namespace: 'auth' & NamespaceId; readonly model: 'SsoDomains'; }; readonly sso_providers: { readonly namespace: 'auth' & NamespaceId; readonly model: 'SsoProviders'; }; readonly users: { readonly namespace: 'auth' & NamespaceId; readonly model: 'AuthUser'; }; readonly vector_indexes: { readonly namespace: 'storage' & NamespaceId; readonly model: 'VectorIndexes'; }; readonly webauthn_challenges: { readonly namespace: 'auth' & NamespaceId; readonly model: 'WebauthnChallenges'; }; readonly webauthn_credentials: { readonly namespace: 'auth' & NamespaceId; readonly model: 'WebauthnCredentials'; }; }; readonly domain: { readonly namespaces: { readonly auth: { readonly models: { readonly AuditLogEntries: { readonly fields: { readonly createdAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly instanceId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly ipAddress: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'sql/varchar@1'; readonly typeParams: { readonly length: 64; }; }; }; readonly payload: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/json@1'; }; }; }; readonly relations: Record; readonly storage: { readonly table: 'audit_log_entries'; readonly namespaceId: 'auth'; readonly fields: { readonly createdAt: { readonly column: 'created_at'; }; readonly id: { readonly column: 'id'; }; readonly instanceId: { readonly column: 'instance_id'; }; readonly ipAddress: { readonly column: 'ip_address'; }; readonly payload: { readonly column: 'payload'; }; }; }; }; readonly AuthIdentity: { readonly fields: { readonly createdAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly email: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly identityData: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/jsonb@1'; }; }; readonly lastSignInAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly provider: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly providerId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly updatedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly userId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; }; readonly relations: { readonly user: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'AuthUser'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['userId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'identities'; readonly namespaceId: 'auth'; readonly fields: { readonly createdAt: { readonly column: 'created_at'; }; readonly email: { readonly column: 'email'; }; readonly id: { readonly column: 'id'; }; readonly identityData: { readonly column: 'identity_data'; }; readonly lastSignInAt: { readonly column: 'last_sign_in_at'; }; readonly provider: { readonly column: 'provider'; }; readonly providerId: { readonly column: 'provider_id'; }; readonly updatedAt: { readonly column: 'updated_at'; }; readonly userId: { readonly column: 'user_id'; }; }; }; }; readonly AuthSession: { readonly fields: { readonly aal: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/enum@1'; readonly typeParams: { readonly typeName: 'auth.aal_level'; }; }; }; readonly createdAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly factorId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly ip: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/inet@1'; }; }; readonly notAfter: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly oauthClientId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly refreshTokenCounter: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int8@1'; }; }; readonly refreshTokenHmacKey: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly refreshedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamp-temporal@1'; }; }; readonly scopes: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly tag: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly updatedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly userAgent: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly userId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; }; readonly relations: { readonly mfaAmrClaims: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'MfaAmrClaims'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['sessionId']; }; }; readonly oauthClient: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'OauthClients'; }; readonly cardinality: 'N:1'; readonly nullable: true; readonly on: { readonly localFields: readonly ['oauthClientId']; readonly targetFields: readonly ['id']; }; }; readonly refreshTokens: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'RefreshTokens'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['sessionId']; }; }; readonly user: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'AuthUser'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['userId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'sessions'; readonly namespaceId: 'auth'; readonly fields: { readonly aal: { readonly column: 'aal'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly factorId: { readonly column: 'factor_id'; }; readonly id: { readonly column: 'id'; }; readonly ip: { readonly column: 'ip'; }; readonly notAfter: { readonly column: 'not_after'; }; readonly oauthClientId: { readonly column: 'oauth_client_id'; }; readonly refreshTokenCounter: { readonly column: 'refresh_token_counter'; }; readonly refreshTokenHmacKey: { readonly column: 'refresh_token_hmac_key'; }; readonly refreshedAt: { readonly column: 'refreshed_at'; }; readonly scopes: { readonly column: 'scopes'; }; readonly tag: { readonly column: 'tag'; }; readonly updatedAt: { readonly column: 'updated_at'; }; readonly userAgent: { readonly column: 'user_agent'; }; readonly userId: { readonly column: 'user_id'; }; }; }; }; readonly AuthUser: { readonly fields: { readonly aud: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'sql/varchar@1'; readonly typeParams: { readonly length: 255; }; }; }; readonly bannedUntil: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly confirmationSentAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly confirmationToken: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'sql/varchar@1'; readonly typeParams: { readonly length: 255; }; }; }; readonly confirmedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly createdAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly deletedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly email: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'sql/varchar@1'; readonly typeParams: { readonly length: 255; }; }; }; readonly emailChange: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'sql/varchar@1'; readonly typeParams: { readonly length: 255; }; }; }; readonly emailChangeConfirmStatus: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int2@1'; }; }; readonly emailChangeSentAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly emailChangeTokenCurrent: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'sql/varchar@1'; readonly typeParams: { readonly length: 255; }; }; }; readonly emailChangeTokenNew: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'sql/varchar@1'; readonly typeParams: { readonly length: 255; }; }; }; readonly emailConfirmedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly encryptedPassword: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'sql/varchar@1'; readonly typeParams: { readonly length: 255; }; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly instanceId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly invitedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly isAnonymous: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/bool@1'; }; }; readonly isSsoUser: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/bool@1'; }; }; readonly isSuperAdmin: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/bool@1'; }; }; readonly lastSignInAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly phone: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly phoneChange: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly phoneChangeSentAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly phoneChangeToken: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'sql/varchar@1'; readonly typeParams: { readonly length: 255; }; }; }; readonly phoneConfirmedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly rawAppMetaData: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/jsonb@1'; }; }; readonly rawUserMetaData: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/jsonb@1'; }; }; readonly reauthenticationSentAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly reauthenticationToken: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'sql/varchar@1'; readonly typeParams: { readonly length: 255; }; }; }; readonly recoverySentAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly recoveryToken: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'sql/varchar@1'; readonly typeParams: { readonly length: 255; }; }; }; readonly role: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'sql/varchar@1'; readonly typeParams: { readonly length: 255; }; }; }; readonly updatedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; }; readonly relations: { readonly identities: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'AuthIdentity'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['userId']; }; }; readonly mfaFactors: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'MfaFactors'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['userId']; }; }; readonly oauthAuthorizations: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'OauthAuthorizations'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['userId']; }; }; readonly oauthConsents: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'OauthConsents'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['userId']; }; }; readonly oneTimeTokens: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'OneTimeTokens'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['userId']; }; }; readonly sessions: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'AuthSession'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['userId']; }; }; readonly webauthnChallenges: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'WebauthnChallenges'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['userId']; }; }; readonly webauthnCredentials: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'WebauthnCredentials'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['userId']; }; }; }; readonly storage: { readonly table: 'users'; readonly namespaceId: 'auth'; readonly fields: { readonly aud: { readonly column: 'aud'; }; readonly bannedUntil: { readonly column: 'banned_until'; }; readonly confirmationSentAt: { readonly column: 'confirmation_sent_at'; }; readonly confirmationToken: { readonly column: 'confirmation_token'; }; readonly confirmedAt: { readonly column: 'confirmed_at'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly deletedAt: { readonly column: 'deleted_at'; }; readonly email: { readonly column: 'email'; }; readonly emailChange: { readonly column: 'email_change'; }; readonly emailChangeConfirmStatus: { readonly column: 'email_change_confirm_status'; }; readonly emailChangeSentAt: { readonly column: 'email_change_sent_at'; }; readonly emailChangeTokenCurrent: { readonly column: 'email_change_token_current'; }; readonly emailChangeTokenNew: { readonly column: 'email_change_token_new'; }; readonly emailConfirmedAt: { readonly column: 'email_confirmed_at'; }; readonly encryptedPassword: { readonly column: 'encrypted_password'; }; readonly id: { readonly column: 'id'; }; readonly instanceId: { readonly column: 'instance_id'; }; readonly invitedAt: { readonly column: 'invited_at'; }; readonly isAnonymous: { readonly column: 'is_anonymous'; }; readonly isSsoUser: { readonly column: 'is_sso_user'; }; readonly isSuperAdmin: { readonly column: 'is_super_admin'; }; readonly lastSignInAt: { readonly column: 'last_sign_in_at'; }; readonly phone: { readonly column: 'phone'; }; readonly phoneChange: { readonly column: 'phone_change'; }; readonly phoneChangeSentAt: { readonly column: 'phone_change_sent_at'; }; readonly phoneChangeToken: { readonly column: 'phone_change_token'; }; readonly phoneConfirmedAt: { readonly column: 'phone_confirmed_at'; }; readonly rawAppMetaData: { readonly column: 'raw_app_meta_data'; }; readonly rawUserMetaData: { readonly column: 'raw_user_meta_data'; }; readonly reauthenticationSentAt: { readonly column: 'reauthentication_sent_at'; }; readonly reauthenticationToken: { readonly column: 'reauthentication_token'; }; readonly recoverySentAt: { readonly column: 'recovery_sent_at'; }; readonly recoveryToken: { readonly column: 'recovery_token'; }; readonly role: { readonly column: 'role'; }; readonly updatedAt: { readonly column: 'updated_at'; }; }; }; }; readonly CustomOauthProviders: { readonly fields: { readonly acceptableClientIds: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; readonly many: { readonly elementNullable: true; }; }; readonly attributeMapping: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/jsonb@1'; }; }; readonly authorizationParams: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/jsonb@1'; }; }; readonly authorizationUrl: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly cachedDiscovery: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/jsonb@1'; }; }; readonly clientId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly clientSecret: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly createdAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly discoveryCachedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly discoveryUrl: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly emailOptional: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/bool@1'; }; }; readonly enabled: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/bool@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly identifier: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly issuer: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly jwksUri: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly name: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly pkceEnabled: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/bool@1'; }; }; readonly providerType: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly scopes: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; readonly many: { readonly elementNullable: true; }; }; readonly skipNonceCheck: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/bool@1'; }; }; readonly tokenUrl: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly updatedAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly userinfoUrl: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; }; readonly relations: Record; readonly storage: { readonly table: 'custom_oauth_providers'; readonly namespaceId: 'auth'; readonly fields: { readonly acceptableClientIds: { readonly column: 'acceptable_client_ids'; }; readonly attributeMapping: { readonly column: 'attribute_mapping'; }; readonly authorizationParams: { readonly column: 'authorization_params'; }; readonly authorizationUrl: { readonly column: 'authorization_url'; }; readonly cachedDiscovery: { readonly column: 'cached_discovery'; }; readonly clientId: { readonly column: 'client_id'; }; readonly clientSecret: { readonly column: 'client_secret'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly discoveryCachedAt: { readonly column: 'discovery_cached_at'; }; readonly discoveryUrl: { readonly column: 'discovery_url'; }; readonly emailOptional: { readonly column: 'email_optional'; }; readonly enabled: { readonly column: 'enabled'; }; readonly id: { readonly column: 'id'; }; readonly identifier: { readonly column: 'identifier'; }; readonly issuer: { readonly column: 'issuer'; }; readonly jwksUri: { readonly column: 'jwks_uri'; }; readonly name: { readonly column: 'name'; }; readonly pkceEnabled: { readonly column: 'pkce_enabled'; }; readonly providerType: { readonly column: 'provider_type'; }; readonly scopes: { readonly column: 'scopes'; }; readonly skipNonceCheck: { readonly column: 'skip_nonce_check'; }; readonly tokenUrl: { readonly column: 'token_url'; }; readonly updatedAt: { readonly column: 'updated_at'; }; readonly userinfoUrl: { readonly column: 'userinfo_url'; }; }; }; }; readonly FlowState: { readonly fields: { readonly authCode: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly authCodeIssuedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly authenticationMethod: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly codeChallenge: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly codeChallengeMethod: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/enum@1'; readonly typeParams: { readonly typeName: 'auth.code_challenge_method'; }; }; }; readonly createdAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly emailOptional: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/bool@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly inviteToken: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly linkingTargetId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly oauthClientStateId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly providerAccessToken: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly providerRefreshToken: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly providerType: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly referrer: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly updatedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly userId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; }; readonly relations: { readonly samlRelayStates: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'SamlRelayStates'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['flowStateId']; }; }; }; readonly storage: { readonly table: 'flow_state'; readonly namespaceId: 'auth'; readonly fields: { readonly authCode: { readonly column: 'auth_code'; }; readonly authCodeIssuedAt: { readonly column: 'auth_code_issued_at'; }; readonly authenticationMethod: { readonly column: 'authentication_method'; }; readonly codeChallenge: { readonly column: 'code_challenge'; }; readonly codeChallengeMethod: { readonly column: 'code_challenge_method'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly emailOptional: { readonly column: 'email_optional'; }; readonly id: { readonly column: 'id'; }; readonly inviteToken: { readonly column: 'invite_token'; }; readonly linkingTargetId: { readonly column: 'linking_target_id'; }; readonly oauthClientStateId: { readonly column: 'oauth_client_state_id'; }; readonly providerAccessToken: { readonly column: 'provider_access_token'; }; readonly providerRefreshToken: { readonly column: 'provider_refresh_token'; }; readonly providerType: { readonly column: 'provider_type'; }; readonly referrer: { readonly column: 'referrer'; }; readonly updatedAt: { readonly column: 'updated_at'; }; readonly userId: { readonly column: 'user_id'; }; }; }; }; readonly Instances: { readonly fields: { readonly createdAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly rawBaseConfig: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly updatedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly uuid: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; }; readonly relations: Record; readonly storage: { readonly table: 'instances'; readonly namespaceId: 'auth'; readonly fields: { readonly createdAt: { readonly column: 'created_at'; }; readonly id: { readonly column: 'id'; }; readonly rawBaseConfig: { readonly column: 'raw_base_config'; }; readonly updatedAt: { readonly column: 'updated_at'; }; readonly uuid: { readonly column: 'uuid'; }; }; }; }; readonly MfaAmrClaims: { readonly fields: { readonly authenticationMethod: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly createdAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly sessionId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly updatedAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; }; readonly relations: { readonly session: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'AuthSession'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['sessionId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'mfa_amr_claims'; readonly namespaceId: 'auth'; readonly fields: { readonly authenticationMethod: { readonly column: 'authentication_method'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly id: { readonly column: 'id'; }; readonly sessionId: { readonly column: 'session_id'; }; readonly updatedAt: { readonly column: 'updated_at'; }; }; }; }; readonly MfaChallenges: { readonly fields: { readonly createdAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly factorId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly ipAddress: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/inet@1'; }; }; readonly otpCode: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly verifiedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly webAuthnSessionData: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/jsonb@1'; }; }; }; readonly relations: { readonly factor: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'MfaFactors'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['factorId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'mfa_challenges'; readonly namespaceId: 'auth'; readonly fields: { readonly createdAt: { readonly column: 'created_at'; }; readonly factorId: { readonly column: 'factor_id'; }; readonly id: { readonly column: 'id'; }; readonly ipAddress: { readonly column: 'ip_address'; }; readonly otpCode: { readonly column: 'otp_code'; }; readonly verifiedAt: { readonly column: 'verified_at'; }; readonly webAuthnSessionData: { readonly column: 'web_authn_session_data'; }; }; }; }; readonly MfaFactors: { readonly fields: { readonly createdAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly factorType: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/enum@1'; readonly typeParams: { readonly typeName: 'auth.factor_type'; }; }; }; readonly friendlyName: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly lastChallengedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly lastWebauthnChallengeData: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/jsonb@1'; }; }; readonly phone: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly secret: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly status: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/enum@1'; readonly typeParams: { readonly typeName: 'auth.factor_status'; }; }; }; readonly updatedAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly userId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly webAuthnAaguid: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly webAuthnCredential: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/jsonb@1'; }; }; }; readonly relations: { readonly mfaChallenges: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'MfaChallenges'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['factorId']; }; }; readonly user: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'AuthUser'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['userId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'mfa_factors'; readonly namespaceId: 'auth'; readonly fields: { readonly createdAt: { readonly column: 'created_at'; }; readonly factorType: { readonly column: 'factor_type'; }; readonly friendlyName: { readonly column: 'friendly_name'; }; readonly id: { readonly column: 'id'; }; readonly lastChallengedAt: { readonly column: 'last_challenged_at'; }; readonly lastWebauthnChallengeData: { readonly column: 'last_webauthn_challenge_data'; }; readonly phone: { readonly column: 'phone'; }; readonly secret: { readonly column: 'secret'; }; readonly status: { readonly column: 'status'; }; readonly updatedAt: { readonly column: 'updated_at'; }; readonly userId: { readonly column: 'user_id'; }; readonly webAuthnAaguid: { readonly column: 'web_authn_aaguid'; }; readonly webAuthnCredential: { readonly column: 'web_authn_credential'; }; }; }; }; readonly OauthAuthorizations: { readonly fields: { readonly approvedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly authorizationCode: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly authorizationId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly clientId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly codeChallenge: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly codeChallengeMethod: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/enum@1'; readonly typeParams: { readonly typeName: 'auth.code_challenge_method'; }; }; }; readonly createdAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly expiresAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly nonce: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly redirectUri: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly resource: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly responseType: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/enum@1'; readonly typeParams: { readonly typeName: 'auth.oauth_response_type'; }; }; }; readonly scope: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly state: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly status: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/enum@1'; readonly typeParams: { readonly typeName: 'auth.oauth_authorization_status'; }; }; }; readonly userId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; }; readonly relations: { readonly client: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'OauthClients'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['clientId']; readonly targetFields: readonly ['id']; }; }; readonly user: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'AuthUser'; }; readonly cardinality: 'N:1'; readonly nullable: true; readonly on: { readonly localFields: readonly ['userId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'oauth_authorizations'; readonly namespaceId: 'auth'; readonly fields: { readonly approvedAt: { readonly column: 'approved_at'; }; readonly authorizationCode: { readonly column: 'authorization_code'; }; readonly authorizationId: { readonly column: 'authorization_id'; }; readonly clientId: { readonly column: 'client_id'; }; readonly codeChallenge: { readonly column: 'code_challenge'; }; readonly codeChallengeMethod: { readonly column: 'code_challenge_method'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly expiresAt: { readonly column: 'expires_at'; }; readonly id: { readonly column: 'id'; }; readonly nonce: { readonly column: 'nonce'; }; readonly redirectUri: { readonly column: 'redirect_uri'; }; readonly resource: { readonly column: 'resource'; }; readonly responseType: { readonly column: 'response_type'; }; readonly scope: { readonly column: 'scope'; }; readonly state: { readonly column: 'state'; }; readonly status: { readonly column: 'status'; }; readonly userId: { readonly column: 'user_id'; }; }; }; }; readonly OauthClients: { readonly fields: { readonly clientName: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly clientSecretHash: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly clientType: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/enum@1'; readonly typeParams: { readonly typeName: 'auth.oauth_client_type'; }; }; }; readonly clientUri: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly createdAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly deletedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly grantTypes: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly logoUri: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly redirectUris: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly registrationType: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/enum@1'; readonly typeParams: { readonly typeName: 'auth.oauth_registration_type'; }; }; }; readonly tokenEndpointAuthMethod: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly updatedAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; }; readonly relations: { readonly oauthAuthorizations: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'OauthAuthorizations'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['clientId']; }; }; readonly oauthConsents: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'OauthConsents'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['clientId']; }; }; readonly sessions: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'AuthSession'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['oauthClientId']; }; }; }; readonly storage: { readonly table: 'oauth_clients'; readonly namespaceId: 'auth'; readonly fields: { readonly clientName: { readonly column: 'client_name'; }; readonly clientSecretHash: { readonly column: 'client_secret_hash'; }; readonly clientType: { readonly column: 'client_type'; }; readonly clientUri: { readonly column: 'client_uri'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly deletedAt: { readonly column: 'deleted_at'; }; readonly grantTypes: { readonly column: 'grant_types'; }; readonly id: { readonly column: 'id'; }; readonly logoUri: { readonly column: 'logo_uri'; }; readonly redirectUris: { readonly column: 'redirect_uris'; }; readonly registrationType: { readonly column: 'registration_type'; }; readonly tokenEndpointAuthMethod: { readonly column: 'token_endpoint_auth_method'; }; readonly updatedAt: { readonly column: 'updated_at'; }; }; }; }; readonly OauthClientStates: { readonly fields: { readonly codeVerifier: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly createdAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly providerType: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; }; readonly relations: Record; readonly storage: { readonly table: 'oauth_client_states'; readonly namespaceId: 'auth'; readonly fields: { readonly codeVerifier: { readonly column: 'code_verifier'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly id: { readonly column: 'id'; }; readonly providerType: { readonly column: 'provider_type'; }; }; }; }; readonly OauthConsents: { readonly fields: { readonly clientId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly grantedAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly revokedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly scopes: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly userId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; }; readonly relations: { readonly client: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'OauthClients'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['clientId']; readonly targetFields: readonly ['id']; }; }; readonly user: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'AuthUser'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['userId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'oauth_consents'; readonly namespaceId: 'auth'; readonly fields: { readonly clientId: { readonly column: 'client_id'; }; readonly grantedAt: { readonly column: 'granted_at'; }; readonly id: { readonly column: 'id'; }; readonly revokedAt: { readonly column: 'revoked_at'; }; readonly scopes: { readonly column: 'scopes'; }; readonly userId: { readonly column: 'user_id'; }; }; }; }; readonly OneTimeTokens: { readonly fields: { readonly createdAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamp-temporal@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly relatesTo: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly tokenHash: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly tokenType: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/enum@1'; readonly typeParams: { readonly typeName: 'auth.one_time_token_type'; }; }; }; readonly updatedAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamp-temporal@1'; }; }; readonly userId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; }; readonly relations: { readonly user: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'AuthUser'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['userId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'one_time_tokens'; readonly namespaceId: 'auth'; readonly fields: { readonly createdAt: { readonly column: 'created_at'; }; readonly id: { readonly column: 'id'; }; readonly relatesTo: { readonly column: 'relates_to'; }; readonly tokenHash: { readonly column: 'token_hash'; }; readonly tokenType: { readonly column: 'token_type'; }; readonly updatedAt: { readonly column: 'updated_at'; }; readonly userId: { readonly column: 'user_id'; }; }; }; }; readonly RefreshTokens: { readonly fields: { readonly createdAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int8@1'; }; }; readonly instanceId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly parent: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'sql/varchar@1'; readonly typeParams: { readonly length: 255; }; }; }; readonly revoked: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/bool@1'; }; }; readonly sessionId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly token: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'sql/varchar@1'; readonly typeParams: { readonly length: 255; }; }; }; readonly updatedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly userId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'sql/varchar@1'; readonly typeParams: { readonly length: 255; }; }; }; }; readonly relations: { readonly session: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'AuthSession'; }; readonly cardinality: 'N:1'; readonly nullable: true; readonly on: { readonly localFields: readonly ['sessionId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'refresh_tokens'; readonly namespaceId: 'auth'; readonly fields: { readonly createdAt: { readonly column: 'created_at'; }; readonly id: { readonly column: 'id'; }; readonly instanceId: { readonly column: 'instance_id'; }; readonly parent: { readonly column: 'parent'; }; readonly revoked: { readonly column: 'revoked'; }; readonly sessionId: { readonly column: 'session_id'; }; readonly token: { readonly column: 'token'; }; readonly updatedAt: { readonly column: 'updated_at'; }; readonly userId: { readonly column: 'user_id'; }; }; }; }; readonly SamlProviders: { readonly fields: { readonly attributeMapping: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/jsonb@1'; }; }; readonly createdAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly entityId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly metadataUrl: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly metadataXml: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly nameIdFormat: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly ssoProviderId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly updatedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; }; readonly relations: { readonly ssoProvider: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'SsoProviders'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['ssoProviderId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'saml_providers'; readonly namespaceId: 'auth'; readonly fields: { readonly attributeMapping: { readonly column: 'attribute_mapping'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly entityId: { readonly column: 'entity_id'; }; readonly id: { readonly column: 'id'; }; readonly metadataUrl: { readonly column: 'metadata_url'; }; readonly metadataXml: { readonly column: 'metadata_xml'; }; readonly nameIdFormat: { readonly column: 'name_id_format'; }; readonly ssoProviderId: { readonly column: 'sso_provider_id'; }; readonly updatedAt: { readonly column: 'updated_at'; }; }; }; }; readonly SamlRelayStates: { readonly fields: { readonly createdAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly flowStateId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly forEmail: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly redirectTo: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly requestId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly ssoProviderId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly updatedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; }; readonly relations: { readonly flowState: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'FlowState'; }; readonly cardinality: 'N:1'; readonly nullable: true; readonly on: { readonly localFields: readonly ['flowStateId']; readonly targetFields: readonly ['id']; }; }; readonly ssoProvider: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'SsoProviders'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['ssoProviderId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'saml_relay_states'; readonly namespaceId: 'auth'; readonly fields: { readonly createdAt: { readonly column: 'created_at'; }; readonly flowStateId: { readonly column: 'flow_state_id'; }; readonly forEmail: { readonly column: 'for_email'; }; readonly id: { readonly column: 'id'; }; readonly redirectTo: { readonly column: 'redirect_to'; }; readonly requestId: { readonly column: 'request_id'; }; readonly ssoProviderId: { readonly column: 'sso_provider_id'; }; readonly updatedAt: { readonly column: 'updated_at'; }; }; }; }; readonly SchemaMigrations: { readonly fields: { readonly version: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'sql/varchar@1'; readonly typeParams: { readonly length: 255; }; }; }; }; readonly relations: Record; readonly storage: { readonly table: 'schema_migrations'; readonly namespaceId: 'auth'; readonly fields: { readonly version: { readonly column: 'version'; }; }; }; }; readonly SsoDomains: { readonly fields: { readonly createdAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly domain: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly ssoProviderId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly updatedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; }; readonly relations: { readonly ssoProvider: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'SsoProviders'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['ssoProviderId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'sso_domains'; readonly namespaceId: 'auth'; readonly fields: { readonly createdAt: { readonly column: 'created_at'; }; readonly domain: { readonly column: 'domain'; }; readonly id: { readonly column: 'id'; }; readonly ssoProviderId: { readonly column: 'sso_provider_id'; }; readonly updatedAt: { readonly column: 'updated_at'; }; }; }; }; readonly SsoProviders: { readonly fields: { readonly createdAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly disabled: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/bool@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly resourceId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly updatedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; }; readonly relations: { readonly samlProviders: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'SamlProviders'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['ssoProviderId']; }; }; readonly samlRelayStates: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'SamlRelayStates'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['ssoProviderId']; }; }; readonly ssoDomains: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'SsoDomains'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['ssoProviderId']; }; }; }; readonly storage: { readonly table: 'sso_providers'; readonly namespaceId: 'auth'; readonly fields: { readonly createdAt: { readonly column: 'created_at'; }; readonly disabled: { readonly column: 'disabled'; }; readonly id: { readonly column: 'id'; }; readonly resourceId: { readonly column: 'resource_id'; }; readonly updatedAt: { readonly column: 'updated_at'; }; }; }; }; readonly WebauthnChallenges: { readonly fields: { readonly challengeType: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly createdAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly expiresAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly sessionData: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/jsonb@1'; }; }; readonly userId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; }; readonly relations: { readonly user: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'AuthUser'; }; readonly cardinality: 'N:1'; readonly nullable: true; readonly on: { readonly localFields: readonly ['userId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'webauthn_challenges'; readonly namespaceId: 'auth'; readonly fields: { readonly challengeType: { readonly column: 'challenge_type'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly expiresAt: { readonly column: 'expires_at'; }; readonly id: { readonly column: 'id'; }; readonly sessionData: { readonly column: 'session_data'; }; readonly userId: { readonly column: 'user_id'; }; }; }; }; readonly WebauthnCredentials: { readonly fields: { readonly aaguid: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly attestationType: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly backedUp: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/bool@1'; }; }; readonly backupEligible: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/bool@1'; }; }; readonly createdAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly credentialId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/bytea@1'; }; }; readonly friendlyName: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly lastUsedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly publicKey: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/bytea@1'; }; }; readonly signCount: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int8@1'; }; }; readonly transports: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/jsonb@1'; }; }; readonly updatedAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly userId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; }; readonly relations: { readonly user: { readonly to: { readonly namespace: 'auth' & NamespaceId; readonly model: 'AuthUser'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['userId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'webauthn_credentials'; readonly namespaceId: 'auth'; readonly fields: { readonly aaguid: { readonly column: 'aaguid'; }; readonly attestationType: { readonly column: 'attestation_type'; }; readonly backedUp: { readonly column: 'backed_up'; }; readonly backupEligible: { readonly column: 'backup_eligible'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly credentialId: { readonly column: 'credential_id'; }; readonly friendlyName: { readonly column: 'friendly_name'; }; readonly id: { readonly column: 'id'; }; readonly lastUsedAt: { readonly column: 'last_used_at'; }; readonly publicKey: { readonly column: 'public_key'; }; readonly signCount: { readonly column: 'sign_count'; }; readonly transports: { readonly column: 'transports'; }; readonly updatedAt: { readonly column: 'updated_at'; }; readonly userId: { readonly column: 'user_id'; }; }; }; }; }; }; readonly storage: { readonly models: { readonly BucketsAnalytics: { readonly fields: { readonly _type: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/enum@1'; readonly typeParams: { readonly typeName: 'storage.buckettype'; }; }; }; readonly createdAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly deletedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly format: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly name: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly updatedAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; }; readonly relations: { readonly icebergNamespaces: { readonly to: { readonly namespace: 'storage' & NamespaceId; readonly model: 'IcebergNamespaces'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['catalogId']; }; }; readonly icebergTables: { readonly to: { readonly namespace: 'storage' & NamespaceId; readonly model: 'IcebergTables'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['catalogId']; }; }; }; readonly storage: { readonly table: 'buckets_analytics'; readonly namespaceId: 'storage'; readonly fields: { readonly _type: { readonly column: 'type'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly deletedAt: { readonly column: 'deleted_at'; }; readonly format: { readonly column: 'format'; }; readonly id: { readonly column: 'id'; }; readonly name: { readonly column: 'name'; }; readonly updatedAt: { readonly column: 'updated_at'; }; }; }; }; readonly BucketsVectors: { readonly fields: { readonly _type: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/enum@1'; readonly typeParams: { readonly typeName: 'storage.buckettype'; }; }; }; readonly createdAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly updatedAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; }; readonly relations: { readonly vectorIndexes: { readonly to: { readonly namespace: 'storage' & NamespaceId; readonly model: 'VectorIndexes'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['bucketId']; }; }; }; readonly storage: { readonly table: 'buckets_vectors'; readonly namespaceId: 'storage'; readonly fields: { readonly _type: { readonly column: 'type'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly id: { readonly column: 'id'; }; readonly updatedAt: { readonly column: 'updated_at'; }; }; }; }; readonly IcebergNamespaces: { readonly fields: { readonly bucketName: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly catalogId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly createdAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly metadata: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/jsonb@1'; }; }; readonly name: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly updatedAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; }; readonly relations: { readonly catalog: { readonly to: { readonly namespace: 'storage' & NamespaceId; readonly model: 'BucketsAnalytics'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['catalogId']; readonly targetFields: readonly ['id']; }; }; readonly icebergTables: { readonly to: { readonly namespace: 'storage' & NamespaceId; readonly model: 'IcebergTables'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['namespaceId']; }; }; }; readonly storage: { readonly table: 'iceberg_namespaces'; readonly namespaceId: 'storage'; readonly fields: { readonly bucketName: { readonly column: 'bucket_name'; }; readonly catalogId: { readonly column: 'catalog_id'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly id: { readonly column: 'id'; }; readonly metadata: { readonly column: 'metadata'; }; readonly name: { readonly column: 'name'; }; readonly updatedAt: { readonly column: 'updated_at'; }; }; }; }; readonly IcebergTables: { readonly fields: { readonly bucketName: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly catalogId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly createdAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly location: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly name: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly namespaceId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly remoteTableId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly shardId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly shardKey: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly updatedAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; }; readonly relations: { readonly catalog: { readonly to: { readonly namespace: 'storage' & NamespaceId; readonly model: 'BucketsAnalytics'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['catalogId']; readonly targetFields: readonly ['id']; }; }; readonly namespace: { readonly to: { readonly namespace: 'storage' & NamespaceId; readonly model: 'IcebergNamespaces'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['namespaceId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'iceberg_tables'; readonly namespaceId: 'storage'; readonly fields: { readonly bucketName: { readonly column: 'bucket_name'; }; readonly catalogId: { readonly column: 'catalog_id'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly id: { readonly column: 'id'; }; readonly location: { readonly column: 'location'; }; readonly name: { readonly column: 'name'; }; readonly namespaceId: { readonly column: 'namespace_id'; }; readonly remoteTableId: { readonly column: 'remote_table_id'; }; readonly shardId: { readonly column: 'shard_id'; }; readonly shardKey: { readonly column: 'shard_key'; }; readonly updatedAt: { readonly column: 'updated_at'; }; }; }; }; readonly Migrations: { readonly fields: { readonly executedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamp-temporal@1'; }; }; readonly hash: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'sql/varchar@1'; readonly typeParams: { readonly length: 40; }; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1'; }; }; readonly name: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'sql/varchar@1'; readonly typeParams: { readonly length: 100; }; }; }; }; readonly relations: Record; readonly storage: { readonly table: 'migrations'; readonly namespaceId: 'storage'; readonly fields: { readonly executedAt: { readonly column: 'executed_at'; }; readonly hash: { readonly column: 'hash'; }; readonly id: { readonly column: 'id'; }; readonly name: { readonly column: 'name'; }; }; }; }; readonly S3MultipartUploads: { readonly fields: { readonly bucketId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly createdAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly inProgressSize: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int8@1'; }; }; readonly key: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly metadata: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/jsonb@1'; }; }; readonly ownerId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly uploadSignature: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly userMetadata: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/jsonb@1'; }; }; readonly version: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; }; readonly relations: { readonly bucket: { readonly to: { readonly namespace: 'storage' & NamespaceId; readonly model: 'StorageBucket'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['bucketId']; readonly targetFields: readonly ['id']; }; }; readonly s3MultipartUploadsParts: { readonly to: { readonly namespace: 'storage' & NamespaceId; readonly model: 'S3MultipartUploadsParts'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['uploadId']; }; }; }; readonly storage: { readonly table: 's3_multipart_uploads'; readonly namespaceId: 'storage'; readonly fields: { readonly bucketId: { readonly column: 'bucket_id'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly id: { readonly column: 'id'; }; readonly inProgressSize: { readonly column: 'in_progress_size'; }; readonly key: { readonly column: 'key'; }; readonly metadata: { readonly column: 'metadata'; }; readonly ownerId: { readonly column: 'owner_id'; }; readonly uploadSignature: { readonly column: 'upload_signature'; }; readonly userMetadata: { readonly column: 'user_metadata'; }; readonly version: { readonly column: 'version'; }; }; }; }; readonly S3MultipartUploadsParts: { readonly fields: { readonly bucketId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly createdAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly etag: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly key: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly ownerId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly partNumber: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1'; }; }; readonly size: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int8@1'; }; }; readonly uploadId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly version: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; }; readonly relations: { readonly bucket: { readonly to: { readonly namespace: 'storage' & NamespaceId; readonly model: 'StorageBucket'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['bucketId']; readonly targetFields: readonly ['id']; }; }; readonly upload: { readonly to: { readonly namespace: 'storage' & NamespaceId; readonly model: 'S3MultipartUploads'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['uploadId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 's3_multipart_uploads_parts'; readonly namespaceId: 'storage'; readonly fields: { readonly bucketId: { readonly column: 'bucket_id'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly etag: { readonly column: 'etag'; }; readonly id: { readonly column: 'id'; }; readonly key: { readonly column: 'key'; }; readonly ownerId: { readonly column: 'owner_id'; }; readonly partNumber: { readonly column: 'part_number'; }; readonly size: { readonly column: 'size'; }; readonly uploadId: { readonly column: 'upload_id'; }; readonly version: { readonly column: 'version'; }; }; }; }; readonly StorageBucket: { readonly fields: { readonly _type: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/enum@1'; readonly typeParams: { readonly typeName: 'storage.buckettype'; }; }; }; readonly allowedMimeTypes: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; readonly many: { readonly elementNullable: true; }; }; readonly avifAutodetection: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/bool@1'; }; }; readonly createdAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly fileSizeLimit: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int8@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly name: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly owner: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly ownerId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly public: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/bool@1'; }; }; readonly updatedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; }; readonly relations: { readonly objects: { readonly to: { readonly namespace: 'storage' & NamespaceId; readonly model: 'StorageObject'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['bucketId']; }; }; readonly s3MultipartUploads: { readonly to: { readonly namespace: 'storage' & NamespaceId; readonly model: 'S3MultipartUploads'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['bucketId']; }; }; readonly s3MultipartUploadsParts: { readonly to: { readonly namespace: 'storage' & NamespaceId; readonly model: 'S3MultipartUploadsParts'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['bucketId']; }; }; }; readonly storage: { readonly table: 'buckets'; readonly namespaceId: 'storage'; readonly fields: { readonly _type: { readonly column: 'type'; }; readonly allowedMimeTypes: { readonly column: 'allowed_mime_types'; }; readonly avifAutodetection: { readonly column: 'avif_autodetection'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly fileSizeLimit: { readonly column: 'file_size_limit'; }; readonly id: { readonly column: 'id'; }; readonly name: { readonly column: 'name'; }; readonly owner: { readonly column: 'owner'; }; readonly ownerId: { readonly column: 'owner_id'; }; readonly public: { readonly column: 'public'; }; readonly updatedAt: { readonly column: 'updated_at'; }; }; }; }; readonly StorageObject: { readonly fields: { readonly bucketId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly createdAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly lastAccessedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly metadata: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/jsonb@1'; }; }; readonly name: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly owner: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1'; }; }; readonly ownerId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly pathTokens: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; readonly many: { readonly elementNullable: true; }; }; readonly updatedAt: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly userMetadata: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/jsonb@1'; }; }; readonly version: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; }; readonly relations: { readonly bucket: { readonly to: { readonly namespace: 'storage' & NamespaceId; readonly model: 'StorageBucket'; }; readonly cardinality: 'N:1'; readonly nullable: true; readonly on: { readonly localFields: readonly ['bucketId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'objects'; readonly namespaceId: 'storage'; readonly fields: { readonly bucketId: { readonly column: 'bucket_id'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly id: { readonly column: 'id'; }; readonly lastAccessedAt: { readonly column: 'last_accessed_at'; }; readonly metadata: { readonly column: 'metadata'; }; readonly name: { readonly column: 'name'; }; readonly owner: { readonly column: 'owner'; }; readonly ownerId: { readonly column: 'owner_id'; }; readonly pathTokens: { readonly column: 'path_tokens'; }; readonly updatedAt: { readonly column: 'updated_at'; }; readonly userMetadata: { readonly column: 'user_metadata'; }; readonly version: { readonly column: 'version'; }; }; }; }; readonly VectorIndexes: { readonly fields: { readonly bucketId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly createdAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; readonly dataType: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly dimension: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1'; }; }; readonly distanceMetric: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly metadataConfiguration: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/jsonb@1'; }; }; readonly name: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1'; }; }; readonly updatedAt: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz-temporal@1'; }; }; }; readonly relations: { readonly bucket: { readonly to: { readonly namespace: 'storage' & NamespaceId; readonly model: 'BucketsVectors'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['bucketId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'vector_indexes'; readonly namespaceId: 'storage'; readonly fields: { readonly bucketId: { readonly column: 'bucket_id'; }; readonly createdAt: { readonly column: 'created_at'; }; readonly dataType: { readonly column: 'data_type'; }; readonly dimension: { readonly column: 'dimension'; }; readonly distanceMetric: { readonly column: 'distance_metric'; }; readonly id: { readonly column: 'id'; }; readonly metadataConfiguration: { readonly column: 'metadata_configuration'; }; readonly name: { readonly column: 'name'; }; readonly updatedAt: { readonly column: 'updated_at'; }; }; }; }; }; }; }; }; readonly capabilities: { readonly postgres: { readonly distinctOn: true; readonly forKeyShare: true; readonly forNoKeyUpdate: true; readonly jsonAgg: true; readonly lateral: true; readonly limit: true; readonly orderBy: true; readonly returning: true; }; readonly sql: { readonly checkConstraint: true; readonly defaultInInsert: true; readonly enums: true; readonly forShare: true; readonly forUpdate: true; readonly insertOnConflictSkip: true; readonly insertOnConflictWithoutTarget: true; readonly lateral: true; readonly lockNowait: true; readonly lockOf: true; readonly lockSkipLocked: true; readonly returning: true; readonly scalarList: true; }; }; readonly extensions: {}; readonly meta: {}; readonly profileHash: ProfileHash; }; type Contract$1 = ContractWithTypeMaps; //#endregion //#region src/runtime/ext-contract-type.d.ts /** * The Supabase extension's own emitted contract type (`auth`, `storage` * namespaces), re-exported under a distinct name so the runtime facade can * reference it alongside the framework `Contract` (`@internal/contract/types`) * without an aliased import. Backs the `service_role` `.supabase` secondary root. */ type SupabaseExtensionContract = Contract$1; //#endregion //#region src/runtime/supabase.d.ts type SupabaseTargetId = 'postgres'; type OrmClient, TCollections extends CollectionClasses = NoCollectionClasses> = ReturnType>; interface RoleBoundDb, TCollections extends CollectionClasses = NoCollectionClasses> extends PostgresQueryMembers, PreparedStatementQueryTarget, PreparedStatementExecuteTarget { readonly enums: NamespacedEnums; readonly nativeEnums: NamespacedNativeEnums; transaction(fn: (tx: SupabaseTransactionContext) => PromiseLike): Promise; } /** A transaction on a role-bound client: the members of a Postgres transaction, run under the bound role. */ type SupabaseTransactionContext, TCollections extends CollectionClasses = NoCollectionClasses> = PostgresTransactionContext; /** * Query surface for the Supabase-internal contract (`auth`, `storage`). Exposed * as a separate secondary root — never merged into the app contract — and only * reachable through `service_role`, the one role with grants on those schemas * over a direct Postgres connection. * * Deliberately omits `transaction` (which {@link RoleBoundDb} has): the primary * app root and this secondary root are served by separate runtimes that do not * share one pinned connection, so a transaction spanning both is out of scope for v1. */ interface SupabaseInternalDb extends ToSqlMember { readonly sql: Db; readonly orm: OrmClient; readonly nativeEnums: NamespacedNativeEnums; query(plan: (SqlExecutionPlan | SqlQueryPlan) & { readonly _row?: Row; }, options?: RuntimeExecuteOptions): AsyncIterableResult; execute(plan: SqlExecutionPlan | SqlQueryPlan, options?: RuntimeExecuteOptions): Promise; } /** * The `service_role` db: the app-contract role-bound surface (its `.sql` / `.orm` * are app-only, exactly like `asUser` / `asAnon`), plus a `.supabase` secondary * root for the Supabase-internal namespaces. */ type ServiceRoleDb, TCollections extends CollectionClasses = NoCollectionClasses> = RoleBoundDb & { readonly supabase: SupabaseInternalDb; }; interface SupabaseDb, TCollections extends CollectionClasses = NoCollectionClasses> { readonly context: ExecutionContext; readonly stack: SqlExecutionStackWithDriver; asUser(jwt: string): Promise>; asAnon(): RoleBoundDb; asServiceRole(): ServiceRoleDb; close(): Promise; [Symbol.asyncDispose](): Promise; } interface SupabaseOptionsBase { readonly extensions?: readonly SqlRuntimeExtensionDescriptor[]; readonly middleware?: readonly SqlMiddleware[]; readonly verifyMarker?: VerifyMarkerOption; readonly log?: Log; readonly mode?: RuntimeMode; readonly poolOptions?: { readonly connectionTimeoutMillis?: number; readonly idleTimeoutMillis?: number; }; } interface SupabaseBindingOptions { readonly url?: string; readonly pg?: Pool; } type JwtSecretOption = { readonly jwtSecret: string; readonly jwksUrl?: never; }; type JwksUrlOption = { readonly jwksUrl: string; readonly jwtSecret?: never; }; type SupabaseOptions, TCollections extends CollectionClasses = NoCollectionClasses> = SupabaseBindingOptions & SupabaseOptionsBase & (JwtSecretOption | JwksUrlOption) & { readonly contract: TContract; readonly collections?: TCollections; }; /** * Creates a Supabase client whose queries run as the role a JWT names. The client infers its * contract type from `contract`: a value from `contractFromJson` of `@prisma/orm-postgres/static` * for an emitted contract, or a TypeScript-authored contract. A contract is validated once, however * many clients are built from it. The pool is created on the first query. * * @example * ```ts * import { contractFromJson } from '@prisma/orm-postgres/static'; * import { supabase } from '@prisma/orm-extension-supabase/runtime'; * import type { Contract } from './contract.d'; * import contractJson from './contract.json' with { type: 'json' }; * * export const contract = contractFromJson(contractJson); * export const db = await supabase({ contract, url, jwtSecret }); * ``` */ declare function supabase, TCollections extends CollectionClasses = NoCollectionClasses>(options: SupabaseOptions): Promise>; //#endregion //#region src/runtime/supabase-runtime.d.ts interface SupabaseRuntime extends PostgresRuntime { /** The operations of this runtime under `binding`: each statement runs on a session bound to the role. A transaction runs on a session from `connection()`, as `withTransaction` and the ORM open it. */ forRole(binding: SupabaseRoleBinding): SupabaseRoleScope; } /** The operations of a Supabase runtime under one role. */ interface SupabaseRoleScope extends RuntimeQueryable, PreparedStatementQueryTarget, PreparedStatementExecuteTarget { /** Opens a session bound to the role; the caller releases it. */ connection(): Promise; } interface SupabaseRoleBinding { readonly role: SupabaseRole; readonly claims?: Record; } /** * A connection with a Supabase role already bound via session-scoped set_config. * Implements `RuntimeConnection` so it plugs into ORM scope machinery and `withTransaction`. */ interface RoleSession extends RuntimeConnection {} declare class SupabaseRuntimeImpl = Contract> extends PostgresRuntimeImpl { /** * Opens a raw connection and applies role + JWT claims via session-scoped set_config. On bind failure, destroys the connection before rethrowing — no leaked connections. Every operation of `forRole(binding)` runs on a session opened here. */ openRoleSession(binding: SupabaseRoleBinding): Promise; private openRoleConnection; forRole(binding: SupabaseRoleBinding): SupabaseRoleScope & ActivitySourceTarget; private beginRoleTransaction; private runPreparedExecuteAgainstRoleQueryable; private runPreparedQueryAgainstRoleQueryable; } //#endregion export { type RoleBoundDb, type RoleSession, type ServiceRoleDb, type SupabaseDb, type SupabaseExtensionContract, type SupabaseInternalDb, type SupabaseOptions, type SupabaseRoleBinding, type SupabaseRoleScope, type SupabaseRuntime, SupabaseRuntimeImpl, type SupabaseTargetId, type SupabaseTransactionContext, supabaseRuntimeDescriptor as default, supabase }; //# sourceMappingURL=runtime.d.mts.map