@omnifyjp/omnify 5.8.30 → 5.8.32

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.
@@ -1059,6 +1059,10 @@
1059
1059
  "type": "string",
1060
1060
  "description": "Custom join table name for ManyToMany"
1061
1061
  },
1062
+ "column": {
1063
+ "type": "string",
1064
+ "description": "Override the auto-derived FK column name. Default: `<property_snake>_id` (e.g. property `createdBy` → `created_by_id`). Use to keep legacy column names when porting tables to omnify (#103 Gap 7). On pivot kind, an Association property whose target matches a pivotFor entry uses this override to replace the auto-derived `<target>_id` column (#103 Bug D)."
1065
+ },
1062
1066
  "inversedBy": {
1063
1067
  "type": "string",
1064
1068
  "description": "Property name on target that maps back"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnifyjp/omnify",
3
- "version": "5.8.30",
3
+ "version": "5.8.32",
4
4
  "description": "Schema-driven code generation for Laravel, TypeScript, and SQL",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,10 +36,10 @@
36
36
  "zod": "^3.24.0"
37
37
  },
38
38
  "optionalDependencies": {
39
- "@omnifyjp/omnify-darwin-arm64": "5.8.30",
40
- "@omnifyjp/omnify-darwin-x64": "5.8.30",
41
- "@omnifyjp/omnify-linux-x64": "5.8.30",
42
- "@omnifyjp/omnify-linux-arm64": "5.8.30",
43
- "@omnifyjp/omnify-win32-x64": "5.8.30"
39
+ "@omnifyjp/omnify-darwin-arm64": "5.8.32",
40
+ "@omnifyjp/omnify-darwin-x64": "5.8.32",
41
+ "@omnifyjp/omnify-linux-x64": "5.8.32",
42
+ "@omnifyjp/omnify-linux-arm64": "5.8.32",
43
+ "@omnifyjp/omnify-win32-x64": "5.8.32"
44
44
  }
45
45
  }
package/types/schema.d.ts CHANGED
@@ -255,6 +255,15 @@ export interface PropertyDefinition {
255
255
  onUpdate?: ReferentialAction;
256
256
  owning?: boolean;
257
257
  joinTable?: string;
258
+ /**
259
+ * Override the auto-derived FK column name. Default:
260
+ * `<property_snake>_id` (e.g. property `createdBy` → `created_by_id`).
261
+ * Use to keep legacy column names when porting tables to omnify
262
+ * (#103 Gap 7). On `kind: pivot`, an Association property whose
263
+ * target matches a `pivotFor` entry uses this override to replace
264
+ * the auto-derived `<target>_id` column (#103 Bug D).
265
+ */
266
+ column?: string;
258
267
  /** @deprecated Removed in v5.0.0 — declare extra pivot columns on the
259
268
  * explicit `kind: pivot` schema (auto-created by `omnify generate`)
260
269
  * instead. Validation rejects YAML that still uses this field. */