Table: {
    columns: {
        allowNull: boolean;
        autoIncrement: boolean;
        constraints: {
            column: string;
            table: string;
        }[];
        defaultValue: unknown;
        isLiteralDefaultValue: boolean;
        name: string;
        primaryKey: boolean;
        type: ColumnType;
    }[];
    name: string;
    schema: string | undefined;
    unique: string[][];
}

Type declaration

  • columns: {
        allowNull: boolean;
        autoIncrement: boolean;
        constraints: {
            column: string;
            table: string;
        }[];
        defaultValue: unknown;
        isLiteralDefaultValue: boolean;
        name: string;
        primaryKey: boolean;
        type: ColumnType;
    }[]
  • name: string
  • schema: string | undefined
  • unique: string[][]