Document application data models and relationships
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 changesOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{APP_NAME][{STORAGE_TYPE][{MODELS][{MODEL_NAME]{{table_name}{
"id": "123",
"field": "value"
}