Prisma Orm DB

Type-safe database ORM management, migrations, and CRUD operations using Prisma in Node.js or Python.

Lord1Egypt Updated 2 repo stars

File contents

Prisma Orm Db

Overview

Prisma is a next-generation ORM for Node.js and TypeScript, now supporting Python bindings.

When to Use This Skill

Use to write type-safe queries, define structural database schemas, and manage schema migrations.

Quick Start (with runnable code examples)

# Prisma Schema (schema.prisma example)
# datasource db {
#   provider = "postgresql"
#   url      = env("DATABASE_URL")
# }
# model User {
#   id    Int    @id @default(autoincrement())
#   email String @unique
#   name  String?
# }

Advanced Usage

Configure database relations, execute raw SQL commands, write seeding scripts, and deploy migrations.

Key References

Dependencies

  • prisma>=5.0.0

Lord1Egypt/ai-skillforge/tree/main/js/skills/gemini/prisma-orm-db commit f8fdd30d5e

Frequently asked questions

npx skillmds@latest add lord1egypt/prisma-orm-db-2