tpmjs/.claude/commands/db-seed.md
Ajax Davis fa962d3527 feat(claude): add database slash commands for common operations
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>
2025-11-28 02:24:28 +10:00

520 B

description
Seed the database with initial data

Run the database seed script to initialize the database with default data:

  1. Run pnpm --filter=@tpmjs/db db:seed to execute the seed script
  2. The seed script will create initial SyncCheckpoint records for the changes feed and keyword sync
  3. Report the results to the user

This should be run once after creating the database to set up the initial sync checkpoints. It's safe to run multiple times - it will only create records if they don't already exist.