ワンクリックで
db-reseed
Rebuild the SchoolSync database with realistic demo data and verify it. Use to reset local data or after schema changes.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Rebuild the SchoolSync database with realistic demo data and verify it. Use to reset local data or after schema changes.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Build a new SchoolSync feature the project way — branch, backend + tests first, lean frontend, quality gate, commit, merge, push, version bump. Use when implementing a roadmap item or any non-trivial feature.
Run the full pre-merge quality gate for SchoolSync (PHP tests + format, TypeScript, lint, build) and report pass/fail. Use before committing or merging any change.
Cut a SemVer release for SchoolSync — bump version in three places, tag, and push so the GitHub release workflow runs. Use after a feature (minor) or fix (patch) lands on main.
| name | db-reseed |
| description | Rebuild the SchoolSync database with realistic demo data and verify it. Use to reset local data or after schema changes. |
php artisan migrate:fresh --seed drops everything and rebuilds: schema +
roles/permissions + demo users + a working demo school (students, teachers,
guardians, fees, a published exam with marks and ranked report cards, SMS
templates, attendance).
php artisan migrate:fresh --seed
Over a remote MySQL this is slow (thousands of round-trips, a few minutes) — run it in the background and watch for completion.
database/seeders/DatabaseSeeder.php)RolePermissionSeeder → super-admin + school-owner users → DemoUserSeeder
(demo-school tenant + role users) → SampleDataSeeder (academic structure +
people) → DemoOperationsSeeder (fees, exams/results, SMS, attendance).
php artisan db:show --counts
Expect roughly: 74 users, 30 students, 90 fee allocations, 63 payments, 90 exam results, 30 published report cards, attendance + SMS rows.
PAYMENT_ONLINE_ENABLED).admin@schoolsync.com (super admin) / school@demo.com (school owner), password password.$variables inside tinker --execute "..." from PowerShell — it eats $. Prefer db:show or write a temporary script.