Database Schema Designer
Design a normalized, scalable database schema from a project description β tables, relationships, indexes, and queries.
Spin up a complete database schema before lunch.
Provide end-to-end SQL scripts to build and load a small data warehouse. Requirements: - Create all objects in a "dw" schema - 5 dimension tables and 2 fact tables - Include a Date dimension - Provide INSERT statements with sample data (one INSERT per row) - Include constraints - Provide all SQL statements together in one script
This prompt applies dimensional modeling principles (star schema, slowly changing dimensions) systematically, ensuring the AI produces a warehouse design optimized for analytical queries rather than transactional operations. It enforces naming conventions and indexing strategies from the start.
Use when building a new data warehouse or restructuring an existing oneβwhether migrating from spreadsheets to a proper analytics stack, setting up dbt models, or designing a schema for Snowflake, BigQuery, or Redshift. Essential before writing any ETL pipelines.
You get a complete schema with fact and dimension tables, appropriate grain definitions, SQL CREATE statements with proper data types and constraints, recommended indexes, and an ETL loading strategy with incremental update patterns.
Design a normalized, scalable database schema from a project description β tables, relationships, indexes, and queries.
Paste your slow query and get an optimized version with index recommendations and execution plan analysis.
Stop tracking vanity metrics β get a focused dashboard with KPIs that actually drive decisions
Systematically find and fix messy data β missing values, duplicates, outliers, and format issues
Guide through building a cohort analysis to understand user retention, behavior, and lifetime value.