0, 'name' => 'Tanach', ], ]; $nodes = [ [ 'id' => 0, 'title' => 'Tanach', 'textId' => 0, 'parentNodeId' => null, ], [ 'id' => 1, 'title' => 'Torah', 'textId' => 0, 'parentNodeId' => 0, ], [ 'id' => 2, 'title' => 'Bereishis', 'textId' => 0, 'parentNodeId' => 1, ], ]; // Default admin credentials: admin@example.com / admin1234 $users = [ [ 'id' => 0, 'email' => 'admin@example.com', 'passwordHash' => password_hash('admin1234', PASSWORD_DEFAULT), 'isAdmin' => true, ], ]; $plans = []; $scheduledNodes = []; $fileDataMap = [ 'texts.json' => $texts, 'nodes.json' => $nodes, 'users.json' => $users, 'plans.json' => $plans, 'scheduledNodes.json' => $scheduledNodes, ]; foreach ($fileDataMap as $file => $data) { $path = __DIR__ . "/$file"; file_put_contents($path, json_encode($data, JSON_PRETTY_PRINT)); }