Skip to content

public.mfa_codes

Description

Labels

svc-portal

Columns

NameTypeDefaultNullableChildrenParentsComment
code_idvarchar(36)falseMFA code identifier (UUID).
user_idvarchar(36)falseUser ID who owns this code.
code_typevarchar(50)falseCode type: LOGIN or PASSWORD_RESET.
code_hashvarchar(255)falseHash of the MFA code.
sent_tovarchar(255)falseDestination phone or email.
sent_attimestamp with time zonefalseCode sent timestamp.
expires_attimestamp with time zonefalseCode expiration timestamp.
is_usedbooleanfalseCode used flag.
used_attimestamp with time zonetrueCode verified timestamp.
verification_attemptsintegerfalseNumber of verification attempts.
created_attimestamp with time zonefalseRecord creation timestamp.

Viewpoints

NameDefinition
Authentication & SessionsUser authentication, MFA, sessions, and audit logs

Constraints

NameTypeDefinition
mfa_codes_pkeyPRIMARY KEYPRIMARY KEY (code_id)

Indexes

NameDefinition
mfa_codes_pkeyCREATE UNIQUE INDEX mfa_codes_pkey ON public.mfa_codes USING btree (code_id)
ix_mfa_codes_expires_atCREATE INDEX ix_mfa_codes_expires_at ON public.mfa_codes USING btree (expires_at)
ix_mfa_codes_user_idCREATE INDEX ix_mfa_codes_user_id ON public.mfa_codes USING btree (user_id)

Relations


Generated by tbls

MPAC — MP-Solution Advanced Cloud Service