SQL 转 Prisma — 生成 Prisma 模型
将 SQL CREATE TABLE 语句转换为 Prisma 模式模型,支持 MySQL 和 PostgreSQL。
What is SQL to Prisma?
SQL to Prisma converts existing SQL database schemas into Prisma schema format, making it easy to adopt Prisma ORM in TypeScript/Node.js projects.
How to Use
- Paste SQL CREATE TABLE statements
- Select SQL dialect (MySQL/PostgreSQL)
- Review generated Prisma schema
- Copy the schema
Use Cases
- Migrating to Prisma ORM
- Reverse-engineering databases
- Learning Prisma schema syntax
- Database documentation