@famgia/omnify-laravel 2.0.39 → 2.0.41

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@famgia/omnify-laravel",
3
- "version": "2.0.39",
3
+ "version": "2.0.41",
4
4
  "description": "Laravel migration and TypeScript type generator for omnify-schema",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -33,9 +33,9 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "pluralize": "^8.0.0",
36
- "@famgia/omnify-atlas": "2.0.39",
37
- "@famgia/omnify-core": "2.0.39",
38
- "@famgia/omnify-types": "2.0.39"
36
+ "@famgia/omnify-atlas": "2.0.41",
37
+ "@famgia/omnify-types": "2.0.41",
38
+ "@famgia/omnify-core": "2.0.41"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/pluralize": "^0.0.33"
@@ -125,6 +125,23 @@ commentable:
125
125
  relation: MorphTo
126
126
  ```
127
127
 
128
+ ### External Package References
129
+
130
+ When referencing models from external packages (not in your schemas directory):
131
+
132
+ ```yaml
133
+ # Reference external package model
134
+ user:
135
+ type: Association
136
+ relation: ManyToOne
137
+ target: UserCache
138
+ targetNamespace: 'Omnify\SsoClient\Models' # Required for external
139
+ idType: Uuid # Required: target's PK type
140
+ ```
141
+
142
+ **Important**: If target schema is not found and no `targetNamespace`/`idType` specified,
143
+ generation will fail with an error to catch typos early.
144
+
128
145
  ## Indexes
129
146
 
130
147
  ⚠️ **Indexes must be defined inside `options`**, NOT at the root level or on individual properties.