OrderStage
The OrderStage entity, mapped to the order_stage table.
| Table | order_stage |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 6 |
| Relationships | 2 |
| Source | backend/src/main/java/com/motorph/payroll/model/OrderStage.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
stageId | Integer | stage_id | — | primary key, generated |
stageIndex | Integer | stage_index | — | — |
stageName | String | stage_name | — | — |
status | String | status | — | — |
notes | String | notes | Yes | — |
completedAt | LocalDateTime | completed_at | Yes | — |
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 | InventoryOrder | order_id | Yes |
assignee | @ManyToOne | User | assignee_id | — |
Referenced by
| Entity | Field | Kind |
|---|---|---|
| InventoryOrder | stages | @OneToMany |
Neighbourhood
Repository
No Spring Data repository is declared over this entity. It is reached through another entity's association, through the EntityManager directly, or it is written only by a migration.
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/.