Skip to content

public.authentication_logs

Description

Labels

svc-portal

Columns

NameTypeDefaultNullableChildrenParentsComment
log_idvarchar(36)falseLog entry identifier (UUID).
event_typevarchar(50)falseAuth event type: LOGIN, LOGOUT, MFA_VERIFY, etc.
successbooleanfalseEvent success status.
user_idvarchar(36)trueUser ID if applicable.
device_idvarchar(50)trueDevice ID if applicable.
emailvarchar(255)trueEmail address for login attempts.
ip_addressvarchar(45)trueClient IP address.
user_agentvarchar(255)trueClient user agent.
failure_reasonvarchar(255)trueReason for failure if success=false.
event_metadatajsontrueAdditional event context (JSON).
impersonated_by_user_idvarchar(36)trueUser ID who initiated impersonation.
created_attimestamp with time zonefalseLog entry creation timestamp.

Viewpoints

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

Constraints

NameTypeDefinition
authentication_logs_pkeyPRIMARY KEYPRIMARY KEY (log_id)

Indexes

NameDefinition
authentication_logs_pkeyCREATE UNIQUE INDEX authentication_logs_pkey ON public.authentication_logs USING btree (log_id)
ix_authentication_logs_created_atCREATE INDEX ix_authentication_logs_created_at ON public.authentication_logs USING btree (created_at)
ix_authentication_logs_device_idCREATE INDEX ix_authentication_logs_device_id ON public.authentication_logs USING btree (device_id)
ix_authentication_logs_event_typeCREATE INDEX ix_authentication_logs_event_type ON public.authentication_logs USING btree (event_type)
ix_authentication_logs_impersonated_by_user_idCREATE INDEX ix_authentication_logs_impersonated_by_user_id ON public.authentication_logs USING btree (impersonated_by_user_id)
ix_authentication_logs_ip_addressCREATE INDEX ix_authentication_logs_ip_address ON public.authentication_logs USING btree (ip_address)
ix_authentication_logs_successCREATE INDEX ix_authentication_logs_success ON public.authentication_logs USING btree (success)
ix_authentication_logs_user_idCREATE INDEX ix_authentication_logs_user_id ON public.authentication_logs USING btree (user_id)

Relations


Generated by tbls

MPAC — MP-Solution Advanced Cloud Service