SQL Schema Designer
By n o a h · Published · Updated
Design relational database schemas and generate the CREATE TABLE statements.
Tags: sql, database, architecture
Prompt template
## Introduction Architect a database schema based on your application's requirements. ## App Requirements - Describe the app and its main entities: [textarea: E.g., A blog with Users, Posts, and Comments] - Database System: [dropdown: PostgreSQL, MySQL, SQLite, SQL Server] ## Schema Preferences - Use UUIDs for primary keys? [toggle: Yes, No] - Elements to include: [multi: Foreign Keys, Indexes, Timestamps (created_at), Constraints (UNIQUE/NOT NULL)] - Include sample INSERT statements for testing? [toggle: Yes, No] --- **Goal**: Provide a detailed schema explanation followed by the exact SQL code to create the tables.