Ejemplo de conversión: MySQL DDL → Esquema Prisma
Entrada (MySQL DDL)
CREATE TABLE categories (
id INT AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(100) NOT NULL
); Salida (Esquema Prisma)
model Category {
id Int @id @default(autoincrement())
title String
} Preguntas frecuentes (FAQ)
¿Prisma soporta claves primarias con AUTO_INCREMENT de MySQL?
Sí, INT AUTO_INCREMENT se traduce directamente a Int @id @default(autoincrement()).