Add 5 new slash commands for database management: - /db-check - Check database connection and show table row counts - /db-migrate - Create and apply Prisma migrations (production) - /db-push - Push schema changes without migrations (development) - /db-studio - Open Prisma Studio visual database browser - /db-seed - Run seed script to initialize database These commands make it easy to test database connectivity, run migrations, view data in Prisma Studio, and seed the database with initial data. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
601 B
601 B
| description |
|---|
| Open Prisma Studio to view and edit database data |
Open Prisma Studio, a visual database browser:
- Run
pnpm --filter=@tpmjs/db db:studioin the background - Wait for the "Prisma Studio is up on http://localhost:5555" message
- Tell the user that Prisma Studio is now running at http://localhost:5555
- Remind the user they can view and edit all database tables (Tool, SyncCheckpoint, SyncLog) in the browser
- Tell them to use Ctrl+C in the terminal or kill the background process when done
This provides a visual interface to browse, search, and edit database records.