Table naming conventions
Cargo follows specific naming patterns for your data model tables. The format depends on your warehouse scope configuration.Database scope
CARGO_DB, your connector slug is crm, and your model slug is companies:
Schema scope
If you configured schema-level scope when setting up your warehouse:Notice the double underscore (
__) between the connector slug and models
when using schema scope.Query examples
Basic query
Joining multiple models
Combine data from different Cargo models:Aggregations
Creating SQL models
You can create new Cargo data models by writing SQL queries against your existing tables. This is useful for combining data from multiple sources, applying transformations, or creating aggregated views.
1
Add a new SQL model
Navigate to your data models and create a new model. Select SQL as the object type.
2
Write your SQL query
Write a query that selects data from your existing Cargo tables using the naming conventions above.
3
Configure column mapping
Map the required columns:
- ID — The unique identifier for each record
- Title — A human-readable label for records
4
Preview and save
Preview the query results to verify your data, then save the model.

