Skip to main content

Relationships

The diagram below illustrates how these models are interconnected. A Customer can have multiple Cases, each Case can have multiple Checks, and Documents can be associated with any of the other three models. Documents can be associated with a Case, Check, or Customer, but only one at a time. Each association serves different purposes:
  • Linking to a Case: General document storage for the entire case workflow. Recommended starting point.
  • Linking to a Check: More precise. Isolated work for the AI agent and faster processing. Useful is check types such as Proof of Address.
  • Linking to a Customer: Documents persist across cases. Useful when running multiple cases against the same customer - documents persist across cases.
When uploading a document, you must provide exactly one of case_id, check_id, or customer_id to link it appropriately.