Schema: hr
English table: hr.vehicle_fines
Italian original table: hr.ana_multe_automezzo
Description: Vehicle fines records — traffic violations and fines associated with company vehicles.
Overview
- Columns: 12
- Primary key: id
- Outgoing foreign keys: 1
- Incoming foreign keys: 0
- Indexes: 3
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | id | integer | NO | | Surrogate primary key. |
vf_id | anamu_id | integer | NO | | Logical identifier of the vehicle fine (unique per tenant). |
vf_report_id | anamu_rap_id | integer | NO | | Identifier of the related report (rap). |
vf_date | anamu_date | date | NO | | Date of the fine. |
vf_report_number | anamu_report_number | character varying(100) | NO | | Official fine report number. |
vf_vehicle_plate | anamu_plate_vehicle | character varying(10) | NO | | Vehicle license plate. |
vf_amount | anamu_amount | numeric(7,2) | NO | | Fine amount. |
vf_description | anamu_description | text | NO | | Fine description/details. |
vf_cu_number | anamu_cu_number | character varying(100) | NO | | Reference number for CU (Certificazione Unica) or related document. |
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:
vehicle_fines_pkey → id
- Unique:
uk_vf_id_tenant → vf_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_vehicle_fines_vf_id_tenant | NO | btree | tenant_id, vf_id) WHERE (_deleted = false |
idx_vehicle_fines_vf_report_id_tenant | NO | btree | tenant_id, vf_report_id) WHERE (_deleted = false |
idx_vehicle_fines_tenant | NO | btree | tenant_id |
Navigation