Database Schema Designer
Design optimized database schemas from business requirements
Content
Design a database schema for the following application: Application: {{app_description}} Database type: {{db_type}} Key entities: {{entities}} Expected scale: {{scale}} Provide: 1. Entity-Relationship diagram (text representation) 2. Complete table/collection definitions with: - Column names, types, constraints - Primary and foreign keys - Indexes for common query patterns 3. Sample queries for the 5 most common operations 4. Migration script (CREATE TABLE statements or equivalent) 5. Performance considerations and optimization notes 6. Suggested partitioning strategy if applicable Follow {{db_type}} best practices and naming conventions.
Related Prompts
Full-Stack Feature Implementation Plan
Break down a feature into a complete implementation plan with code structure
Technical Spec to User Story Converter
Converts raw technical specifications or requirements into well-structured Agile user stories with acceptance criteria, edge cases, and story point estimates.
Chain-of-Thought Debugger
Step-by-step code debugging prompt that asks AI to think through the problem before providing solutions
Code Review Security Auditor
Perform a security-focused code review identifying vulnerabilities