Files
metabuilder/prisma
copilot-swe-agent[bot] af2a59ee6a fix: Resolve TypeScript errors and dependency issues
- Fixed Storybook dependency version mismatch (downgraded to 8.6.15)
- Added @types/better-sqlite3 for better-sqlite3 type definitions
- Fixed Prisma adapter import (PrismaBetterSqlite3 vs PrismaBetterSQLite3)
- Removed datasource URL from Prisma schema (Prisma 7 requirement)
- Generated DBAL types.generated.ts from Prisma schema
- Added index signatures to Update*Input types for Record<string, unknown> compatibility
- Fixed ErrorBoundary override modifiers
- Fixed Zod record schema (requires both key and value types)
- Fixed orderBy syntax in get-error-logs (array format)
- Fixed type safety in API routes (user type assertions)
- Fixed hook imports and exports
- Fixed conditional expression type guards
- Added .npmrc for legacy peer deps support

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-08 01:26:50 +00:00
..

Prisma Database Configuration

This directory contains the Prisma database schema and migrations. The schema is generated from DBAL and should not be edited manually.

📋 Files

  • schema.prisma - Database schema definition
  • migrations/ - Database migration history

🚀 Quick Start

Generate Prisma Client

npm --prefix dbal/development run codegen:prisma
npm run db:generate

Regenerate the Prisma client after schema changes.

Apply Migrations

npm run db:push

Apply pending schema changes to database.

View Database

npm run db:studio

Opens Prisma Studio for visual database management.

📝 Database Schema

Key entities defined in schema.prisma:

  • User - Core user identity
  • Credential - Authentication hashes
  • Session - Active sessions
  • PageConfig - Routes and page metadata
  • ComponentNode - Component tree nodes
  • ComponentConfig - Component configuration payloads
  • Workflow - Automation workflows
  • InstalledPackage - Installed package metadata
  • PackageData - Package data payloads

📚 Migrations

Migration files track schema changes:

# List migrations
ls migrations/

# Create new migration
npx prisma migrate dev --name add_feature

# Reset database (dev only!)
npx prisma migrate reset