Microdeck.tools 100 % en el navegador
Conversor de esquemas y código 100 % en tu navegador

Convertir SQL CREATE TABLE a Interfaces TypeScript Online

Transforma al instante definiciones de tablas SQL en declaraciones de interfaces TypeScript limpias y con tipado estricto.

SQL Dialect:
Target Output:
typescript Output✓ Parsed 1 table (AST transpiler)
export interface Users {
  id: number;
  email: string;
  full_name?: string | null;
  age?: number | null;
  is_active?: boolean | null;
  created_at?: Date | string | null;
}

¿Te ahorró tiempo esta herramienta? Ayuda a mantener Microdeck gratis y al día. Opcional · Desde $3.

Ejemplo de conversión: SQL DDL → Interfaces TypeScript

Entrada (SQL DDL)
CREATE TABLE customers (
  id INT PRIMARY KEY,
  email VARCHAR(255) NOT NULL,
  phone VARCHAR(20),
  balance NUMERIC(12,2) NOT NULL
);
Salida (Interfaces TypeScript)
export interface Customer {
  id: number;
  email: string;
  phone?: string | null;
  balance: number;
}

Preguntas frecuentes (FAQ)

¿Las columnas que permiten NULL se generan como opcionales en TypeScript?

Sí, las columnas sin restricción NOT NULL se generan automáticamente como propiedades opcionales (?: tipo | null).

Otras conversiones populares de bases de datos

Apoyar a Microdeck

Totalmente opcional · Desde $3 · Sin cuenta

Elige un importe (USD):Seleccionado:$5

El aporte mínimo es de $3 USD.

Totalmente opcional · Desde $3 · Pago seguro en Gumroad.