$megatools --sql-to-ts --client-side
SQL DDL to TypeScript & Zod Schema
Convert SQL CREATE TABLE statements (PostgreSQL, MySQL, SQLite) into TypeScript interfaces, types, and Zod schemas.
Schema Presets:
Parsed:users (9 cols)orders (6 cols)
Output Generation SettingsChoose target schema and naming style
SQL DDL (CREATE TABLE)
TS interface(preserve · null union)