ShipmentTracking
The ShipmentTracking entity, mapped to the shipment_tracking table.
| Table | shipment_tracking |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 6 |
| Relationships | 2 |
| Source | backend/src/main/java/com/motorph/payroll/model/ShipmentTracking.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
trackingId | Integer | tracking_id | — | primary key, generated |
status | String | status | — | — |
carrier | String | carrier | Yes | — |
trackingNo | String | tracking_no | Yes | — |
notes | String | notes | Yes | — |
createdAt | LocalDateTime | created_at | — | — |
Plus tenant_id, inherited from TenantOwned. Hibernate stamps it on insert and adds where tenant_id = ? to every query, so it is never written or read by application code.
Relationships
| Field | Kind | Target | Join column | Required |
|---|---|---|---|---|
order | @ManyToOne | CustomerOrder | order_id | Yes |
updatedBy | @ManyToOne | User | updated_by | — |
Referenced by
| Entity | Field | Kind |
|---|---|---|
| CustomerOrder | trackingHistory | @OneToMany |
Neighbourhood
Repository
ShipmentTrackingRepository
Declared over ShipmentTracking with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/ShipmentTrackingRepository.java
Reached by
These controllers hold — directly or through a service they depend on — a repository over ShipmentTracking.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| PortalAdminController | /api/portal/admin | 3 | Inventory & Portal |
Generated page
This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.