一键导入
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.