prisma
Prisma
Commands
| Task | Command |
|---|---|
| Create and apply a migration | pnpm exec prisma migrate dev --name <migration-name> |
| Apply pending migrations (CI/prod) | pnpm exec prisma migrate deploy |
| Check migration status | pnpm exec prisma migrate status |
| Regenerate Prisma client | pnpm exec prisma generate |
| Seed the database | pnpm exec prisma db seed |
| Reset the database (dev only) | pnpm exec prisma migrate reset |
| Open Prisma Studio | pnpm exec prisma studio |
| Format the schema file | pnpm exec prisma format |
Default action: When asked to "apply a schema change", the correct sequence is: update prisma/schema.prisma → run prisma format → run migrate dev → run generate.
⚠️
migrate resetdrops and recreates the entire database. Only use it in local development against a database you are comfortable losing. Never run it against a production or shared staging environment.
More from dnd-mapp/ai-standards
pull-request
Create a GitHub pull request from the current branch following this project's conventions. Use when the user asks to create a pull request, open a PR, or submit changes for review.
12prettier
>
11commit
Analyze all git changes (staged and unstaged), group them by intent, and commit each group using Conventional Commits format with scopes. Use when committing changes, making commits, or when the user asks to "commit" or "create commits" from current changes.
11eslint
>
11angular
>
10nestjs
>
10