``` Time | Product -----> Fact Table <----- Customer | Geography ```
Scanned 9/10/2026
Install to Claude Code
npx -y skills add snoodleboot-io/prompticorn --skill minimal --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Minimal?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/snoodleboot-io-minimal-68880efa)More formats (shields.io, HTML) on the badges page.
# Dimensional Modeling (Minimal)
## Core Concepts
### Star Schema
```
Time
|
Product -----> Fact Table <----- Customer
|
Geography
```
### Fact Table
Contains measurements/events:
- order_id, customer_id, product_id, date_id
- quantity, revenue, discount
- Foreign keys to dimensions
### Dimension Tables
Describe context:
- **Customer**: id, name, region, segment
- **Product**: id, name, category, brand
- **Date**: id, date, month, quarter, year
## Example
**Fact: Sales**
```sql
CREATE TABLE fact_sales (
sale_id INT,
customer_id INT,
product_id INT,
date_id INT,
quantity INT,
revenue DECIMAL
);
```
**Dimension: Customer**
```sql
CREATE TABLE dim_customer (
customer_id INT PRIMARY KEY,
name VARCHAR,
segment VARCHAR
);
```
## Star vs Snowflake
**Star:** Denormalized (faster queries, simpler)
```
Fact -----> Dim_Customer
|-> Dim_Product
```
**Snowflake:** Normalized (less redundancy)
```
Fact -----> Dim_Customer -----> Dim_Segment
```
## Benefits
- Fast queries (few joins)
- Intuitive (clear dimensions)
- Scalable (handles growth)
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
MySQL development best practices for schema design, query optimization, and database administration
基于Supabase最佳实践的PostgreSQL数据库模式,用于查询优化、架构设计、索引和安全。
Spring Boot中的JPA/Hibernate实体设计、关系、查询优化、事务、审计、索引、分页和连接池模式。
ClickHouse数据库模式、查询优化、分析和数据工程最佳实践,适用于高性能分析工作负载。
Unify 6+ memory systems into AgentDB with HNSW indexing for 150x-12,500x search improvements. Implements ADR-006 (Unified Memory Service) and ADR-009 (Hybrid Memory Backend).