code: public boolean isAutoIncrement() {
          return "serial".equals(type.toLowerCase(Locale.US)) || "bigserial".equals(type.toLowerCase(Locale.US)) || "smallserial"
              .equals(type.toLowerCase(Locale.US));
      }
docs: Mainly for postgres, check if the column is a serial data type.
  @return Whether the type is serial