@naiv/codegen-axios-client 0.0.5 → 0.0.6

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.
@@ -136,7 +136,8 @@ function buildColumnRelation(type, column, table, source) {
136
136
  throw new Error(`Column "${type.subtype}" on table "${type.type}" not found on relation "${table.name}.${column.column_name}"`);
137
137
  }
138
138
  return [
139
- `${column.column_name}${is_required ? '' : '?'}: ${mapSQLTypeToJSType(foreign_column.type)};`
139
+ `${column.column_name}${is_required ? '' : '?'}: ${mapSQLTypeToJSType(foreign_column.type)};`,
140
+ `otm_${column.column_name}?: ${foreign_table.name};`
140
141
  ];
141
142
  }
142
143
  function buildColumn(column, table, source) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naiv/codegen-axios-client",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "main": "dist/index.js",
5
5
  "publishConfig": {
6
6
  "access": "public"