Commandtypescript
/schema Command
View and modify the Prisma database schema
Help me work with the Prisma database schema for the Penumbra project.
Schema location: prisma/schema.prisma
Current models:
- User: Clerk-integrated user model with books relationship
- Book: Book model with metadata (ISBN, title, authors, subjects, etc.)
Common schema tasks:
- Add new fields to existing models
- Create new models
- Modify relationships
- Add indexes for performance
- Update field types or constraints
After schema changes:
- Generate migration:
npx prisma migrate dev --name <description> - Generate Prisma Client:
npx prisma generate - Update TypeScript types if needed
Ask me what schema changes are needed, or show me the current schema and wait for instructions.