Database Schema Design

General Productivitybolt-ai-promptsapp_domaintable_1table_1_description

Explicit table definitions, relationships, and seed data instructions let Bolt generate a complete, normalized schema with proper indexes from the start.

Prompt
Create the database schema for a {{app_domain}} application.\n\nTables:\n1. {{table_1}}{{table_1_description}}\n   Fields: id (UUID, primary key), {{table_1_fields}}, created_at, updated_at\n\n2. {{table_2}}{{table_2_description}}\n   Fields: id (UUID, primary key), {{table_2_fields}}, {{table_1}}_id (foreign key), created_at, updated_at\n\n3. {{table_3}}{{table_3_description}}\n   Fields: id (UUID, primary key), {{table_3_fields}}, created_at, updated_at\n\nRelationships:\n- {{table_1}} has many {{table_2}}\n- {{table_2}} belongs to {{table_1}}\n- {{table_2}} has many {{table_3}} (through join table)\n\nAdd indexes on foreign keys and any field used for filtering. Include seed data with 5 realistic sample rows per table.

Variables to customize

{{app_domain}}{{table_1}}{{table_1_description}}{{table_1_fields}}{{table_2}}{{table_2_description}}{{table_2_fields}}{{table_3}}{{table_3_description}}{{table_3_fields}}

Why this prompt works

Explicit table definitions, relationships, and seed data instructions let Bolt generate a complete, normalized schema with proper indexes from the start.

What you get when you save this prompt

Your workspace unlocks powerful tools to iterate and improve.

AI OPTIMIZE

AI Optimization

One-click improvement with structure analysis and pattern suggestions.

VERSION DIFF

Version History

Track every edit. Compare versions side-by-side with word-level diffs.

ORGANIZE
Development
Code Review
Testing
Marketing

Folders & Tags

Organize your library with nested folders, tags, and drag-and-drop.

MCP
$ npm i -g @promptingbox/mcp
Claude · Cursor · ChatGPT

Use Everywhere

Access prompts from Claude, Cursor, ChatGPT & more via MCP integration.

Your prompts, organized

Save, version, and access your best prompts across ChatGPT, Claude, Cursor, and more.