DevToolBox免费
博客

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.

𝕏 Twitterin LinkedIn

评价此工具

4.1 / 5 · 232 人评价

保持更新

获取每周开发技巧和新工具通知。

无垃圾邮件,随时退订。

Enjoy these free tools?

Buy Me a Coffee

How to Use

  1. Paste SQL CREATE TABLE statements
  2. Select SQL dialect (MySQL/PostgreSQL)
  3. Review generated Prisma schema
  4. Copy the schema

Use Cases

  • Migrating to Prisma ORM
  • Reverse-engineering databases
  • Learning Prisma schema syntax
  • Database documentation

FAQ

What SQL dialects are supported?
MySQL and PostgreSQL CREATE TABLE syntax.
Does it handle foreign keys?
Yes, foreign key constraints are converted to Prisma @relation directives.