add node data to seed and wipe scripts

This commit is contained in:
Yisroel Baum 2026-04-17 11:01:46 +03:00
parent 9b24fddec1
commit 6a1f44e112
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 17 additions and 0 deletions

View file

@ -7,8 +7,24 @@ $texts = [
],
];
$nodes = [
[
'id' => 0,
'title' => 'Chapter 1',
'textId' => 0,
'parentNodeId' => null,
],
[
'id' => 1,
'title' => 'Section 1.1',
'textId' => 0,
'parentNodeId' => 0,
],
];
$fileDataMap = [
'texts.json' => $texts,
'nodes.json' => $nodes,
];
foreach ($fileDataMap as $file => $data) {

View file

@ -2,6 +2,7 @@
$files = [
'texts.json',
'nodes.json',
];
foreach ($files as $file) {