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.- 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 columns with
defineRelationship. - Additional columns — custom, computed, and metric columns extend a model without touching the source.

