@famgia/omnify-laravel 0.0.49 → 0.0.50

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
@@ -22,7 +22,7 @@ import {
22
22
  schemaToBlueprint,
23
23
  toColumnName,
24
24
  toTableName
25
- } from "./chunk-RP2B7BTK.js";
25
+ } from "./chunk-JCVJ7V7S.js";
26
26
  export {
27
27
  formatColumnMethod,
28
28
  formatForeignKey,
package/dist/plugin.cjs CHANGED
@@ -106,7 +106,7 @@ function propertyToColumnMethod(propertyName, property, options = {}) {
106
106
  }
107
107
  }
108
108
  const baseProp = property;
109
- if (baseProp.primaryKey) {
109
+ if (baseProp.primary) {
110
110
  modifiers.push({ method: "primary" });
111
111
  }
112
112
  if (baseProp.nullable) {
@@ -480,7 +480,7 @@ function schemaToBlueprint(schema, allSchemas, options = {}) {
480
480
  } else if (schema.properties) {
481
481
  const pkColumns = [];
482
482
  for (const [propName, property] of Object.entries(schema.properties)) {
483
- if (property.primaryKey) {
483
+ if (property.primary) {
484
484
  pkColumns.push(toColumnName(propName));
485
485
  }
486
486
  }