Skip to main content

cloud.users

Schema: cloud
English table: cloud.users
Italian original table: cloud._users
Description: Central identity table for all individuals accessing the platform.

Overview

  • Columns: 19
  • Primary key: usr_user_id
  • Outgoing foreign keys: 0
  • Incoming foreign keys: 0
  • Indexes: 0

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
usr_user_idus_iduuidNOpublic.uuid_generate_v4()Unique UUID for the user.
usr_emailus_emailcharacter varyingNOPrimary login identifier and contact email.
usr_password_hashus_passwordcharacter varyingNOEncrypted password string (Bcrypt/Argon2).
usr_user_type_idus_tenant_idsmallintNOClassification of user (e.g., 1=SuperAdmin, 2=TenantAdmin, 3=Employee).
usr_avatar_urlus_user_typecharacter varyingYESURL or path to the user's profile picture.
usr_last_nameus_avatarcharacter varyingNOThe legal last name (surname) of the user.
usr_first_nameus_last_namecharacter varyingNOThe legal first name of the user.
usr_language_idus_first_namesmallintNOReference to the preferred language (cloud.languages).
usr_ui_theme_configus_language_idcharacter varyingYESJSON string or code representing UI preferences (Dark/Light mode, colors).
usr_employee_codeus_theme_settingscharacter varyingYESOptional company-specific payroll or identification code.
usr_addressus_personal_codecharacter varyingYESPhysical or residential address of the user.
usr_phone_numberus_addresscharacter varyingYESContact phone number, preferably in E.164 format.
usr_status_codeus_phonesmallintNOCurrent account status (1=Active, 0=Inactive, 2=Pending).
usr_deactivated_atus_statustimestamp without time zoneYESTimestamp recorded when the user account was disabled.
usr_created_atus_deactivation_timestamptimestamp without time zoneYESCURRENT_TIMESTAMPTimestamp of user registration/creation.
usr_updated_atus_created_attimestamp without time zoneYESCURRENT_TIMESTAMPTimestamp of the last update to the user profile or security settings.
usr_password_expires_atus_updated_attimestamp without time zoneYESOptional expiration date for the current password (security policy).
user_idus_password_expireintegerNOPrimary key of the user record.
usr_tenant_uuid``integerNOUUID reference to the user's home tenant (cloud.tenants.ten_uuid).

Relationships

Outgoing foreign keys

No outgoing foreign keys found.

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_usersusr_user_id
  • Unique: c_uk_usr_emailusr_email
  • Unique: c_uk_usr_employee_codeusr_employee_code

Indexes

No indexes detected.