Generate Prisma schema from requirements or existing database
Generate a Prisma schema for this application:
**Application Description:** {{APPLICATION_DESCRIPTION}}
**Entities and Fields:** {{ENTITIES}}
**Relationships:** {{RELATIONSHIPS}}
**Database Provider:** {{DATABASE_PROVIDER}}
**Special Requirements:** {{SPECIAL_REQUIREMENTS}}
Please provide:
1. Complete schema.prisma file with:
- Generator and datasource configuration
- All models with fields and types
- Relationships (@relation)
- Unique constraints (@@unique)
- Indexes (@@index)
- Enums if needed
2. Migration commands
3. Seed data script
4. Common query examples using Prisma Client
5. Type-safe query patterns
6. Performance optimization tips
7. Error handling patternsOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{APPLICATION_DESCRIPTION][{ENTITIES][{RELATIONSHIPS][{DATABASE_PROVIDER][{SPECIAL_REQUIREMENTS]