What problem does it solve?
This skill provides a structured, self-contained DuckDB-based data model for a CRM workspace, enabling robust schema initialization, field typing, auto-generated PIVOT views, and comprehensive SQL CRUD operations for objects, fields, entries, and related documents. It streamlines CRM data modeling from design to production-ready SQL workflows, reducing manual setup and schema drift.
Core Features & Use Cases
- DuckDB Schema: Create and maintain core CRM tables (objects, fields, entries, entry_fields, statuses, documents) with sensible defaults and constraints.
- Auto-Generated Pivot Views: Build deterministic PIVOT views to simplify multi-field analytics without data duplication.
- SQL CRUD Operations: Provide SQL-based create, read, update, delete workflows for objects, fields, entries, entry_fields, and related metadata.
- Guided Best Practices: Include guidance for ID generation, relationship fields (created via SQL), and safe upsert patterns.
- Use Case: Rapidly bootstrap a CRM workspace with a consistent schema and ready-to-query analytics playground.
Quick Start
Run the DuckDB SQL examples to initialize the workspace and create core CRM tables and relations.