원클릭으로
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.