@zenstackhq/orm 3.4.2 → 3.4.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/index.js CHANGED
@@ -8128,6 +8128,9 @@ var SchemaDbPusher = class {
8128
8128
  }
8129
8129
  for (const field of Object.values(model.fields)) {
8130
8130
  if (field.relation && field.relation.fields && field.relation.references) {
8131
+ if (field.type === model.name) {
8132
+ continue;
8133
+ }
8131
8134
  const targetModel = requireModel(this.schema, field.type);
8132
8135
  graph.push([
8133
8136
  model,