initial: bootstrap from BukidBountyApp base

This commit is contained in:
Jonathan Sykes
2026-06-06 18:43:00 +08:00
commit eb4a5731fb
5674 changed files with 160857 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
use Hyperf\Database\Seeders\Seeder;
use App\Support\AccountingTheme;
class AccountSeeder extends Seeder
{
/**
* Seed the chart of accounts from the active theme.
*
* Idempotent: existing accounts are matched by (theme_key, theme_account_code)
* with a parent+name fallback for pre-theme rows. User-added accounts (theme_key
* NULL) and user-renamed accounts are never touched.
*/
public function run(): void
{
AccountingTheme::apply();
}
}