Paste a CREATE TABLE statement and get the equivalent Prisma or Drizzle schema.
}
function escapeHtml(s) { return s.replace(/&/g,β&β).replace(/</g,β<β).replace(/>/g,β>β); }
Supported types
PostgreSQL types mapped to both Prisma and Drizzle: serial, integer, bigint, text, varchar(n), boolean, timestamp, date, float, numeric, json, jsonb, uuid.
Limitations
- Handles standard
CREATE TABLEsyntax (PostgreSQL-flavored) - Foreign keys and relations need manual adjustment
- Complex defaults or expressions may need tweaking
- MySQL-specific types may not map perfectly