@gzl10/nexus-backend 0.16.5 → 0.16.7
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 +10 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/main.js +11 -3
- package/dist/main.js.map +1 -1
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -963,7 +963,7 @@ function prefixPluginTables(code, modules) {
|
|
|
963
963
|
const fields = def.fields;
|
|
964
964
|
if (!fields) continue;
|
|
965
965
|
for (const field of Object.values(fields)) {
|
|
966
|
-
const relation = field?.
|
|
966
|
+
const relation = field?.relation;
|
|
967
967
|
if (!relation?.table) continue;
|
|
968
968
|
if (pluginTables.has(relation.table)) {
|
|
969
969
|
relation.table = `${prefix}${relation.table}`;
|
|
@@ -23222,7 +23222,15 @@ function normalizeColumnType(type2) {
|
|
|
23222
23222
|
"TIME": "TIME",
|
|
23223
23223
|
"JSON": "JSON",
|
|
23224
23224
|
"JSONB": "JSON",
|
|
23225
|
-
"UUID": "UUID"
|
|
23225
|
+
"UUID": "UUID",
|
|
23226
|
+
// PostgreSQL specific
|
|
23227
|
+
"CHARACTER VARYING": "STRING",
|
|
23228
|
+
"TIMESTAMP WITHOUT TIME ZONE": "DATETIME",
|
|
23229
|
+
"TIMESTAMP WITH TIME ZONE": "DATETIME",
|
|
23230
|
+
// MySQL specific
|
|
23231
|
+
"TINYINT": "BOOLEAN",
|
|
23232
|
+
"LONGTEXT": "TEXT",
|
|
23233
|
+
"MEDIUMTEXT": "TEXT"
|
|
23226
23234
|
};
|
|
23227
23235
|
return typeMap[normalized] || normalized;
|
|
23228
23236
|
}
|