AIO APEX
ClaudeDatabase design

Prisma-Schema-Designer

Teilen:

Why this prompt matters

Schema design mistakes are expensive to fix. This prompt produces migration-ready schemas with proper indexing from the start.

What we use it for

Database design

Prompt

Design a Prisma schema for the following business requirements. Include: proper data types, relations with cascading behavior, unique constraints, indexes for common queries, created/updated timestamps, and enum types where appropriate. Add comments explaining non-obvious design decisions.

Result

```prisma /// Products support multiple pricing tiers and locale-specific content model Product { id String @id @default(cuid()) slug String @unique status Status @default(DRAFT) priceInCents Int /// Store cents to avoid floating-point issues currency String @default("USD") createdAt DateTime @default(now()) updatedAt DateTime @updatedAt

translations ProductTranslation[] variants ProductVariant[]

@@index([status, createdAt(sort: Desc)]) } ```

Prisma-Schema-Designer

Entwirft optimierte Prisma-Schemas für Ihre Datenmodelle.

Dieser KI-Prompt ist darauf ausgelegt, Ihnen die besten Ergebnisse zu liefern. Folgen Sie den Anweisungen und passen Sie die Parameter an Ihre spezifischen Bedürfnisse an.

Für die besten Ergebnisse geben Sie detaillierten Kontext an und spezifizieren Sie das gewünschte Ausgabeformat. Experimentieren Sie mit verschiedenen Variationen, um die beste für Ihren Anwendungsfall zu finden.

Teilen: