Skip to main content

Database Schema Mapping

This document provides a comprehensive mapping between the Italian and English versions of the HRStudio database.

1. Core & Multi-Tenant (Schema: cloud)

These tables manage the fundamental multi-tenant infrastructure and authentication.

Tenants / Clienti (_tenanttenants)

Master table for multi-tenant isolation. Each row represents a client organization instance.

Field (ITA)Field (ENG)Comment
tenant_idten_internal_idInteger ID used system-wide for row-level security (RLS) and foreign keys.
ten_idten_uuidGlobal unique identifier (UUID) for the tenant.
ten_codeten_codeUnique mnemonic code for the tenant (e.g., "ACME-INC").
ten_nameten_nameFull descriptive name of the tenant organization.
ten_statusten_status_codeStatus flag: 1 for Active, 0 for Disabled/Suspended.
ten_licenseten_license_keyIdentifier for the subscription plan or license type.
ten_master_emailten_admin_emailMain contact email for the tenant administrator.

Languages / Lingue (_languagelanguages)

System-wide lookup table for supported languages in the application interface.

Field (ITA)Field (ENG)Comment
lng_idlng_language_idUnique identifier for the language.
lng_descriptionlng_nameFull display name of the language.
lng_flag_imglng_icon_urlURL or path to the flag icon.

Translations / Traduzioni (_translatedictionary_translations)

System dictionary for UI multi-language support.

Field (ITA)Field (ENG)Comment
trans_idtr_translation_idUnique identifier for the translation entry.
trans_contexttr_context_codeNamespace or module context (e.g., "ERRORS", "MENU").
trans_base_stringtr_source_keyThe base string or key to be translated.
trans_mstr_value_masculine_singularTranslated value: Masculine Singular.

2. Human Resources Management (Schema: hr)

Tables related to employees, contracts, and certifications.

Employment Relationships / Rapporti (rapporti_detemployment_relationship_details)

Detailed information about the employment relationship.

Field (ITA)Field (ENG)Comment
ididSurrogate primary key.
rapd_iderd_codeUnique business identifier for the detail record.
tenant_idtenant_idTenant identifier for data isolation.

Certifications / Certificazioni (corsi_certificazionitraining_certifications)

Master data for training and professional certifications.

Field (ITA)Field (ENG)Comment
tc_idtc_idBusiness identifier of the certification.
tc_descriptiontc_descriptionCertification description or name.
tc_abbrtc_abbrCertification abbreviation.

Performance Evaluations / Valutazioni (scheda_valutazioneperformance_evaluation_forms)

Forms and templates used for employee performance reviews.

Field (ITA)Field (ENG)Comment
ididSurrogate primary key.
scva_idscva_idIdentifier of the evaluation form record.

3. Operational Tables & Logs (Schema: hr / cloud)

Tables for tracking events, history, and system configurations.

Tenant History / Storia Tenant (_tenant_historytenant_history_log)

Audit log of all lifecycle events and state changes for tenants.

Field (ITA)Field (ENG)Comment
th_tenant_idthl_tenant_uuidUUID of the tenant this event refers to.
th_timestampthl_event_timestampThe exact date and time when the event was recorded.
th_event_typethl_event_typeCategory of the event (e.g., "STATUS_CHANGE").
th_descriptionthl_event_descriptionDetailed notes associated with the event.

Integration Tokens / Token Integrazioni (integration_tokensexternal_integration_tokens)

Storage for API tokens used by external applications.

Field (ITA)Field (ENG)Comment
client_appeit_client_application_nameName of the external system (e.g., "MobileApp").
tokeneit_token_valueThe actual secure token string.
is_revokedeit_is_revokedBoolean flag to manually invalidate the token.