diff --git a/data/seedDb.php b/data/seedDb.php index d8d3698..28bc820 100644 --- a/data/seedDb.php +++ b/data/seedDb.php @@ -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) { diff --git a/data/wipeDb.php b/data/wipeDb.php index b180c35..2d71990 100644 --- a/data/wipeDb.php +++ b/data/wipeDb.php @@ -2,6 +2,7 @@ $files = [ 'texts.json', + 'nodes.json', ]; foreach ($files as $file) {