@famgia/omnify-typescript 2.0.17 → 2.0.19

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-typescript",
3
- "version": "2.0.17",
3
+ "version": "2.0.19",
4
4
  "description": "TypeScript type definitions generator for Omnify schemas",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -55,8 +55,8 @@
55
55
  "directory": "packages/typescript-generator"
56
56
  },
57
57
  "dependencies": {
58
- "@famgia/omnify-core": "2.0.17",
59
- "@famgia/omnify-types": "2.0.17"
58
+ "@famgia/omnify-core": "2.0.19",
59
+ "@famgia/omnify-types": "2.0.19"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "zod": "^3.25.0 || ^4.0.0"
@@ -302,6 +302,7 @@ php artisan migrate
302
302
  | `LongText` | LONGTEXT | `string` |
303
303
  | `Int` | INT | `number` |
304
304
  | `BigInt` | BIGINT | `number` |
305
+ | `Uuid` | UUID/CHAR(36) | `string` |
305
306
  | `Float` | DECIMAL | `number` |
306
307
  | `Boolean` | BOOLEAN | `boolean` |
307
308
  | `Date` | DATE | `string` |
@@ -355,4 +356,14 @@ status:
355
356
  # ✅ Correct: Create separate enum schema
356
357
  status:
357
358
  type: PostStatus # Reference enum schema
359
+
360
+ # ❌ Wrong: index on individual property (not supported!)
361
+ consoleOrgId:
362
+ type: Uuid
363
+ index: true # ERROR: unknown field 'index'
364
+
365
+ # ✅ Correct: Use options.indexes
366
+ options:
367
+ indexes:
368
+ - columns: [consoleOrgId]
358
369
  ```