Database Operations
ZeyOS database access operates on two distinct layers:
- Object-Level Operations: Work with ZeyOS business entities (Contacts, Accounts, etc.). They handle ExtData, tags, and business logic automatically.
- SQL-Level Operations: Specific SQL interface for complex queries, joins, and aggregations.
- Extending the Data Model: Augment entities with custom fields using ExtData, without changing the database schema.
- Tags: Label records with free-form tags for classification, filtering, and workflow routing.
Architecture Guidelines
- Use Object-Level Operations for standard CRUD (Create, Read, Update, Delete) on single entities.
- Use SQL-Level Operations for reporting, bulk updates, or when you need specific fields/joins.
Connection Management
By default, operations run against the ZeyOS application database. Use Connections to connect to external databases.