@famgia/omnify-types 2.0.23 → 2.0.25

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.d.cts CHANGED
@@ -1029,6 +1029,20 @@ interface AssociationDefinition {
1029
1029
  readonly joinTable?: string;
1030
1030
  /** Additional fields on the pivot table (for ManyToMany, MorphToMany) */
1031
1031
  readonly pivotFields?: Readonly<Record<string, PivotFieldDefinition>>;
1032
+ /**
1033
+ * Override target model's namespace (for external package models).
1034
+ * Use when referencing models from packages that aren't part of this schema collection.
1035
+ * @example 'Omnify\\SsoClient\\Models'
1036
+ */
1037
+ readonly targetNamespace?: string;
1038
+ /**
1039
+ * Override target's primary key type (for FK column generation).
1040
+ * Use when the target schema isn't loaded and we can't detect its idType.
1041
+ * @example 'Uuid'
1042
+ */
1043
+ readonly idType?: 'Int' | 'BigInt' | 'Uuid' | 'String';
1044
+ /** Whether this property is nullable */
1045
+ readonly nullable?: boolean;
1032
1046
  }
1033
1047
  /**
1034
1048
  * Validation rules for a property.
package/dist/index.d.ts CHANGED
@@ -1029,6 +1029,20 @@ interface AssociationDefinition {
1029
1029
  readonly joinTable?: string;
1030
1030
  /** Additional fields on the pivot table (for ManyToMany, MorphToMany) */
1031
1031
  readonly pivotFields?: Readonly<Record<string, PivotFieldDefinition>>;
1032
+ /**
1033
+ * Override target model's namespace (for external package models).
1034
+ * Use when referencing models from packages that aren't part of this schema collection.
1035
+ * @example 'Omnify\\SsoClient\\Models'
1036
+ */
1037
+ readonly targetNamespace?: string;
1038
+ /**
1039
+ * Override target's primary key type (for FK column generation).
1040
+ * Use when the target schema isn't loaded and we can't detect its idType.
1041
+ * @example 'Uuid'
1042
+ */
1043
+ readonly idType?: 'Int' | 'BigInt' | 'Uuid' | 'String';
1044
+ /** Whether this property is nullable */
1045
+ readonly nullable?: boolean;
1032
1046
  }
1033
1047
  /**
1034
1048
  * Validation rules for a property.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@famgia/omnify-types",
3
- "version": "2.0.23",
3
+ "version": "2.0.25",
4
4
  "description": "Shared TypeScript types for omnify-schema",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",