This commit is contained in:
2026-01-11 06:21:48 +01:00
parent 18a9409aec
commit 0a03405598
6 changed files with 19 additions and 9 deletions
@@ -27,14 +27,14 @@ function generateTypeDefinition({ paradigm, table, query, typeDefName, allValues
})
.join(" | ");
}
if ((_a = schemaType.dataType) === null || _a === void 0 ? void 0 : _a.match(/int/i)) {
if ((_a = schemaType.dataType) === null || _a === void 0 ? void 0 : _a.match(/int|double|decimal/i)) {
return "number";
}
if ((_b = schemaType.dataType) === null || _b === void 0 ? void 0 : _b.match(/text|varchar|timestamp/i)) {
return "string";
}
if ((_c = schemaType.dataType) === null || _c === void 0 ? void 0 : _c.match(/boolean/i)) {
return "boolean";
return "0 | 1";
}
return "string";
}