Schema: hr
English table: hr.system_diagrams
Italian original table: hr.sysdiagrams
Description: Storage for database schema diagrams and visual representations.
Overview
- Columns: 9
- Primary key: id
- Outgoing foreign keys: 1
- Incoming foreign keys: 0
- Indexes: 1
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | id | integer | NO | | Surrogate primary key. |
sdg_name | name | integer | NO | | Display name for sdg. |
sdg_principal_id | principal_id | integer | NO | | Identifier of the related sdg principal record. |
sdg_diagram_id | diagram_id | integer | NO | | Identifier of the related sdg diagram record. |
sdg_version | version | integer | NO | | Numeric value. |
sdg_definition | definition | bytea | NO | | Binary data containing the diagram layout and metadata. |
tenant_id | tenant_id | integer | YES | | Tenant identifier for data isolation. |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | JSON payload containing additional attributes. |
_deleted | _deleted | boolean | YES | false | Flag indicating whether the record is soft-deleted. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|
fk_tenant_id | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_system_diagrams → id
- Unique:
uk_sdg_name_tenant → sdg_name, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_sdg_tenant | NO | btree | tenant_id |
Navigation