@lark-apaas/db-schema-sync 0.1.0-alpha.2 → 0.1.0-alpha.4

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/bin.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  __toESM,
7
7
  generateSchema,
8
8
  resolveEnvOptions
9
- } from "./chunk-NQ3MLSYQ.js";
9
+ } from "./chunk-JZGFS3J2.js";
10
10
 
11
11
  // node_modules/dotenv/package.json
12
12
  var require_package = __commonJS({
@@ -1074,7 +1074,7 @@ function normalizeField(field, systemFieldNamesToRemove) {
1074
1074
  }
1075
1075
  function normalizeRelationship(rel) {
1076
1076
  return {
1077
- constraintName: rel.constraintName || void 0,
1077
+ constraintName: rel.fkName || rel.constraintName || void 0,
1078
1078
  fieldNames: rel.fieldName,
1079
1079
  targetTableName: rel.fkTableName,
1080
1080
  targetFieldNames: rel.fkFieldName,
package/dist/index.d.ts CHANGED
@@ -74,6 +74,7 @@ interface ApiFieldItem {
74
74
  [key: string]: unknown;
75
75
  }
76
76
  interface ApiRelationshipItem {
77
+ fkName?: string;
77
78
  constraintName?: string;
78
79
  fieldName: string[];
79
80
  fkTableName: string;
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  generateSchemaFromData,
6
6
  normalizeApiResponse,
7
7
  resolveEnvOptions
8
- } from "./chunk-NQ3MLSYQ.js";
8
+ } from "./chunk-JZGFS3J2.js";
9
9
  export {
10
10
  generateSchema,
11
11
  generateSchemaCode,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/db-schema-sync",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "0.1.0-alpha.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",