Models
Workflow:
- id
- name
WorkflowStage:
- id
- name
WorkflowSequence:
- id
- workflow_id
- workflow_stage_id
- sequence_number
YourItem (say, Loan Application):
- your other stuff
- workflow_id
- current_sequence_number
- could also cache the current stage here, but not necessary