@gzl10/nexus-backend 0.16.6 → 0.16.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -23222,7 +23222,22 @@ function normalizeColumnType(type2) {
23222
23222
  "TIME": "TIME",
23223
23223
  "JSON": "JSON",
23224
23224
  "JSONB": "JSON",
23225
- "UUID": "UUID"
23225
+ "UUID": "UUID",
23226
+ // PostgreSQL specific (information_schema.columns.data_type values)
23227
+ "CHARACTER VARYING": "STRING",
23228
+ "CHARACTER": "STRING",
23229
+ "DOUBLE PRECISION": "DECIMAL",
23230
+ "REAL": "DECIMAL",
23231
+ "SMALLINT": "INTEGER",
23232
+ "TIMESTAMP WITHOUT TIME ZONE": "DATETIME",
23233
+ "TIMESTAMP WITH TIME ZONE": "DATETIME",
23234
+ "TIME WITHOUT TIME ZONE": "TIME",
23235
+ "TIME WITH TIME ZONE": "TIME",
23236
+ "BIT VARYING": "STRING",
23237
+ // MySQL specific
23238
+ "TINYINT": "BOOLEAN",
23239
+ "LONGTEXT": "TEXT",
23240
+ "MEDIUMTEXT": "TEXT"
23226
23241
  };
23227
23242
  return typeMap[normalized] || normalized;
23228
23243
  }