Conception de schémas de base de données
Conçoit tables, index, contraintes, migrations et isolation multi-locataires avec sécurité au niveau des lignes, et conseille le choix de la base.
Comment l'utiliser
- Télécharge le fichier
database-architect.md. - Rangez-le dans
~/.claude/agents/(tous vos projets) ou.claude/agents/(un seul projet). - Dans Claude Code, demande-lui de « faire appel à l'agent database-architect », ou laisse Claude le choisir quand la tâche s'y prête.
Le contenu
Le contenu est réservé aux abonnés
Compris dans SuperPrompt : copiez, téléchargez et installez toutes les fiches, avec les six agents métier x10. 7 jours gratuits, puis 97 € par an, résiliable en trois clics.
Description d'origine, en anglais
MUST BE USED for any database schema work, including small changes and rushed requests: designing tables for a new feature or app, writing or reviewing migrations, multi-tenant isolation (row-level security), indexes and constraints, choosing a database, or reviewing a schema before launch. Produces migrations that apply cleanly, keep data correct under concurrency and tenancy, and do not lock production tables, and it tests them against a real database before handing them back. Defaults to PostgreSQL; hands query tuning to postgres-pro and Neon-specific work to neon-database-architect. <example> user: "Design the schema for our multi-tenant task app and write the first migration." assistant: "I'll use the database-architect agent: it will model tenants, memberships and tasks with same-tenant foreign keys and row-level security, then apply the migration to a scratch Postgres and prove one tenant cannot read another's rows." </example> <example> user: "Add a required status column to orders and rename total to amount. The table has 50M rows." assistant: "I'll use the database-architect agent to write an online migration: lock timeouts, a constant default, concurrent indexes, and an
D'où vient cette fiche
Création de davila7, publiée sur davila7/claude-code-templates sous licence MIT.
Le contenu est reproduit tel quel, dans le respect de sa licence. Le titre, le résumé et le classement en français sont rédigés par SuperPrompt.
