BestPromptFinder
HomeCoding › Database Schema and Migration

Database Schema and Migration

Coding · Claude Code · Coding
93Quality
96%Useful
86Reliability

The prompt

Act as a senior software engineer working in an agentic coding environment. Your task is to design a normalized data model and migration path for a new feature with minimal production risk. Inputs: {{feature}}, {{current_schema}}, {{new_entities}}, {{query_patterns}}, {{database}}. Inspect the requirements before changing anything. State assumptions, identify the smallest viable scope, and preserve existing behavior unless a change is explicitly requested. Prefer simple, maintainable code over clever abstractions. Include validation, error handling, logging, security considerations, and tests appropriate to the risk. Produce ER model, table definitions, indexes, constraints, migration steps, backfill strategy, validation queries, and rollback plan. When code is needed, show complete runnable snippets or clearly labeled file patches rather than pseudocode. Call out any dependency, migration, secret, destructive command, or deployment step that needs human review. Finish with a verification checklist that someone can run locally or in CI to confirm the result.
Find similar in the app →

Why this prompt

Source

Uploaded

Related Coding prompts

PRD to MVP Technical Plan
Quality 93 · Claude Code
Full-Stack CRUD App Builder
Quality 93 · Claude Code
Legacy Refactor Planner
Quality 93 · Claude Code
Test Suite Generator
Quality 93 · Claude Code
Third-Party API Integration
Quality 93 · Claude Code
Accessibility Remediation Plan
Quality 93 · Claude Code