defineModel.
Define a model
A model sourced from a connector’s dataset wires to the connector by handle and pulls rows with an extractor:models/contacts.ts
Model types
Models live side-by-side in the same warehouse and can be queried, joined, and used as triggers. What differs is who owns the schema and who writes the rows.| Type | Schema owner | Writable from a workflow | Typical use |
|---|---|---|---|
| Object | You (built-in or custom) | Yes | Sourced lists, internal pipelines, custom entities |
| Integration | The connected source | No — use the integration’s write actions | Mirror CRM, warehouse, webhook, or file data |
| Unified | Cargo | Read-only | One deduplicated view of accounts, contacts, and events |
- Object models — native, writable
Account/Contact/Deal/Leador custom schemas. - Unification — read-only merged views across all sources.
- Querying data — SQL over your models.
- Segments — named, filtered views defined with
defineSegment. - Activities — event models.
Capabilities
- Change-based triggers — plays react in real time to added / updated / removed rows.
- Segments — named, filtered views that batches, exports, and plays target.
- Relationships — join models on shared identifiers.
- Additional columns — custom, computed, and metric columns extend a model without touching the source.

