Генератор схемы Prisma
Визуальная генерация файлов схемы Prisma. Добавление моделей, определение полей и настройка источников данных.
Tips:
- • Use autoincrement() or cuid() for ID defaults
- • DateTime fields often use now() as default
- • Add relations by selecting another model as the field type
Prisma ORM Schema - Технические детали
Prisma is a next-generation Node.js and TypeScript ORM. The schema file defines your data models, relations, and database connection. Prisma generates type-safe database clients from this schema.
Альтернатива командной строки
model User {\n id Int @id @default(autoincrement())\n email String @unique\n posts Post[]\n}