tion>


    
<section class="summary source-code" id="source">
  <h2><span>Implementation</span></h2>
  <pre class="language-dart"><code class="language-dart">String generateCreateTableQuery() {
  final fields = _getFields();

  &#47;&#47;&#47; Converts the field names to snake_case and joins them with their types.
  final fieldDefinitions = fields.entries.map((entry) {
    final columnName = toSnakeCase(entry.key);
    final columnType = _typeToSql(entry.value);

    return &#39;$columnName $columnType&#39