setTable('visit_locations'); $builder->createField('id', Type::BIGINT) ->columnName('id') ->makePrimaryKey() ->generatedValue('IDENTITY') ->option('unsigned', true) ->build(); $columns = [ 'country_code' => 'countryCode', 'country_name' => 'countryName', 'region_name' => 'regionName', 'city_name' => 'cityName', 'latitude' => 'latitude', 'longitude' => 'longitude', 'timezone' => 'timezone', ]; foreach ($columns as $columnName => $fieldName) { $builder->createField($fieldName, Type::STRING) ->columnName($columnName) ->nullable() ->build(); }