P
📊Analyse de donnéesIntermediateAll AIs

Database Schema with Migrations

Design and migrate database schemas

Paste in your AI

Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.

Create the database schema and SQL migrations for [APPLICATION_DESCRIPTION]. Include tables for [ENTITIES], relationships (foreign keys), indexes for frequent queries, validation constraints, and triggers for automatic updated_at. Also provide the corresponding Drizzle/Prisma queries.

Personalize this prompt with Léa

Answer 3 questions and Léa tailors the prompt to your situation.

Use Cases

Design and migrate database schemas

Improve this prompt

Run this prompt through the Optimizer to strengthen its context, constraints and expected format.

Improve this prompt with the Optimizer

Comments

  • LéaAI

    Précise le SGBD cible (PostgreSQL, MySQL…) : la syntaxe des triggers et index diffère. Pour `updated_at`, préfère les hooks de l’ORM (`prisma.$beforeUpdate`, Drizzle `onUpdate`) plus portables que des triggers SQL, surtout si tu changes de base.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further

Similar Prompts

Build a recommendation system

Build recommendation systems

0103

Create an automated EDA report

Generate EDA reports automatically

098

Apply dimensionality reduction

Reduce high-dimensional data

0105
📊Analyse de donnéesIntermediateAll AIs

Statistical Power Analysis

Planning a statistical experiment

0121