@codihaus/odp-app-hr 0.1.2 → 0.1.3
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/app/data/hr-schema.ts +9 -0
- package/package.json +1 -1
package/app/data/hr-schema.ts
CHANGED
|
@@ -2560,6 +2560,15 @@ export const hrSchema: ModuleSchema = {
|
|
|
2560
2560
|
},
|
|
2561
2561
|
],
|
|
2562
2562
|
|
|
2563
|
+
// Wizard steps: create the schema (collections/fields/relations) then seed.
|
|
2564
|
+
// Without this the wizard has no built-in steps and creates nothing.
|
|
2565
|
+
// Custom handler steps (permissions, policy seed) are added in hr-setup.ts
|
|
2566
|
+
// with `after: "seed"`, so they chain after these.
|
|
2567
|
+
steps: [
|
|
2568
|
+
{ key: "schema", type: "schema" },
|
|
2569
|
+
{ key: "seed", type: "seed", after: "schema" },
|
|
2570
|
+
],
|
|
2571
|
+
|
|
2563
2572
|
// Seed data runs after collections are created.
|
|
2564
2573
|
// Shape must match ModuleSchema.seed: { required?: SeedDef[], sample?: SeedDef[] }
|
|
2565
2574
|
// and each SeedDef is { collection, items } (NOT a bare array / `data`).
|