data-modeling

Design relational and NoSQL data models with Prisma schema examples.

8|2|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/bradtaylorsf/alphaagent-team --skill data-modeling-bradtaylorsf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-modeling
Source: https://github.com/bradtaylorsf/alphaagent-team/tree/main/plugins/aai-dev-database/skills/data-modeling
Command: npx skills add https://github.com/bradtaylorsf/alphaagent-team --skill data-modeling-bradtaylorsf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides guidance and patterns for designing effective and scalable data models, helping developers avoid common pitfalls and build robust database schemas.

Core Features & Use Cases

  • Entity-Relationship Design: Learn how to identify entities, define relationships (1:1, 1:N, M:N), and understand cardinality.
  • Common Domain Models: Examples for User/Auth, E-Commerce, and Content/CMS systems.
  • Design Patterns: Implement patterns like Polymorphic Associations, Event Sourcing, Audit Trails, and Temporal Data.
  • Anti-Patterns: Understand and avoid common mistakes like God Tables, over-normalization, and missing constraints.
  • Use Case: When starting a new project, use this Skill to quickly establish a well-structured database schema for users and their associated content.

Quick Start

Use the data-modeling skill to generate a Prisma schema for a blog post with comments and authors.

Frequently Asked Questions about data-modeling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design a database schema for a new application?

Database schema design involves identifying entities, defining relationships, and implementing constraints. This skill provides patterns for relational and NoSQL data models, including normalization and common domain models for users, e-commerce, and CMS systems.

What are common data modeling anti-patterns to avoid?

Common data modeling anti-patterns include God Tables, over-normalization, and missing constraints. Understanding these mistakes helps developers build robust database schemas and avoid structural pitfalls that degrade application performance and data integrity.

How do I implement event sourcing and audit trails in Prisma?

Implementing event sourcing and audit trails in Prisma uses advanced data modeling patterns to track temporal data and state changes. This skill provides Prisma schema examples to guide practical implementation of these design patterns.

Does this data modeling skill support both relational and NoSQL databases?

Yes, this data modeling skill supports both relational and NoSQL databases. It provides best practices for entity-relationship design, normalization, and constraint implementation tailored to various application types and database paradigms.

What is the best way to model polymorphic associations in a database?

The best way to model polymorphic associations is by using established design patterns that allow a single entity to relate to multiple target entities. This skill outlines advanced patterns like this to help structure scalable and flexible database schemas.