prisma-cli-validate

โดย prisma

ตรวจสอบความถูกต้องของ Prisma อ้างอิงเมื่อใช้ฟีเจอร์ Prisma นี้

npx skills add https://github.com/prisma/cursor-plugin --skill prisma-cli-validate

prisma validate

Validates your Prisma schema file.

Command

prisma validate [options]

What It Does

  • Parses the schema.prisma file
  • Checks for syntax errors
  • Validates model definitions, relations, and types
  • Reports any errors or warnings without generating code

Options

OptionDescription
--schemaPath to schema file
--configCustom path to your Prisma config file

Examples

Validate default schema

prisma validate

Validate specific schema

prisma validate --schema=./custom/schema.prisma

Use in CI

Run validate in your CI pipeline to catch schema errors early:

- name: Validate Schema
  run: npx prisma validate

Common Errors

  • Missing @relation fields
  • Invalid types
  • Duplicate model names
  • Syntax errors (missing braces, etc.)

Skills เพิ่มเติมจาก prisma

prisma-cli-migrate-reset
prisma
prisma migrate reset
official
prisma-next-extension-upgrade
prisma
Upgrade Prisma Next in your extension. Bumps every `@prisma-next/*` dependency to the requested target (or npm `latest`), runs the per-transition upgrade…
official
adr-review
prisma
ตรวจสอบ ADR หนึ่งรายการขึ้นไปด้วยมุมมองใหม่ (ในฐานะสมาชิกทีมที่ไม่มีบริบทมาก่อน) ระบุปัญหาเชิงเนื้อหาและโครงสร้าง จากนั้นเขียนใหม่ ใช้เมื่อ...
official
prisma-next-upgrade
prisma
Upgrade Prisma Next in your app. Bumps every `@prisma-next/*` dependency from the version pinned in the lockfile to the requested target (or npm `latest`),…
official
prisma-cli
prisma
คู่มืออ้างอิงที่สมบูรณ์สำหรับคำสั่ง ตัวเลือก และขั้นตอนการทำงานของ Prisma CLI ครอบคลุมการตั้งค่า การย้ายฐานข้อมูล และการดำเนินการกับฐานข้อมูล ประกอบด้วยคำสั่งมากกว่า 20 คำสั่งที่จัดลำดับตามความสำคัญ: การตั้งค่า (init), การสร้าง (generate), การพัฒนา (dev), การดำเนินการกับฐานข้อมูล (db pull/push/seed/execute) และการย้ายฐานข้อมูล (migrate dev/deploy/reset/status/diff/resolve) รวมถึงการเปลี่ยนแปลงใน Prisma 7.x: ไฟล์กำหนดค่า prisma.config.ts ใหม่, แฟล็กที่ถูกยกเลิก (--skip-generate, --skip-seed, --schema, --url) และรายละเอียด...
official
prisma-client-api
prisma
เอกสารอ้างอิง API ของ Prisma Client อย่างสมบูรณ์สำหรับการค้นหาโมเดล การดำเนินการ CRUD การกรอง ความสัมพันธ์ และธุรกรรม ครอบคลุมวิธีการค้นหาโมเดล 17 วิธี รวมถึง findUnique, findMany, create, update, delete, upsert และการดำเนินการแบบกลุ่มพร้อมตัวแปรผลลัพธ์ มีตัวเลือกการค้นหาสำหรับปรับแต่งผลลัพธ์: select, include, omit, orderBy, take, skip, cursor และ distinct รวมถึงตัวดำเนินการกรองแบบสเกลาร์และตรรกะ (equals, in, contains, startsWith, lt, gt) พร้อมตัวกรองความสัมพันธ์ (some,...)
official
prisma-compute
prisma
Prisma Compute deployment and hosting guide. Use whenever the user mentions Prisma Compute, `prisma.compute.ts`, `defineComputeConfig`, deploying or hosting a Prisma app, `@prisma/cli app deploy`, `compute:deploy`, `create-prisma --deploy`, `PRISMA_SERVICE_TOKEN`, `auth workspace`, Compute apps/deployments/build logs/domains, `@prisma/cli agent install`, localhost vs `0.0.0.0`, deploy port binding, or framework deploy readiness for Hono, Elysia, Next.js, TanStack Start, Astro, Nuxt, Svelte,...
developmentdevopsofficial
prisma-database-setup
prisma
คู่มือการกำหนดค่าแบบทีละขั้นตอนสำหรับ Prisma ORM บน PostgreSQL, MySQL, SQLite, MongoDB, SQL Server, CockroachDB และ Prisma Postgres ครอบคลุมการกำหนดค่า datasource การเลือก driver adapter และการสร้าง Prisma Client สำหรับผู้ให้บริการฐานข้อมูลเจ็ดราย Prisma v7 ต้องใช้ driver adapter ที่ชัดเจน (เช่น @prisma/adapter-pg สำหรับ PostgreSQL) และไฟล์ prisma.config.ts สำหรับ URL การเชื่อมต่อ รวมถึงบล็อก schema อ้างอิงด่วนและการตรวจสอบข้อกำหนดเบื้องต้น (Node.js 20.19.0+, TypeScript 5.4.0+)...
official