Skip to content

@shutter-network/concorde/password-auth/schema

The tables this component creates, and the PostgreSQL schema concorde_password_auth it creates them in. A configuration listing @shutter-network/concorde/password-auth/schema creates all of them.

Generated from the snapshot drizzle-kit takes of src/password-auth/schema/index.ts, which is the snapshot an Operator's own generation reads. Never edited by hand.

Foreign keys leave this schema. passwords.user_id and tokens.user_id point into concorde_users, which @shutter-network/concorde/users/schema creates. A configuration that lists @shutter-network/concorde/password-auth/schema without it generates a constraint onto a table nobody creates.

concorde_password_auth.passwords

ColumnTypeNullableDefault
user_iduuidno
password_hashtextno
updated_attimestamp with time zonenoclock_timestamp()

Primary key: user_id

Foreign keys

ColumnsReferencesOn deleteOn update
user_idconcorde_users.users (id)no actionno action

concorde_password_auth.tokens

ColumnTypeNullableDefault
iduuidnogen_random_uuid()
user_iduuidno
token_hashtextno
created_attimestamp with time zonenoclock_timestamp()
expires_attimestamp with time zoneno

Primary key: id

Unique constraints

NameColumnsNulls not distinct
password_auth_tokens_token_hash_uniquetoken_hashno

Indexes

NameColumnsMethodUnique
password_auth_tokens_user_idxuser_idbtreeno

Foreign keys

ColumnsReferencesOn deleteOn update
user_idconcorde_users.users (id)cascadeno action