@zenstackhq/sdk 3.0.0-beta.29 → 3.0.0-beta.30

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.cjs CHANGED
@@ -639,7 +639,7 @@ var PrismaSchemaGenerator = class {
639
639
  this.generateModelField(model, field, decl);
640
640
  }
641
641
  }
642
- const allAttributes = (0, import_utils2.getAllAttributes)(decl).filter((attr) => this.isPrismaAttribute(attr) && !this.isInheritedMapAttribute(attr, decl));
642
+ const allAttributes = (0, import_utils2.getAllAttributes)(decl).filter((attr) => this.isPrismaAttribute(attr));
643
643
  for (const attr of allAttributes) {
644
644
  this.generateContainerAttribute(model, attr);
645
645
  }
@@ -663,13 +663,6 @@ var PrismaSchemaGenerator = class {
663
663
  const defaultSchemaField = this.getDatasourceField(zmodel, "defaultSchema");
664
664
  return (0, import_utils2.getStringLiteral)(defaultSchemaField?.value) ?? "public";
665
665
  }
666
- isInheritedMapAttribute(attr, contextModel) {
667
- if (attr.$container === contextModel) {
668
- return false;
669
- }
670
- const attrName = attr.decl.ref?.name ?? attr.decl.$refText;
671
- return attrName === "@@map";
672
- }
673
666
  isPrismaAttribute(attr) {
674
667
  if (!attr.decl.ref) {
675
668
  return false;