Data Model Documentation

Document application data models and relationships

6/11/2026
Prompt
Create data model documentation for:

**Application:** {{APP_NAME}}
**Data Storage:** {{STORAGE_TYPE}} (SQL, NoSQL, etc.)

**Models:**
{{MODELS}}

Generate comprehensive data model documentation:

# Data Model Documentation

## Overview
- Domain description
- Key entities
- Design principles

## Entity Relationship Overview
Description of how entities relate (textual ERD)

## Models

### Model: {{MODEL_NAME}}

**Purpose:** What this model represents

**Table/Collection:** {{table_name}}

#### Fields

| Field | Type | Constraints | Description |
|-------|------|-------------|-------------|
| id | UUID | PK, NOT NULL | Unique identifier |
| field_name | string(255) | NOT NULL | Description |
| created_at | timestamp | NOT NULL, DEFAULT now() | Creation time |

#### Relationships
| Relationship | Type | Related Model | Description |
|--------------|------|---------------|-------------|
| user | belongs_to | User | The owner |
| items | has_many | Item | Associated items |

#### Indexes
| Name | Columns | Type | Purpose |
|------|---------|------|---------|

#### Validations
- Validation rules
- Business constraints

#### Lifecycle Hooks
- Before/after callbacks
- Side effects

#### Example
```json
{
  "id": "123",
  "field": "value"
}
```

---

[Repeat for all models]

## Enumerations

### EnumName
| Value | Description |
|-------|-------------|

## Common Patterns
- Soft deletes
- Timestamps
- Auditing

## Data Integrity
- Foreign key constraints
- Cascade behaviors

## Migration History
Key schema changes

Or press ⌘C to copy

Variables (6)

Replace these placeholders with your own content before using the prompt.

[{APP_NAME][{STORAGE_TYPE][{MODELS][{MODEL_NAME]{{table_name}{ "id": "123", "field": "value" }

Ready to use?

Copy and paste into your favorite AI tool

Test this prompt live

Try it in our AI Playground with Claude

Open Playground

Explore more Coding prompts

Browse Coding

Command Palette

Search for a command to run...