@dforge-core/metadata 0.0.5 → 0.0.6
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 +1 -1
- package/schemas/entity.schema.json +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dforge-core/metadata",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Canonical dForge authoring registries — field types, base datatypes, column types, traits, data-view kinds and chart types — with derivation helpers. Runtime-dependency-free; the single source of truth shared by editors, the web app and the CLI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "dForge",
|
|
@@ -472,6 +472,16 @@
|
|
|
472
472
|
"field": { "type": "string" }
|
|
473
473
|
},
|
|
474
474
|
"additionalProperties": false
|
|
475
|
+
},
|
|
476
|
+
"onDelete": {
|
|
477
|
+
"type": "string",
|
|
478
|
+
"enum": ["cascade", "setNull", "restrict", "noAction"],
|
|
479
|
+
"description": "FK ON DELETE behaviour. Default (omitted) = noAction (plain FK). 'cascade' deletes children with the parent; 'setNull' nulls the FK column (must be nullable)."
|
|
480
|
+
},
|
|
481
|
+
"onUpdate": {
|
|
482
|
+
"type": "string",
|
|
483
|
+
"enum": ["cascade", "setNull", "restrict", "noAction"],
|
|
484
|
+
"description": "FK ON UPDATE behaviour. Default (omitted) = noAction. Fires when a parent's key value changes — a no-op for immutable cuid PKs, but useful for entities keyed on a natural/mutable PK."
|
|
475
485
|
}
|
|
476
486
|
},
|
|
477
487
|
"additionalProperties": false
|