buildTableMarkup = (table) => {
  const fields = table.getFields();
  const members = fields
    // .filter((f) => !f.reftable_name)
    .map((f) =>
      indentString(
        `${removeAllWhiteSpace(f.type_name)} ${validSqlId(f.name)}`,
        6
      )
    )
    .join(EOL);
  const keys = table
    .getForeignKeys()
    .map((f) =>
      indentString(
        `"${table.name}"${srcCardinality(f)}--|| "${f.reftable_name}" : "${
          f.name
        }"`,
        2
      )
    )
    .join(EOL);
  return `${keys}
  "${table.name}" {${EOL}${members}${EOL}  }`;
}
Create Table from CSV file (post)
@name post/create-from-csv
@function
@memberof module:routes/tables~tablesRouter
@function